summaryrefslogtreecommitdiff
path: root/games/xsoldier/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-09-14 03:48:06 +0000
committerjlam <jlam@pkgsrc.org>2001-09-14 03:48:06 +0000
commitcad6c11f9e9a5c20484b8b188d4bb8ef96369dcc (patch)
tree8727e497b7c47ff5e1dc7b196292816dbad98137 /games/xsoldier/Makefile
parentaa0541e1f35bd69e986039899800eba0c0f7d177 (diff)
downloadpkgsrc-cad6c11f9e9a5c20484b8b188d4bb8ef96369dcc.tar.gz
Fix problems with xpkgwedge and score file installation noted by John
Darrow <John.P.Darrow@wheaton.edu> in pkg/13264. Changes noted in the PR were applied with some small changes to use FILES_SUBST/FILES_SUBST_SED to unify the various substitution patterns for the *INSTALL files, and to use ${CMP} instead of diff in the DEINSTALL file.
Diffstat (limited to 'games/xsoldier/Makefile')
-rw-r--r--games/xsoldier/Makefile24
1 files changed, 23 insertions, 1 deletions
diff --git a/games/xsoldier/Makefile b/games/xsoldier/Makefile
index e8ae800022d..6a24f94ed8b 100644
--- a/games/xsoldier/Makefile
+++ b/games/xsoldier/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2001/08/22 17:38:58 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2001/09/14 03:48:06 jlam Exp $
#
DISTNAME= xsoldier-0.96
@@ -12,8 +12,30 @@ COMMENT= Updated xgalaga type game with awesome graphics
USE_IMAKE= YES
NO_INSTALL_MANPAGES= YES
+DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
+INSTALL_FILE= ${WRKDIR}/INSTALL
+
+MAKE_ENV+= BINOWN=${BINOWN}
+
+FILES_SUBST= CAT=${CAT:Q}
+FILES_SUBST+= CHGRP=${CHGRP:Q}
+FILES_SUBST+= CHMOD=${CHMOD:Q}
+FILES_SUBST+= CHOWN=${CHOWN:Q}
+FILES_SUBST+= CMP=${CMP:Q}
+FILES_SUBST+= CP=${CP:Q}
+FILES_SUBST+= ECHO=${ECHO:Q}
+FILES_SUBST+= RM=${RM:Q}
+FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
+
post-patch:
${TOUCH} ${WRKSRC}/xsoldier.man
+pre-install:
+ ${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
+ ${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE}
+
+post-install:
+ PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
+
.include "../../graphics/xpm/buildlink.mk"
.include "../../mk/bsd.pkg.mk"