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'
|
2012-02-10 05:34:01 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.00.8/tintin-2.00.8.tar.gz'
|
|
|
|
sha256 'e364a7fa7ed35a2d166a081cce4682d5fe2481ee9ce72c6a409903d097e1ae45'
|
2010-07-17 17:43:07 +00:00
|
|
|
|
|
|
|
depends_on 'pcre'
|
|
|
|
|
2012-02-10 05:34:01 +00:00
|
|
|
# This puts brew's environ (CPPFLAGS and CFLAGS) in generated Makefile
|
2010-07-17 17:43:07 +00:00
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
2009-09-30 05:22:49 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
Dir.chdir "src"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2010-07-17 17:43:07 +00:00
|
|
|
|
|
|
|
__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@
|