homebrew-core/Formula/pkg-config.rb
Duke Dorje 5da68583a5 Updated the pkg-config download
(FreeBSD added a dash in the subdomain; pkg-config instead of pkgconfig.)

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-22 23:11:37 -07:00

20 lines
No EOL
566 B
Ruby

require 'formula'
class PkgConfig <Formula
homepage 'http://pkg-config.freedesktop.org'
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