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>
22 lines
636 B
Ruby
22 lines
636 B
Ruby
require 'formula'
|
|
|
|
class Tintin < Formula
|
|
homepage 'http://tintin.sf.net'
|
|
url 'http://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.00.8/tintin-2.00.8.tar.gz'
|
|
sha256 'e364a7fa7ed35a2d166a081cce4682d5fe2481ee9ce72c6a409903d097e1ae45'
|
|
|
|
depends_on 'pcre'
|
|
|
|
def install
|
|
# find Homebrew's libpcre
|
|
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
|
|
|
|
cd 'src' do
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make", "CFLAGS=#{ENV.cflags}",
|
|
"INCS=#{ENV.cppflags}",
|
|
"LDFLAGS=#{ENV.ldflags}",
|
|
"install"
|
|
end
|
|
end
|
|
end
|