aboutsummaryrefslogtreecommitdiffstats
path: root/math/ngraph/files/patch-aa
blob: 62734d0a1bf58f8ddf6f788bb8a9465b0ec71fd7 (plain) (blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
--- Makefile.orig   2009-10-15 20:17:47.000000000 +0900
+++ Makefile    2014-06-20 21:48:30.928895628 +0900
@@ -2,26 +2,26 @@
 MAINVERSION = '"6.03"'
 GUIVERSION = '".51"'
 ALIGNSIZE = 8
-LIBDIR = '"/usr/local/lib/Ngraph"'
-INSTALLDIR = /usr/local/lib/Ngraph
-BINDIR = /usr/local/bin
+LIBDIR = '"${PREFIX}/lib/Ngraph"'
+INSTALLDIR = ${DESTDIR}${PREFIX}/lib/Ngraph
+BINDIR = ${DESTDIR}${PREFIX}/bin
 #
 #
 ###############################################################################
 #
 # Linux + Open Motif 2.1 [dynamic link]
 #
-CC = gcc
-CCOPTION = -O2 -m486
-MAKE = make
-AR = ar
-RANLIB = ranlib
-STRIP = strip
-DEFS = -DJAPANESE
-PLATFORM  = '"for X11 [Linux(glibc2) + Open Motif]"'
-X11INCLUDE = -I/usr/X11R6/include
-STATICLINK =
-X11LIB = -L/usr/X11R6/lib -lm -lXm -lXext -lXt -lXp -lX11 -lICE -lSM
+#CC = gcc
+#CCOPTION = -O2 -m486
+#MAKE = make
+#AR = ar
+#RANLIB = ranlib
+#STRIP = strip
+#DEFS = -DJAPANESE
+#PLATFORM  = '"for X11 [Linux(glibc2) + Open Motif]"'
+#X11INCLUDE = -I/usr/X11R6/include
+#STATICLINK =
+#X11LIB = -L/usr/X11R6/lib -lm -lXm -lXext -lXt -lXp -lX11 -lICE -lSM
 #
 #
 ###############################################################################
@@ -149,17 +149,18 @@
 #
 # (Thanks to MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>)
 #
-#CC = gcc
-#CCOPTION = ${CFLAGS}
-#MAKE = gmake
-#AR = ar
-#RANLIB = ranlib
-#STRIP = strip
-#DEFS = -DJAPANESE
-#PLATFORM  = '"for X11 [FreeBSD+Motif2.1]"'
-#X11INCLUDE = -I/usr/X11R6/include -I/usr/dt/include
-#STATICLINK = /usr/dt/lib/libXm.a
-#X11LIB = -L/usr/X11R6/lib -L/usr/dt/lib -lm -lXext -lXt -lXp -lX11 -lICE -lSM -lxpg4
+CC ?= gcc
+CFLAGS ?= -O -pipe
+CCOPTION = ${CFLAGS}
+MAKE = gmake
+AR = ar
+RANLIB = ranlib
+STRIP = strip
+DEFS = -DJAPANESE
+PLATFORM  = '"for X11 [FreeBSD+Motif2.1]"'
+X11INCLUDE = -I${LOCALBASE}/include -I/usr/dt/include
+STATICLINK =
+X11LIB = ${MOTIFLIB} -lm -L${LOCALBASE}/lib -lXext -lXt -lXp -lX11 -lICE -lSM
 #
 ###############################################################################