wine: use pkg-config

This commit is contained in:
Jack Nagel 2014-04-16 23:59:06 -05:00
parent e17add5db8
commit a3c67348fe

View file

@ -44,6 +44,7 @@ class Wine < Formula
# Wine will build both the Mac and the X11 driver by default, and you can switch
# between them. But if you really want to build without X11, you can.
depends_on :x11 => :recommended
depends_on 'pkg-config' => :build
depends_on 'freetype'
depends_on 'jpeg'
depends_on 'libgphoto2'
@ -110,11 +111,6 @@ class Wine < Formula
EOS
end
# Workarounds for XCode not including pkg-config files
# FIXME we include pkg-config files for libxml2 and libxslt. Is this really necessary?
ENV.libxml2
ENV.append "LDFLAGS", "-lxslt"
args = ["--prefix=#{prefix}"]
args << "--disable-win16" if MacOS.version <= :leopard or ENV.compiler == :clang