summaryrefslogtreecommitdiff
path: root/games/xroads
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-07-08 17:15:08 +0000
committerjoerg <joerg@pkgsrc.org>2009-07-08 17:15:08 +0000
commit63d55828ace6cb49c59d61a2b5ba13d4badd3722 (patch)
treee8ab1c59f503522ad72a41b9800812a766c73d59 /games/xroads
parenta3794676d9fb13361e55ee55cf5b879ee70e3041 (diff)
downloadpkgsrc-63d55828ace6cb49c59d61a2b5ba13d4badd3722.tar.gz
user-destdir support
Diffstat (limited to 'games/xroads')
-rw-r--r--games/xroads/Makefile6
-rw-r--r--games/xroads/distinfo4
-rw-r--r--games/xroads/patches/patch-aa27
3 files changed, 29 insertions, 8 deletions
diff --git a/games/xroads/Makefile b/games/xroads/Makefile
index 7449a3fc44e..4e11d0c4f57 100644
--- a/games/xroads/Makefile
+++ b/games/xroads/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2007/02/02 17:13:01 joerg Exp $
+# $NetBSD: Makefile,v 1.13 2009/07/08 17:19:05 joerg Exp $
#
DISTNAME= xroads-v0.5
@@ -11,6 +11,10 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= # http://freshmeat.net/homepage/898367442/
COMMENT= Overhead view maze-based shoot 'em up game
+PKG_DESTDIR_SUPPORT= user-destdir
+
+INSTALLATION_DIRS= bin
+
WRKSRC= ${WRKDIR}/xroads-v0.5
.include "../../x11/libX11/buildlink3.mk"
diff --git a/games/xroads/distinfo b/games/xroads/distinfo
index 635fa5e7256..fe30138c023 100644
--- a/games/xroads/distinfo
+++ b/games/xroads/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.6 2006/08/02 19:24:55 kristerw Exp $
+$NetBSD: distinfo,v 1.7 2009/07/08 17:19:05 joerg Exp $
SHA1 (xroads-v0.5.tar.gz) = 559f916eda55ba4700c2cea6fcb42d1b1a47fa06
RMD160 (xroads-v0.5.tar.gz) = c0399b391d2113d93c08c25ad6370273791261b7
Size (xroads-v0.5.tar.gz) = 48641 bytes
-SHA1 (patch-aa) = 4978b1b718b920871d06acff54895da60642c949
+SHA1 (patch-aa) = 4484ea71864b6db650faddf793b850ab251f34ad
SHA1 (patch-ab) = f22b139e84c4e2d4d9d190d818d0ce6aba816a23
SHA1 (patch-ac) = 19c91236e36cced0c26f527fdc99a565dfdb245f
SHA1 (patch-ad) = eb76c3ee57d8b18f70e7f8bcd41d96d5e1dd4dad
diff --git a/games/xroads/patches/patch-aa b/games/xroads/patches/patch-aa
index 832aeafd581..b50d3e3713b 100644
--- a/games/xroads/patches/patch-aa
+++ b/games/xroads/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.2 2000/09/26 00:46:05 hubertf Exp $
+$NetBSD: patch-aa,v 1.3 2009/07/08 17:19:05 joerg Exp $
---- Makefile.orig Wed Jun 30 20:25:02 1999
+--- Makefile.orig 1999-06-30 20:25:02.000000000 +0200
+++ Makefile
-@@ -5,8 +5,8 @@
+@@ -5,8 +5,8 @@ VERSION = v0.5
# it's data, and BINPATH is where it puts the executable
###########################################################################
@@ -13,7 +13,7 @@ $NetBSD: patch-aa,v 1.2 2000/09/26 00:46:05 hubertf Exp $
# I imagine you would use this BINPATH for Solaris:
#BINPATH = /usr/openwin/bin/
-@@ -15,7 +15,7 @@
+@@ -15,7 +15,7 @@ BINPATH = /usr/X11R6/bin/
# optimizations. Check the manual for your compiler.
###########################################################################
@@ -22,7 +22,7 @@ $NetBSD: patch-aa,v 1.2 2000/09/26 00:46:05 hubertf Exp $
#CFLAGS = -O6 -mpentium -g -Wall -DXRMPATH=\"$(DATAPATH)\"
###########################################################################
-@@ -33,7 +33,7 @@
+@@ -33,7 +33,7 @@ CFLAGS = -fomit-frame-pointer -O2 -Wall
###########################################################################
### Linux machines use this line:
@@ -31,3 +31,20 @@ $NetBSD: patch-aa,v 1.2 2000/09/26 00:46:05 hubertf Exp $
### I'm told this line works fine on Solaris 2.5.1 with X11R5:
#LINK = -L/usr/openwin/lib -I/usr/openwin/include -lX11 -lm
+@@ -73,11 +73,11 @@ all: $(OBJECTS)
+ $(CC) $(FLAGS) $(LINK) -o xroads $(OBJECTS)
+
+ install: all
+- rm -fr $(DATAPATH)
+- mkdir $(DATAPATH)
+- cp -f *.xrm $(DATAPATH)
+- cp -f README $(DATAPATH)
+- cp -f xroads $(BINPATH)
++ rm -fr ${DESTDIR}$(DATAPATH)
++ mkdir ${DESTDIR}$(DATAPATH)
++ ${BSD_INSTALL_DATA} *.xrm ${DESTDIR}$(DATAPATH)
++ ${BSD_INSTALL_DATA} README ${DESTDIR}$(DATAPATH)
++ ${BSD_INSTALL_PROGRAM} xroads ${DESTDIR}$(BINPATH)
+
+ uninstall:
+ rm -fr $(DATAPATH)