libwmf: fix dependencies

master
Misty De Meo 2013-02-16 18:49:52 -06:00
parent 6f54210623
commit 85490b69fa
1 changed files with 5 additions and 1 deletions

View File

@ -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"