homebrew-core/Formula/pkg-config.rb
2013-10-28 11:19:08 +00:00

39 lines
1 KiB
Ruby

require 'formula'
class PkgConfig < Formula
homepage 'http://pkgconfig.freedesktop.org'
url 'http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz'
mirror 'http://fossies.org/unix/privat/pkg-config-0.28.tar.gz'
sha256 '6b6eb31c6ec4421174578652c7e141fdaae2dabad1021f420d8713206ac1f845'
bottle do
revision 1
sha1 '7e7fd6ed2cb6047254a8f39ae3a6e35e7a74e12b' => :mavericks
sha1 'ae227f7888d7d268f1742526cf1959b3260b22b6' => :mountain_lion
sha1 '69e86c0e2424a921176b9da66b54be01d80bf624' => :lion
end
def install
paths = %W[
#{HOMEBREW_PREFIX}/lib/pkgconfig
#{HOMEBREW_PREFIX}/share/pkgconfig
/usr/local/lib/pkgconfig
/usr/lib/pkgconfig
].uniq
args = %W[
--disable-debug
--prefix=#{prefix}
--disable-host-tool
--with-internal-glib
--with-pc-path=#{paths*':'}
]
args << "CC=#{ENV.cc} #{ENV.cflags}" unless MacOS::CLT.installed?
system "./configure", *args
system "make"
system "make check"
system "make install"
end
end