diff options
author | jlam <jlam> | 2007-06-15 15:13:34 +0000 |
---|---|---|
committer | jlam <jlam> | 2007-06-15 15:13:34 +0000 |
commit | 26a4f79f5139b342007563dec3f9e8fce4113d70 (patch) | |
tree | 4feec0d4f5ecda8678d865756dd0b42f6c9b2e64 /audio/rio | |
parent | 9fa3481abcc5504f7f36bac98acd6903353e5e1d (diff) | |
download | pkgsrc-26a4f79f5139b342007563dec3f9e8fce4113d70.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/Makefile | 6 | ||||
-rw-r--r-- | audio/rio/files/find-lpt-port | 5 |
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 |