homebrew-core/Formula/pkg-config.rb
2009-11-13 20:30:57 -08:00

15 lines
No EOL
534 B
Ruby

require 'formula'
class PkgConfig <Formula
homepage 'http://pkgconfig.freedesktop.org'
url 'http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz'
md5 'd922a88782b64441d06547632fd85744'
#TODO depend on our glib if available. --with-installed-glib
def install
paths=%W[#{HOMEBREW_PREFIX}/lib/pkgconfig /usr/local/lib/pkgconfig /usr/lib/pkgconfig /usr/X11/lib/pkgconfig].uniq
system "./configure", "--with-pc-path=#{paths*':'}", "--disable-debug", "--prefix=#{prefix}"
system "make install"
end
end