Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 764 Bytes
require 'formula'
class Freetype < Formula
url 'http://download.savannah.gnu.org/releases/freetype/freetype-2.3.12.tar.gz'
homepage 'http://freetype.sourceforge.net'
md5 '6fc690d9b34154b51a919ff466cea90c'
def options
[["--native",
"Enable native TrueType hinting, which is potentially covered by various Apple patents.\nSee: http://www.freetype.org/patents.html"]
]
end
def install
if ARGV.include? "--native"
inreplace "include/freetype/config/ftoption.h",
"/* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */",
"#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER"
end
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end
end
Something went wrong with that request. Please try again.