freetype: enable subpixel rendering by default.

master
Thomas Bouve 2014-03-26 13:11:13 +01:00 committed by Mike McQuaid
parent d9e75e7dba
commit 82adea77ce
1 changed files with 7 additions and 0 deletions

View File

@ -16,10 +16,17 @@ class Freetype < Formula
keg_only :provided_pre_mountain_lion
option :universal
option 'without-subpixel', "Disable sub-pixel rendering (a.k.a. LCD rendering, or ClearType)"
depends_on "libpng"
def install
if build.with? "subpixel"
inreplace "include/config/ftoption.h",
"/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */",
"#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING"
end
ENV.universal_binary if build.universal?
system "./configure", "--prefix=#{prefix}", "--without-harfbuzz"
system "make"