aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authortorstenb <torstenb@FreeBSD.org>1996-11-19 19:06:46 +0800
committertorstenb <torstenb@FreeBSD.org>1996-11-19 19:06:46 +0800
commit8707070c16d1bb68da08de838bcda7dc7c15cf87 (patch)
tree5d091119302b264cb646a771cb1bfacb54207311 /games
parent9d3194da2101e70b4fc125946bcc2c4ab1e3bb54 (diff)
downloadfreebsd-ports-gnome-8707070c16d1bb68da08de838bcda7dc7c15cf87.tar.gz
freebsd-ports-gnome-8707070c16d1bb68da08de838bcda7dc7c15cf87.tar.zst
freebsd-ports-gnome-8707070c16d1bb68da08de838bcda7dc7c15cf87.zip
Use Motif if HAVE_MOTIF and MOTIFLIB are defined (/etc/make.conf).
default it to build the xview version.
Diffstat (limited to 'games')
-rw-r--r--games/imaze/Makefile2
-rw-r--r--games/imaze/files/patch-aa48
2 files changed, 46 insertions, 4 deletions
diff --git a/games/imaze/Makefile b/games/imaze/Makefile
index 82a81852d642..ae84e1a1836c 100644
--- a/games/imaze/Makefile
+++ b/games/imaze/Makefile
@@ -14,7 +14,9 @@ DISTFILES= imaze1.3.tar.Z imaze.tar
MAINTAINER= kuehn@rz.tu-clausthal.de
+.if !defined(HAVE_MOTIF) && !defined(MOTIFLIB)
LIB_DEPENDS= xview\\.3\\.2:${PORTSDIR}/x11/xview-lib
+.endif
EXTRACT_ONLY= imaze1.3.tar.Z
NO_CONFIGURE= yes
diff --git a/games/imaze/files/patch-aa b/games/imaze/files/patch-aa
index ae473c6839d3..e0b33f5d0799 100644
--- a/games/imaze/files/patch-aa
+++ b/games/imaze/files/patch-aa
@@ -1,7 +1,12 @@
-*** source/Makefile.new Fri Apr 12 07:10:57 1996
---- source/Makefile Thu Feb 22 23:01:18 1996
+*** source/Makefile.orig Thu Feb 22 23:01:18 1996
+--- source/Makefile Tue Nov 19 11:45:31 1996
***************
-*** 116,122 ****
+*** 111,123 ****
+ all
+
+ freebsd:
+ $(MAKE) \
+ OPENWINHOME='/usr/X11R6' \
GRAFLIBS='$$(XVLIBS)' \
GRAFINCLUDES='$$(XVINCLUDES)' \
GRAFOBJS='$$(XVOBJS)' \
@@ -9,12 +14,47 @@
all
irix:
---- 116,123 ----
+ $(MAKE) \
+--- 111,135 ----
+ all
+
+ freebsd:
++ .if defined(HAVE_MOTIF)
++ $(MAKE) \
++ GRAF=MOTIF \
++ GRAFLIBS='$$(MOTIFLIB) $$(MOTIFLIBS)' \
++ GRAFINCLUDES='-I$$(X11BASE)/include' \
++ GRAFOBJS='$$(MOTIFOBJS)' \
++ SYSDEFS='-DDONT_DECLARE_ERRLIST -DSOUND \
++ -DDEFAULT_SOUND_DIR=\"$(SOUNDDIR)\" -DJOYSTICK' \
++ all
++ .else
+ $(MAKE) \
+ OPENWINHOME='/usr/X11R6' \
GRAFLIBS='$$(XVLIBS)' \
GRAFINCLUDES='$$(XVINCLUDES)' \
GRAFOBJS='$$(XVOBJS)' \
! SYSDEFS='-DDONT_DECLARE_ERRLIST -DSOUND \
! -DDEFAULT_SOUND_DIR=\"$(SOUNDDIR)\" -DJOYSTICK' \
all
++ .endif
irix:
+ $(MAKE) \
+***************
+*** 143,149 ****
+ XVLIBS=-L$(OPENWINHOME)/lib -lxview -lolgx -lX11
+ XVINCLUDES=-I$(OPENWINHOME)/include
+
+! MOTIFLIBS=-lXm -lXt -lX11
+ MOTIFINCLUDES=
+
+ GRAFLIBS=$($(GRAF)LIBS)
+--- 155,161 ----
+ XVLIBS=-L$(OPENWINHOME)/lib -lxview -lolgx -lX11
+ XVINCLUDES=-I$(OPENWINHOME)/include
+
+! MOTIFLIBS=-lXt -lX11
+ MOTIFINCLUDES=
+
+ GRAFLIBS=$($(GRAF)LIBS)