1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/games/mirrormagic/files/patch-aa

53 lines
1.8 KiB
Plaintext
Raw Normal View History

--- Makefile.orig Wed Sep 6 20:56:17 1995
+++ Makefile Thu Mar 30 01:11:44 2000
@@ -5,14 +5,20 @@
PROGNAME = mirrormagic
RM = rm -f
-CC = gcc
+CC ?= gcc
# CC = cc # for HP-UX and others
-GFX_PATH = -DGFX_PATH=\"./graphics\" # path where the graphics are
-SND_PATH = -DSND_PATH=\"./sounds\" # path where the sounds are
-LEVEL_PATH = -DLEVEL_PATH=\".\" # path where the level file is
-SCORE_PATH = -DSCORE_PATH=\".\" # path where the score file is
-NAMES_PATH = -DNAMES_PATH=\".\" # path where the names file is
+.ifndef PREFIX
+ROOT= .
+.else
+ROOT=${PREFIX}/share/mirrormagic
+.endif
+
+GFX_PATH = -DGFX_PATH=\"${ROOT}/graphics\" # path where the graphics are
+SND_PATH = -DSND_PATH=\"${ROOT}/sounds\" # path where the sounds are
+LEVEL_PATH = -DLEVEL_PATH=\"${ROOT}/data\" # path where the level file is
+SCORE_PATH = -DSCORE_PATH=\"${ROOT}/data\" # path where the score file is
+NAMES_PATH = -DNAMES_PATH=\"${ROOT}/data\" # path where the names file is
# SOUNDS = -DNO_SOUNDS # don't play any sounds
# SCORE_ENTRIES = -DONE_PER_NAME # only one score entry per name
SCORE_ENTRIES = -DMANY_PER_NAME # many score entries per name
@@ -26,7 +32,7 @@
# DEBUG = -DDEBUG -g -ansi -pedantic -Wall
# DEBUG = -DDEBUG -g -Wall
-DEBUG = -O6
+# DEBUG = -O6
# SYSTEM = -Aa -D_HPUX_SOURCE -Dhpux # for HP-UX (obsolete)
# SYSTEM = -DSYSV -Ae # for HP-UX
@@ -34,10 +40,11 @@
# INCL = -I/usr/include/X11R5 # for HP-UX and others
# LIBS = -lXpm -lX11 -lm
# LIBS = -L/usr/lib/X11R5 -lXpm -lX11 -lm # for HP-UX and others
-LIBS = -lXpm -lXpm -lXpm -lX11 -lm # triple "-lXpm" because of Xpm error
+INCL = -I${X11BASE}/include
+LIBS = -L${X11BASE}/lib -lXpm -lX11 -lm
# CFLAGS = -O2 $(CONFIG) $(SYSTEM)
-CFLAGS = $(DEBUG) $(CONFIG) $(SYSTEM) $(INCL)
+CFLAGS+= $(DEBUG) $(CONFIG) $(SYSTEM) $(INCL)
OBJS = main.o \
init.o \