From 808f23c996f362a985f0f300fbdd8075da1f0d79 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sun, 21 Aug 2011 14:28:37 +0100 Subject: This hack (?) means glib doesn't depend on pkg-config So in theory we can upgrade to pkg-config 0.26 now. --- Library/Formula/glib.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/glib.rb b/Library/Formula/glib.rb index 1483df88a..640b5b110 100644 --- a/Library/Formula/glib.rb +++ b/Library/Formula/glib.rb @@ -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 -- cgit v1.2.3