diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-10 20:51:08 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-10 20:51:08 +0000 |
commit | 5db03d71ed654012f95e78020da757e4ef21d21e (patch) | |
tree | 5e447ec09e19d5e330b72c53272df6f147c90a16 /games/et/Makefile | |
parent | e0778439ee8ecd07e87622682d86da4bb5670544 (diff) | |
download | pkgsrc-5db03d71ed654012f95e78020da757e4ef21d21e.tar.gz |
Use SUBST framework.
Diffstat (limited to 'games/et/Makefile')
-rw-r--r-- | games/et/Makefile | 14 |
1 files changed, 11 insertions, 3 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" |