diff options
| author | Max Howell | 2012-08-21 20:45:53 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-21 20:51:13 -0400 |
| commit | d73a1502848808c764023ef1f8d7af514cfef5b9 (patch) | |
| tree | f69012bd1bd02b7cac8c2629f14a48d737d3b25e /Library/Formula | |
| parent | c9fe66018ceb13a5468d78f33bfdf8015e3c3b11 (diff) | |
| download | homebrew-d73a1502848808c764023ef1f8d7af514cfef5b9.tar.bz2 | |
Fontforge works with Xcode 4.3+
Shouldn't break for previous versions. We hope.
Fixes #13635. Fixes #14097.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/fontforge.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/fontforge.rb b/Library/Formula/fontforge.rb index d55faf627..ccd31b275 100644 --- a/Library/Formula/fontforge.rb +++ b/Library/Formula/fontforge.rb @@ -39,6 +39,8 @@ class Fontforge < Formula args << "--enable-pyextension" end + ENV.macosxsdk("10.7") if MacOS.mountain_lion? + # Fix linking to correct Python library ENV.prepend "LDFLAGS", "-L#{python_prefix}/lib" unless ARGV.include? "--without-python" # Fix linker error; see: http://trac.macports.org/ticket/25012 @@ -64,7 +66,11 @@ class Fontforge < Formula # http://sourceforge.net/mailarchive/forum.php?thread_name=C1A32103-A62D-468B-AD8A-A8E0E7126AA5%40smparkes.net&forum_name=fontforge-devel # https://trac.macports.org/ticket/33284 inreplace %w(fontforge/macbinary.c fontforge/startui.c gutils/giomime.c) do |s| - s.gsub! "/Developer", MacOS::Xcode.prefix + if MacOS.lion? + s.gsub! "/Developer", "#{MacOS::sdk_path("10.7")}/Developer" + else + s.gsub! "/Developer", "/Developer" + end end system "make" |
