homebrew-core/Formula/tintin.rb
Joe Baldino 933e3776b6 tintin 2.00.7
Closes Homebrew/homebrew#8188.

Signed-off-by: Joe Baldino <joe.baldino@comcast.net>
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-20 20:14:22 -05:00

41 lines
1 KiB
Ruby

require 'formula'
class Tintin < Formula
url 'http://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.00.7/tintin-2.00.7.tar.gz'
homepage 'http://tintin.sf.net'
sha256 '33f2da2cf373916b8b41bed3696122477f06d3fd46809d7706cf30d0909a2c1c'
# From version 1.91.1, pcre is required to compile TinTin++
# http://tintin.sourceforge.net/board/viewtopic.php?t=786
depends_on 'pcre'
def patches
# This puts brew's environ (CPPFLAGS and CFLAGS) in generated Makefile
DATA
end
def install
Dir.chdir "src"
system "./configure", "--prefix=#{prefix}"
system "make install"
end
end
__END__
diff --git a/src/Makefile.in b/src/Makefile.in
index 067b5ff..d55bc74 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -31,11 +31,11 @@ docdir = @prefix@/doc
#this is the standard CFLAGS options, this is what most people should use
-CFLAGS += $(DEFINES) @BIG5@
+CFLAGS += $(DEFINES) @CFLAGS@ @BIG5@
LDFLAGS = @LDFLAGS@
-INCS = @MYINCLUDE@
+INCS = @CPPFLAGS@ @MYINCLUDE@
LIBS = @MYLIB@ @LIBS@