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
Michael Haro 4aed6f1e65 ***
games/affenspiel
       - Support CC properly
       ***
       games/battalion
       - Support PREFIX properly
       ***
       games/block
       - Support CC/CFLAGS properly
       ***
       games/blue
       - Support CC/CFLAGS properly
       - Add WWW: line into pkg/DESCR

       New file:
       patches/patch-aa
       ***
       games/bs
       - Add WWW: line into pkg/DESCR
       ***
       games/columns
       - Support CXXFLAGS properly
       - Support sdl-config
       ***
       games/empire
       - Exclude GPL doc from package
       - Add WWW: line into pkg/DESCR
       ***
       games/freesweep to 0.87
       - Update to version 0.87
       ***
       games/galaxis
       - Support CC properly
       - Add WWW: line into pkg/DESCR
       ***
       games/garith
       - Support CC/CFLAGS properly
       - Support GTK_CONFIG
       ***
       games/gemdropx to 0.7
       - Update to version 0.7
       ***
       games/gtkballs
       - Exclude GPL doc from package
       - Support GTK_CONFIG
       ***
       games/icbm3d
       - Update WWW: line of pkg/DESCR
       ***
       games/mirrormagic
       - Support CC/X11BASE properly
       ***
       games/phalanx to 22
       - Update to version 22
       - Add WWW: line into pkg/DESCR
       ***
       games/spellcast
       - Update MASTER_SITES and WWW: line of pkg/DESCR
       - Support CFLAGS properly
       - Exclude GPL doc from package
       ***
       games/starlanes
       - Support CC properly
       - Exclude GPL doc from package
       ***
       games/xdigger to 1.0.10
       - Update to version 1.0.10

       New file:
       patches/patch-ad  patches/patch-ae
       ***
       games/xtron
       - Support PREFIX properly
       - Exclude GPL doc from package
       ***
       games/xtruco
       - Support CC/CFLAGS/X11BASE properly
       ***
       games/xvier
       - Support X11BASE properly
       ***

PR: 17741
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
2000-04-02 01:00:24 +00:00

53 lines
1.8 KiB
Plaintext

--- 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 \