summaryrefslogtreecommitdiff
path: root/audio/rio
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-06-15 15:13:34 +0000
committerjlam <jlam@pkgsrc.org>2007-06-15 15:13:34 +0000
commit9de6396bd3d5393dbaade92e98df4e16a8c2e9b2 (patch)
tree4feec0d4f5ecda8678d865756dd0b42f6c9b2e64 /audio/rio
parent5e5d791a02a803755f0379c34c352d17ff00b797 (diff)
downloadpkgsrc-9de6396bd3d5393dbaade92e98df4e16a8c2e9b2.tar.gz
* Substitute for @SH@ as well as @AWK@ per de facto standards for
installed shell scripts. * Generate the to-be-installed script at build time, not at install time. We "build" for a reason -- to see what's going to be installed before we actually install it.
Diffstat (limited to 'audio/rio')
-rw-r--r--audio/rio/Makefile6
-rw-r--r--audio/rio/files/find-lpt-port5
2 files changed, 6 insertions, 5 deletions
diff --git a/audio/rio/Makefile b/audio/rio/Makefile
index 7ef8434e415..f5879086d19 100644
--- a/audio/rio/Makefile
+++ b/audio/rio/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2007/02/22 19:26:07 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2007/06/15 15:13:34 jlam Exp $
#
DISTNAME= rio007
@@ -23,12 +23,12 @@ SPECIAL_PERMS= bin/rio ${SETUID_ROOT_PERMS}
do-build:
cd ${WRKSRC} && ${CXX} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${LIBS} app.cpp rio.cpp -o rio
+ ${SED} ${FILES_SUBST_SED} ${FILESDIR}/find-lpt-port > ${WRKSRC}/find-lpt-port.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rio ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/rio
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/rio
- ${SED} -e 's|@AWK@|${AWK}|g' ${FILESDIR}/find-lpt-port > ${PREFIX}/bin/find-lpt-port
- ${CHMOD} 755 ${PREFIX}/bin/find-lpt-port
+ ${INSTALL_SCRIPT} ${WRKSRC}/find-lpt-port.sh ${PREFIX}/bin/find-lpt-port
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/rio/files/find-lpt-port b/audio/rio/files/find-lpt-port
index 72e0ef8b74a..0395868e2e6 100644
--- a/audio/rio/files/find-lpt-port
+++ b/audio/rio/files/find-lpt-port
@@ -1,5 +1,6 @@
-#! /bin/sh
-# $NetBSD: find-lpt-port,v 1.1 2000/01/11 11:32:11 agc Exp $
+#!@SH@
+#
+# $NetBSD: find-lpt-port,v 1.2 2007/06/15 15:13:34 jlam Exp $
#
# Small shell script to find the lpt port easily