aboutsummaryrefslogtreecommitdiffstats
path: root/games/xworm/files
diff options
context:
space:
mode:
Diffstat (limited to 'games/xworm/files')
-rw-r--r--games/xworm/files/patch-aa22
-rw-r--r--games/xworm/files/patch-ab6
2 files changed, 18 insertions, 10 deletions
diff --git a/games/xworm/files/patch-aa b/games/xworm/files/patch-aa
index b3f04e379a6b..6e3dca373109 100644
--- a/games/xworm/files/patch-aa
+++ b/games/xworm/files/patch-aa
@@ -1,18 +1,26 @@
---- Makefile.orig Wed May 7 11:28:12 1997
-+++ Makefile Sun Sep 27 12:19:42 1998
-@@ -6,21 +6,26 @@
+--- Makefile.orig Thu May 8 01:28:12 1997
++++ Makefile Sat Aug 12 03:01:04 2000
+@@ -1,26 +1,31 @@
+ # Makefile for XWorm.
+
+ #CC = cc
+-CC = gcc
++CC ?= gcc
+
HPFLAGS = -O -D_HPUX_SOURCE
SUNFLAGS = -O
LINUXFLAGS = -O
-+FREEBSDFLAGS= -O -DPREFIX=\"/usr/X11R6/share/xworm\"
++FREEBSDFLAGS= ${CFLAGS} -DXWORMDIR=\"${PREFIX}/share/xworm\"
- INCDIR = -I/usr/include/X11R5 -I/usr/include -I/usr/X11R6/include
+-INCDIR = -I/usr/include/X11R5 -I/usr/include -I/usr/X11R6/include
++INCDIR = -I${X11BASE}/include
HPLINK = -L/usr/local/lib/X11R5 -lXt -lX11 -lm
SUNLINK = -L/usr/local/lib/X11R5 -lXt -lX11 -lm -lsocket -lnsl -lICE -lSM
- LINUXLINK = -L/usr/X11R6/lib -lXt -lX11 -lm
+-LINUXLINK = -L/usr/X11R6/lib -lXt -lX11 -lm
++LINUXLINK = -L${X11BASE}/lib -lXt -lX11 -lm
+.if ${PORTOBJFORMAT} == "elf"
-+LINUXLINK+= -Wl,-rpath,$(X11BASE)/lib
++LINUXLINK+= -Wl,-rpath,${X11BASE}/lib
+.endif
all:
diff --git a/games/xworm/files/patch-ab b/games/xworm/files/patch-ab
index 73bc78c790f1..5fb4597d4260 100644
--- a/games/xworm/files/patch-ab
+++ b/games/xworm/files/patch-ab
@@ -18,9 +18,9 @@
+#define PREFIX "."
+#endif
+
-+#define gridfile PREFIX "/xworm.grid"
-+#define fontfile PREFIX "/xworm.font"
-+#define logofile PREFIX "/xworm.raw"
++#define gridfile XWORMDIR "/xworm.grid"
++#define fontfile XWORMDIR "/xworm.font"
++#define logofile XWORMDIR "/xworm.raw"
#define maxQ 5000 /* max queue */
#define NCOLORS 15 /* number of colours */