2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
class PkgConfig <Formula
|
2009-11-12 19:57:10 +00:00
|
|
|
homepage 'http://pkgconfig.freedesktop.org'
|
|
|
|
url 'http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz'
|
|
|
|
md5 'd922a88782b64441d06547632fd85744'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2009-06-18 10:13:11 +00:00
|
|
|
#TODO depend on our glib if available. --with-installed-glib
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
def install
|
2009-09-16 14:17:53 +00:00
|
|
|
paths=%W[#{HOMEBREW_PREFIX}/lib/pkgconfig /usr/local/lib/pkgconfig /usr/lib/pkgconfig /usr/X11/lib/pkgconfig].uniq
|
2009-08-10 17:46:27 +00:00
|
|
|
system "./configure", "--with-pc-path=#{paths*':'}", "--disable-debug", "--prefix=#{prefix}"
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|