update Fri Jan 29 18:37:00 PST 2010
[pkgsrc.git] / games / greed / patches / patch-aa
1 $NetBSD: patch-aa,v 1.3 2010/01/29 23:08:08 joerg Exp $
2
3 --- Makefile.orig       2002-07-30 22:04:21.000000000 +0000
4 +++ Makefile
5 @@ -13,12 +13,13 @@ SYSDEF=NOTBSD
6  
7  # Prepend "c:" (or whatever drive you use) to the following paths for MSDOS
8  # Location of high score file
9 -SFILE=/usr/games/lib/greed.hs
10 +SFILE=${PREFIX}/share/games/greed.hs
11  # Location of game executable
12 -BIN=/usr/games
13 +BIN=${DESTDIR}${PREFIX}/bin
14  
15  # Flags for use with the Linux ncurses package (recommended)
16 -CFLAGS = -O -s -DNOTBSD
17 +#CFLAGS = -O -s -DNOTBSD
18 +CFLAGS+=       -DNOTBSD
19  TERMLIB = -lncurses
20  CC = gcc
21  
22 @@ -39,7 +40,7 @@ greed.6: greed.xml
23  
24  install: greed.6 uninstall
25         cp greed $(BIN)
26 -       cp greed.6 /usr/share/man/man6/greed.6
27 +       cp greed.6 ${DESTDIR}$(PREFIX)/$(PKGMANDIR)/man6
28  
29  uninstall:
30         rm -f $(BIN)/install /usr/share/man/man6/greed.6