Files
pkgsrc-ng/games/defendguin/patches/patch-aa
2016-01-21 23:40:00 +01:00

35 lines
1.1 KiB
Plaintext

$NetBSD: patch-aa,v 1.3 2015/02/09 09:51:26 snj Exp $
--- Makefile.orig 2009-11-05 13:21:34.000000000 -0800
+++ Makefile 2015-02-09 01:46:52.000000000 -0800
@@ -11,7 +11,9 @@
CFLAGS=-Wall -O2
#DATA_PREFIX=$(PWD)/data/
+ifndef PREFIX
PREFIX=/usr/local
+endif
MAN_PREFIX=$(PREFIX)
BIN_PREFIX=$(PREFIX)/bin
DATA_PREFIX=$(PREFIX)/share/defendguin/
@@ -21,7 +23,7 @@ JOY=YES
# Other definitions:
SDL_CFLAGS := $(shell sdl-config --cflags)
-SDL_LDFLAGS := $(shell sdl-config --libs) -L/usr/X11R6/lib
+SDL_LDFLAGS := $(shell sdl-config --libs) -Wl,-R$(X11BASE)/lib -L$(X11BASE)/lib
MIXER=-lSDL_mixer
NOSOUNDFLAG=__SOUND
CFLAGS=-Wall $(SDL_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" -D$(NOSOUNDFLAG) \
@@ -43,8 +45,8 @@ install: defendguin
cp defendguin $(BIN_PREFIX)/
chmod a+rx,g-w,o-w $(BIN_PREFIX)/defendguin
-mkdir -p $(MAN_PREFIX)/man/man6/
- cp src/defendguin.6 $(MAN_PREFIX)/man/man6/
- chmod a+rx,g-w,o-w $(MAN_PREFIX)/man/man6/defendguin.6
+ cp src/defendguin.6 $(MAN_PREFIX)/$(PKGMANDIR)/man6/
+ chmod 444 $(MAN_PREFIX)/$(PKGMANDIR)/man6/defendguin.6
uninstall:
-rm -r $(DATA_PREFIX)