diff --git a/Formula/fontforge.rb b/Formula/fontforge.rb index 79879150f6b..5f6f611ba91 100644 --- a/Formula/fontforge.rb +++ b/Formula/fontforge.rb @@ -11,15 +11,20 @@ class Fontforge < Formula depends_on 'pango' depends_on 'potrace' + def options + [['--without-python', 'Build without Python.']] + end + fails_with_llvm "Compiling cvexportdlg.c fails with error: initializer element is not constant" def install + args = ["--prefix=#{prefix}", "--enable-double", "--without-freetype-bytecode"] + args << "--without-python" if ARGV.include? "--without-python" + ENV.x11 # Fix linker error; see: http://trac.macports.org/ticket/25012 ENV.append "LDFLAGS", "-lintl" - system "./configure", "--prefix=#{prefix}", - "--enable-double", - "--without-freetype-bytecode" + system "./configure", *args inreplace "Makefile" do |s| s.gsub! "/Applications", "$(prefix)"