2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-30 05:22:49 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Tintin < Formula
|
2009-09-30 05:22:49 +00:00
|
|
|
homepage 'http://tintin.sf.net'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.01.0/tintin-2.01.0.tar.gz'
|
2014-01-16 06:52:34 +00:00
|
|
|
sha256 'e0e35463a97ee5b33ef0b29b2c57fa8276c4e76328cb19c98a6ea92c603a9c76'
|
2010-07-17 17:43:07 +00:00
|
|
|
|
|
|
|
depends_on 'pcre'
|
|
|
|
|
2009-09-30 05:22:49 +00:00
|
|
|
def install
|
2012-02-24 22:51:33 +00:00
|
|
|
# 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
|
2009-09-30 05:22:49 +00:00
|
|
|
end
|
|
|
|
end
|