homebrew-core/Formula/qpdf.rb
Jack Nagel d1a2bb3c32 Use Homebrew's pcre where appropriate
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>
2012-02-24 16:51:33 -06:00

18 lines
427 B
Ruby

require 'formula'
class Qpdf < Formula
url 'http://downloads.sourceforge.net/project/qpdf/qpdf/2.3.0/qpdf-2.3.0.tar.gz'
homepage 'http://qpdf.sourceforge.net/'
md5 'af6d60984055e6a2c988d53c55b1a7ca'
depends_on 'pcre'
def install
# find Homebrew's libpcre
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
end
end