freetype 2.9.1

Closes #27373.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Chongyu Zhu 2018-05-02 17:21:18 +08:00 committed by FX Coudert
parent f70c1ecf85
commit 6e47353d6d

View file

@ -1,9 +1,9 @@
class Freetype < Formula class Freetype < Formula
desc "Software library to render fonts" desc "Software library to render fonts"
homepage "https://www.freetype.org/" homepage "https://www.freetype.org/"
url "https://downloads.sourceforge.net/project/freetype/freetype2/2.9/freetype-2.9.tar.bz2" url "https://downloads.sourceforge.net/project/freetype/freetype2/2.9.1/freetype-2.9.1.tar.bz2"
mirror "https://download.savannah.gnu.org/releases/freetype/freetype-2.9.tar.bz2" mirror "https://download.savannah.gnu.org/releases/freetype/freetype-2.9.1.tar.bz2"
sha256 "e6ffba3c8cef93f557d1f767d7bc3dee860ac7a3aaff588a521e081bc36f4c8a" sha256 "db8d87ea720ea9d5edc5388fc7a0497bb11ba9fe972245e0f7f4c7e8b1e1e84d"
bottle do bottle do
cellar :any cellar :any
@ -16,12 +16,9 @@ class Freetype < Formula
depends_on "libpng" depends_on "libpng"
def install def install
# Enable sub-pixel rendering (ClearType) system "./configure", "--prefix=#{prefix}",
inreplace "include/freetype/config/ftoption.h", "--enable-freetype-config",
"/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */", "--without-harfbuzz"
"#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING"
system "./configure", "--prefix=#{prefix}", "--without-harfbuzz"
system "make" system "make"
system "make", "install" system "make", "install"