summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-10 20:51:08 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-10 20:51:08 +0000
commit5db03d71ed654012f95e78020da757e4ef21d21e (patch)
tree5e447ec09e19d5e330b72c53272df6f147c90a16 /games
parente0778439ee8ecd07e87622682d86da4bb5670544 (diff)
downloadpkgsrc-5db03d71ed654012f95e78020da757e4ef21d21e.tar.gz
Use SUBST framework.
Diffstat (limited to 'games')
-rw-r--r--games/et/Makefile14
-rw-r--r--games/et/files/et.sh4
-rw-r--r--games/et/files/etded.sh4
3 files changed, 15 insertions, 7 deletions
diff --git a/games/et/Makefile b/games/et/Makefile
index ec62c7a2c6d..48e67fbb626 100644
--- a/games/et/Makefile
+++ b/games/et/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2005/12/29 06:21:41 jlam Exp $
+# $NetBSD: Makefile,v 1.9 2006/01/10 20:51:08 joerg Exp $
#
DISTNAME= et-linux-2.56-2.x86
@@ -27,9 +27,19 @@ DEPENDS+= suse_base>=6.3:../../emulators/${SUSE_DIR_PREFIX}_base
INSTALLATION_DIRS= bin
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${WRKDIR}/et ${WRKDIR}/etded
+SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+= -e 's,@SH@,${SH},g'
+SUBST_STAGE.paths= post-patch
+
pre-extract:
${MKDIR} ${WRKSRC}
+post-extract:
+ ${CP} ${FILESDIR}/et.sh ${WRKDIR}/et
+ ${CP} ${FILESDIR}/etded.sh ${WRKDIR}/etded
+
do-install:
${INSTALL_DATA_DIR} ${ETDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGES ${ETDIR}/
@@ -45,9 +55,7 @@ do-install:
cd ${WRKSRC}/pb && ${PAX} -rw -p am . ${ETDIR}/pb
${INSTALL_SCRIPT} ${WRKSRC}/bin/Linux/x86/et.x86 ${ETDIR}/
${INSTALL_SCRIPT} ${WRKSRC}/bin/Linux/x86/etded.x86 ${ETDIR}/
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/et.sh >${WRKDIR}/et
${INSTALL_SCRIPT} ${WRKDIR}/et ${PREFIX}/bin
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/etded.sh >${WRKDIR}/etded
${INSTALL_SCRIPT} ${WRKDIR}/etded ${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"
diff --git a/games/et/files/et.sh b/games/et/files/et.sh
index 137871538bb..50945d64fb1 100644
--- a/games/et/files/et.sh
+++ b/games/et/files/et.sh
@@ -1,5 +1,5 @@
-#!/bin/sh
-# $NetBSD: et.sh,v 1.1.1.1 2004/07/08 14:28:37 xtraeme Exp $
+#!@SH@
+# $NetBSD: et.sh,v 1.2 2006/01/10 20:51:08 joerg Exp $
cd @PREFIX@/lib/lokigames/et
exec ./et.x86 "$@"
diff --git a/games/et/files/etded.sh b/games/et/files/etded.sh
index 6e79c996ed9..8001661a8d9 100644
--- a/games/et/files/etded.sh
+++ b/games/et/files/etded.sh
@@ -1,5 +1,5 @@
-#!/bin/sh
-# $NetBSD: etded.sh,v 1.1.1.1 2004/07/08 14:28:37 xtraeme Exp $
+#!@SH@
+# $NetBSD: etded.sh,v 1.2 2006/01/10 20:51:08 joerg Exp $
cd @PREFIX@/lib/lokigames/et
exec ./etded.x86 "$@"