homebrew-core/Formula/yara.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

19 lines
505 B
Ruby

require 'formula'
class Yara < Formula
homepage 'http://code.google.com/p/yara-project/'
url 'http://yara-project.googlecode.com/files/yara-1.4.tar.gz'
md5 'ecc744a67482dc9d717936ccd69dc39f'
depends_on 'pcre'
def install
# find Homebrew's libpcre
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end