From bb51a5b2bc3240c1fc03a279b20200c5def634d3 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sat, 16 Feb 2013 18:49:52 -0600 Subject: libwmf: fix dependencies --- Library/Formula/libwmf.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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" -- cgit v1.2.3