mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
8ee09bfa62
Fix build by not trying to link against libXp (since it is deprecated). Add missing xorg dependencies. remove broken MFH: 2019Q4
74 lines
1.9 KiB
Plaintext
74 lines
1.9 KiB
Plaintext
--- Makefile.orig 2015-07-13 03:31:19 UTC
|
|
+++ Makefile
|
|
@@ -3,26 +3,26 @@ MAINVERSION = '"6.03"'
|
|
GUIVERSION = '".54"'
|
|
VERSION=6.3.54
|
|
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
|
|
-MAKE = make
|
|
-AR = ar
|
|
-RANLIB = ranlib
|
|
-STRIP = strip
|
|
-DEFS = -DJAPANESE
|
|
-PLATFORM = '"for X11 [Linux(glibc2) + Open Motif]"'
|
|
-X11INCLUDE =
|
|
-STATICLINK =
|
|
-X11LIB = -L/usr/X11R6/lib -lm -lXm -lXext -lXt -lXp -lX11 -lICE -lSM
|
|
+#CC = gcc
|
|
+#CCOPTION = -O2
|
|
+#MAKE = make
|
|
+#AR = ar
|
|
+#RANLIB = ranlib
|
|
+#STRIP = strip
|
|
+#DEFS = -DJAPANESE
|
|
+##PLATFORM = '"for X11 [Linux(glibc2) + Open Motif]"'
|
|
+#X11INCLUDE =
|
|
+#STATICLINK =
|
|
+#X11LIB = -L/usr/X11R6/lib -lm -lXm -lXext -lXt -lXp -lX11 -lICE -lSM
|
|
#
|
|
#
|
|
###############################################################################
|
|
@@ -150,17 +150,18 @@ X11LIB = -L/usr/X11R6/lib -lm -lXm -lXex
|
|
#
|
|
# (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 -lX11 -lICE -lSM
|
|
#
|
|
###############################################################################
|
|
|