aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pkg-config.rb
blob: a6fcca03f80b472af06e2321f7a6c1534f70729b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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