homebrew-core/Formula/pkg-config.rb

21 lines
568 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class PkgConfig < Formula
homepage 'http://pkg-config.freedesktop.org'
url 'http://pkg-config.freedesktop.org/releases/pkg-config-0.25.tar.gz'
2010-09-06 18:43:49 +00:00
md5 'a3270bab3f4b69b7dc6dbdacbcae9745'
def install
2010-09-06 18:43:49 +00:00
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
2011-03-10 05:11:03 +00:00
end