aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libwmf.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-02-16 18:49:52 -0600
committerMisty De Meo2013-02-16 18:50:36 -0600
commitbb51a5b2bc3240c1fc03a279b20200c5def634d3 (patch)
treecdcecd2a67c5ce348e65157710dc021ac73a27e6 /Library/Formula/libwmf.rb
parent0cdae32d7c7e062f791b34c138201d6072e24ac1 (diff)
downloadhomebrew-bb51a5b2bc3240c1fc03a279b20200c5def634d3.tar.bz2
libwmf: fix dependencies
Diffstat (limited to 'Library/Formula/libwmf.rb')
-rw-r--r--Library/Formula/libwmf.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/libwmf.rb b/Library/Formula/libwmf.rb
index e8726c654..5be1d5843 100644
--- a/Library/Formula/libwmf.rb
+++ b/Library/Formula/libwmf.rb
@@ -7,12 +7,16 @@ class Libwmf < Formula
depends_on 'pkg-config' => :build
depends_on 'gd'
+ depends_on :freetype
depends_on :libpng
def install
+ dep_prefix = (MacOS.version >= :mountain_lion) ? HOMEBREW_PREFIX : MacOS::X11.prefix
+
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
- "--with-freetype=#{MacOS::X11.prefix}"
+ "--with-png=#{dep_prefix}",
+ "--with-freetype=#{dep_prefix}"
system "make"
ENV.j1 # yet another rubbish Makefile
system "make install"