summaryrefslogtreecommitdiff
path: root/games/greed/patches/patch-aa
blob: 5e313edb623ad2e3f22e8ce31bd4da47cf45aa32 (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
26
27
28
29
30
$NetBSD: patch-aa,v 1.2 2007/02/27 07:50:49 wiz Exp $

--- Makefile.orig	2002-07-30 22:04:21.000000000 +0000
+++ Makefile
@@ -13,12 +13,13 @@ SYSDEF=NOTBSD
 
 # Prepend "c:" (or whatever drive you use) to the following paths for MSDOS
 # Location of high score file
-SFILE=/usr/games/lib/greed.hs
+SFILE=${PREFIX}/share/games/greed.hs
 # Location of game executable
-BIN=/usr/games
+BIN=${PREFIX}/bin
 
 # Flags for use with the Linux ncurses package (recommended)
-CFLAGS = -O -s -DNOTBSD
+#CFLAGS = -O -s -DNOTBSD
+CFLAGS+=	-DNOTBSD
 TERMLIB = -lncurses
 CC = gcc
 
@@ -39,7 +40,7 @@ greed.6: greed.xml
 
 install: greed.6 uninstall
 	cp greed $(BIN)
-	cp greed.6 /usr/share/man/man6/greed.6
+	cp greed.6 $(PREFIX)/$(PKGMANDIR)/man6
 
 uninstall:
 	rm -f $(BIN)/install /usr/share/man/man6/greed.6