summaryrefslogtreecommitdiff
path: root/games/greed/patches/patch-aa
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2012-06-18 04:55:38 +0000
committerdholland <dholland@pkgsrc.org>2012-06-18 04:55:38 +0000
commit592246773094eb22ff721ffd9028e93b28c646f7 (patch)
tree03fdba0a628e5658b70e1083a3f8c0c7dd079b3e /games/greed/patches/patch-aa
parent1a5894b2d514b16bf1df31ddcab95c77cdf6e888 (diff)
downloadpkgsrc-592246773094eb22ff721ffd9028e93b28c646f7.tar.gz
Honor pkgsrc LDFLAGS so rpaths get set; should fix Linux build.
While here, avoid trying to arbitrarily delete the package's man page from /usr/share/man prior to installing.
Diffstat (limited to 'games/greed/patches/patch-aa')
-rw-r--r--games/greed/patches/patch-aa20
1 files changed, 17 insertions, 3 deletions
diff --git a/games/greed/patches/patch-aa b/games/greed/patches/patch-aa
index e329fb50033..15922b2b253 100644
--- a/games/greed/patches/patch-aa
+++ b/games/greed/patches/patch-aa
@@ -1,4 +1,9 @@
-$NetBSD: patch-aa,v 1.3 2010/01/29 23:08:08 joerg Exp $
+$NetBSD: patch-aa,v 1.4 2012/06/18 04:55:38 dholland Exp $
+
+- configure paths for pkgsrc
+- honor pkgsrc LDFLAGS
+- DESTDIR support
+- don't attempt to randomly blow things away on the system
--- Makefile.orig 2002-07-30 22:04:21.000000000 +0000
+++ Makefile
@@ -19,9 +24,18 @@ $NetBSD: patch-aa,v 1.3 2010/01/29 23:08:08 joerg Exp $
TERMLIB = -lncurses
CC = gcc
-@@ -39,7 +40,7 @@ greed.6: greed.xml
+@@ -32,14 +33,14 @@ CC = gcc
+ #TERMLIB = scurses.lib
+
+ greed: greed.c
+- cc -DSCOREFILE=\"$(SFILE)\" -D$(SYSDEF) -DRELEASE=\"$(VERS)\" -o greed greed.c $(CFLAGS) $(TERMLIB)
++ cc -DSCOREFILE=\"$(SFILE)\" -D$(SYSDEF) -DRELEASE=\"$(VERS)\" -o greed greed.c $(CFLAGS) $(LDFLAGS) $(TERMLIB)
+
+ greed.6: greed.xml
+ xmlto man greed.xml
- install: greed.6 uninstall
+-install: greed.6 uninstall
++install: greed.6
cp greed $(BIN)
- cp greed.6 /usr/share/man/man6/greed.6
+ cp greed.6 ${DESTDIR}$(PREFIX)/$(PKGMANDIR)/man6