summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg>2010-02-14 20:51:23 +0000
committerjoerg <joerg>2010-02-14 20:51:23 +0000
commitc27b07a733f4f57c3bdb0503c4ee0a6622cb9c85 (patch)
treee43e532283452ff450c507d4009e47781ac897cc /games
parent81e683d1bb5639ac63d397a429a0e7962a5eddf6 (diff)
downloadpkgsrc-c27b07a733f4f57c3bdb0503c4ee0a6622cb9c85.tar.gz
DESTDIR support
Diffstat (limited to 'games')
-rw-r--r--games/sjeng/Makefile15
-rw-r--r--games/spellcast/Makefile4
-rw-r--r--games/spellcast/distinfo4
-rw-r--r--games/spellcast/patches/patch-aa12
4 files changed, 19 insertions, 16 deletions
diff --git a/games/sjeng/Makefile b/games/sjeng/Makefile
index e9665348089..4d0db919445 100644
--- a/games/sjeng/Makefile
+++ b/games/sjeng/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/06/05 16:02:51 joerg Exp $
+# $NetBSD: Makefile,v 1.16 2010/02/14 21:08:23 joerg Exp $
DISTNAME= Sjeng-Free-11.0
PKGNAME= sjeng-11.0
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.sjeng.org/
COMMENT= Engine for chess variations (bughouse, suicide, etc.)
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= YES
USE_LANGUAGES= c c++
LIBS+= -lm # floor()
@@ -36,14 +38,13 @@ post-build:
${MV} -f $${file}.fixed $${file}; \
done
+INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR} ${BOOKDIR}
+
post-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
- ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
${CAT} ${WRKSRC}/sjeng.rc | ${TR} -d "\015" > ${WRKDIR}/sample.sjengrc
- ${INSTALL_DATA} ${WRKDIR}/sample.sjengrc ${EGDIR}
- ${INSTALL_DATA_DIR} ${BOOKDIR}
- ${INSTALL_DATA} ${WRKSRC}/books/*.opn ${BOOKDIR}
+ ${INSTALL_DATA} ${WRKDIR}/sample.sjengrc ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/books/*.opn ${DESTDIR}${BOOKDIR}
.include "../../databases/gdbm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/games/spellcast/Makefile b/games/spellcast/Makefile
index 52b9c295f50..421e0fbd0ba 100644
--- a/games/spellcast/Makefile
+++ b/games/spellcast/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2008/01/19 09:16:22 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2010/02/14 21:03:19 joerg Exp $
#
DISTNAME= spellcast
@@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.eblong.com/zarf/spellcast.html
COMMENT= Game of dueling wizards for two players
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_X11BASE= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man6
diff --git a/games/spellcast/distinfo b/games/spellcast/distinfo
index e8d8eb1d3c6..f242329a776 100644
--- a/games/spellcast/distinfo
+++ b/games/spellcast/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 23:12:03 agc Exp $
+$NetBSD: distinfo,v 1.4 2010/02/14 21:03:19 joerg Exp $
SHA1 (spellcast.tar.Z) = 3c51aa1746d4b8385a87ab5af5ed78b48cc4ac19
RMD160 (spellcast.tar.Z) = ed4751d902a58abdc2a79333541fc866170a642d
Size (spellcast.tar.Z) = 129173 bytes
-SHA1 (patch-aa) = 8c81fd0791496d118b27a930ec0edc67284f1184
+SHA1 (patch-aa) = 0b407bfe80ca4170d54da83deebf5ea57952cf90
diff --git a/games/spellcast/patches/patch-aa b/games/spellcast/patches/patch-aa
index 8ed94aa1c19..0c4c6ea6543 100644
--- a/games/spellcast/patches/patch-aa
+++ b/games/spellcast/patches/patch-aa
@@ -1,16 +1,16 @@
-$NetBSD: patch-aa,v 1.1 1998/08/07 11:54:29 frueauf Exp $
+$NetBSD: patch-aa,v 1.2 2010/02/14 21:03:19 joerg Exp $
--- Makefile.orig Fri Aug 7 04:21:15 1998
+++ Makefile Fri Aug 7 04:24:19 1998
-@@ -15,6 +15,6 @@
+@@ -15,6 +15,5 @@
# spell list postscript file are installed. Change them to whatever is appropriate.
-DESTDIR=/afs/andrew.cmu.edu/usr0/games
-DESTBIN=$(DESTDIR)/bin/.unpriv/@sys
-+DESTDIR=$(PREFIX)
-+DESTBIN=$(DESTDIR)/bin
- DESTMAN=$(DESTDIR)/man/man6
+-DESTMAN=$(DESTDIR)/man/man6
-DESTLIB=$(DESTDIR)/lib/spellcast
-+DESTLIB=$(DESTDIR)/share/doc/spellcast
++DESTBIN=$(DESTDIR)${PREFIX}/bin
++DESTMAN=$(DESTDIR)${PREFIX}/${PKGMANDIR}/man6
++DESTLIB=$(DESTDIR)${PREFIX}/share/doc/spellcast
@@ -24,7 +24,7 @@