blob: 987a678b03d3e4820c74cacca9b7bfc3e7d82e99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
require 'formula'
class Tintin < Formula
url 'http://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.00.5/tintin-2.00.5.tar.gz'
homepage 'http://tintin.sf.net'
md5 'b57b824fc7bb9f25705816fb62027ec1'
# 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@
|