d1a2bb3c32
We provide a pcre formula as OS X does not provide libpcre headers. However, it does provide the library itself and so occasionally things will use Homebrew's pcre headers and link against the system library. This should be avoided to prevent incompatibilities, so explicitly tell the build system where to look for the library where necessary. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
20 lines
490 B
Ruby
20 lines
490 B
Ruby
require 'formula'
|
|
|
|
class Pound < Formula
|
|
homepage 'http://www.apsis.ch/pound'
|
|
url 'http://www.apsis.ch/pound/Pound-2.6.tgz'
|
|
md5 '8c913b527332694943c4c67c8f152071'
|
|
|
|
depends_on 'pcre'
|
|
|
|
def install
|
|
# find Homebrew's libpcre
|
|
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
# Manual install to get around group issues
|
|
sbin.install "pound", "poundctl"
|
|
man8.install "pound.8", "poundctl.8"
|
|
end
|
|
end
|