privoxy: clarify autoreconf, use our libpcre

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-04-03 13:02:18 -05:00
parent 7f074c60fd
commit fba5fbfb3b

View file

@ -6,15 +6,21 @@ class Privoxy < Formula
sha1 'a82287cbf48375ef449d021473a366baeca49250'
if MacOS.xcode_version >= "4.3"
# remove the autoreconf if possible, no comment provided about why it is there
# so we have no basis to make a decision at this point.
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on 'pcre'
def install
system "autoreconf -i"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
# Find Homebrew's libpcre
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
# No configure script is shipped with the source
system "autoreconf", "-i"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}/privoxy"
system "make"