diff options
author | joerg <joerg> | 2006-01-10 20:51:08 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-10 20:51:08 +0000 |
commit | b13b064c8da2bd8f328005dd31a678ee78c61e65 (patch) | |
tree | 5e447ec09e19d5e330b72c53272df6f147c90a16 /games | |
parent | eaa48952ada8b6922e3215db65808df6e7970c3b (diff) | |
download | pkgsrc-b13b064c8da2bd8f328005dd31a678ee78c61e65.tar.gz |
Use SUBST framework.
Diffstat (limited to 'games')
-rw-r--r-- | games/et/Makefile | 14 | ||||
-rw-r--r-- | games/et/files/et.sh | 4 | ||||
-rw-r--r-- | games/et/files/etded.sh | 4 |
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 "$@" |