pkgsrc/games/defendguin/patches/patch-aa
reed 118921ec81 Update patch-aa to use PKGMANDIR.
Also use INSTALLATION_DIRS to precreate the needed man page directory.
2005-12-27 21:13:34 +00:00

25 lines
726 B
Text

$NetBSD: patch-aa,v 1.2 2005/12/27 21:13:34 reed Exp $
--- Makefile.orig 2002-01-05 17:09:37.000000000 -0800
+++ Makefile
@@ -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/
@@ -42,8 +44,8 @@ install: defendguin
chmod -R a+rX,g-w,o-w $(DATA_PREFIX)
cp defendguin $(BIN_PREFIX)/
chmod a+rx,g-w,o-w $(BIN_PREFIX)/defendguin
- cp defendguin.6 $(MAN_PREFIX)/man/man6/
- chmod a+rx,g-w,o-w $(MAN_PREFIX)/man/man6/defendguin.6
+ cp defendguin.6 $(MAN_PREFIX)/$(PKGMANDIR)/man6/
+ chmod a+rx,g-w,o-w $(MAN_PREFIX)/$(PKGMANDIR)/man6/defendguin.6
uninstall:
-rm -r $(DATA_PREFIX)