This hack (?) means glib doesn't depend on pkg-config

So in theory we can upgrade to pkg-config 0.26 now.
This commit is contained in:
Max Howell 2011-08-21 14:28:37 +01:00
parent ee09cd17a3
commit e20df6c4de

View file

@ -7,7 +7,6 @@ class Glib < Formula
url 'ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2'
sha256 '222f3055d6c413417b50901008c654865e5a311c73f0ae918b0a9978d1f9466f'
depends_on 'pkg-config' => :build
depends_on 'gettext'
fails_with_llvm "Undefined symbol errors while linking" unless MacOS.lion?
@ -61,6 +60,11 @@ class Glib < Formula
system "autoconf"
end
# hack so that we don't have to depend on pkg-config
# http://permalink.gmane.org/gmane.comp.package-management.pkg-config/627
ENV['ZLIB_CFLAGS'] = ''
ENV['ZLIB_LIBZ'] = '-l'
system "./configure", *args
# Fix for 64-bit support, from MacPorts