pkgsrc/games/gemdropx/patches/patch-ab
drochner 0b4c1dd9d6 update to 0.9
rewritten to use SDL
2004-08-06 16:49:48 +00:00

48 lines
1.1 KiB
Text

$NetBSD: patch-ab,v 1.4 2004/08/06 16:49:48 drochner Exp $
--- Makefile.orig 2002-05-18 10:53:29.000000000 +0200
+++ Makefile
@@ -14,11 +14,11 @@
# Added 'install' target (finally!): May 18, 2002
-DATA_PREFIX=/usr/local/share/gemdropx
+DATA_PREFIX=${PREFIX}/share/gemdropx
SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LDFLAGS := $(shell sdl-config --libs)
-CC=gcc
-CXX=gcc
+#CC=gcc
+#CXX=gcc
MIXER=-lSDL_mixer
@@ -27,7 +27,7 @@ JOYFLAG=$(JOY)JOYSTICK
EMBEDDEDFLAG=NOT_EMBEDDED
-CFLAGS=-Wall $(SDL_CFLAGS) \
+CFLAGS+= $(SDL_CFLAGS) \
-DDATA_PREFIX=\"$(DATA_PREFIX)\" -D$(NOSOUNDFLAG) -D$(JOYFLAG) \
-D$(EMBEDDEDFLAG) $(XTRA_FLAGS)
SDL_LIB=$(MIXER) $(SDL_LDFLAGS)
@@ -39,8 +39,8 @@ GFX_LIB=$(SDL_LIB)
all: gemdropx
install:
- cp gemdropx /usr/local/bin/
- chmod 755 /usr/local/bin/gemdropx
+ cp gemdropx ${PREFIX}/bin/
+ chmod 755 ${PREFIX}/bin/gemdropx
-mkdir -p $(DATA_PREFIX)
chmod 755 $(DATA_PREFIX)
cp -R data/* $(DATA_PREFIX)
@@ -61,7 +61,7 @@ clean:
gemdropx: gemdropx.o
- $(CXX) $(CFLAGS) -o gemdropx gemdropx.o $(GFX_LIB) -lm
+ $(CC) $(LDFLAGS) -o gemdropx gemdropx.o $(GFX_LIB) -lm
gemdropx.o: gemdropx.c