homebrew-core/Formula/pkg-config.rb
Max Howell 836f78b01c Include a note about why we don't support pkg-config 0.26 yet
I'd happily never upgrade pkg-config. Glib is a hideous and bloated POS, generally you can avoid installing it, but now fucking pkg-config depends on it. Fuck that.
2011-08-22 10:26:01 +01:00

24 lines
744 B
Ruby

require 'formula'
class PkgConfig < Formula
homepage 'http://pkg-config.freedesktop.org'
# yes we know pkg-config 0.26 is now out, however it depends on glib
# this is totally ridiculous dependency and we refuse to upgrade until
# someone can prove we must.
url 'http://pkg-config.freedesktop.org/releases/pkg-config-0.25.tar.gz'
md5 'a3270bab3f4b69b7dc6dbdacbcae9745'
def install
paths = %W[
#{HOMEBREW_PREFIX}/lib/pkgconfig
/usr/local/lib/pkgconfig
/usr/lib/pkgconfig
/usr/X11/lib/pkgconfig
].uniq
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--with-pc-path=#{paths*':'}"
system "make install"
end
end