d1b6e77fc4
PR: ports/133444 Submitted by: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
73 lines
1.9 KiB
Text
73 lines
1.9 KiB
Text
--- Makefile.orig 2008-08-01 22:28:06.000000000 +0900
|
|
+++ Makefile 2009-02-06 21:39:03.000000000 +0900
|
|
@@ -2,26 +2,26 @@
|
|
MAINVERSION = '"6.03"'
|
|
GUIVERSION = '".48"'
|
|
ALIGNSIZE = 8
|
|
-LIBDIR = '"/usr/local/lib/Ngraph"'
|
|
-INSTALLDIR = /usr/local/lib/Ngraph
|
|
-BINDIR = /usr/local/bin
|
|
+LIBDIR = '"${PREFIX}/lib/Ngraph"'
|
|
+INSTALLDIR = ${PREFIX}/lib/Ngraph
|
|
+BINDIR = ${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
|
|
#
|
|
###############################################################################
|
|
|