summaryrefslogtreecommitdiff
path: root/games/defendguin/patches/patch-aa
blob: b99d8f2d67c74068ca7d5c3c3b6bf9d2188d8342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$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)