diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-18 20:49:00 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-18 20:49:00 +0000 |
commit | 8f394194915e650f7066d8fb0d5567688c91553a (patch) | |
tree | df5a8812c3460da4de92cdac4be27d685b475a09 /audio/esound/Makefile | |
parent | 5adffe4185151c2cc474c10e7e858059ff8a2e75 (diff) | |
download | pkgsrc-8f394194915e650f7066d8fb0d5567688c91553a.tar.gz |
Regularize fixes to config scripts to use the same code.
Diffstat (limited to 'audio/esound/Makefile')
-rw-r--r-- | audio/esound/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/audio/esound/Makefile b/audio/esound/Makefile index f82c3775dc2..1e15e629717 100644 --- a/audio/esound/Makefile +++ b/audio/esound/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2001/06/16 19:50:57 jlam Exp $ +# $NetBSD: Makefile,v 1.21 2001/06/18 20:49:00 jlam Exp $ DISTNAME= esound-0.2.22 CATEGORIES= audio @@ -17,14 +17,17 @@ USE_CONFIG_WRAPPER= YES .include "../../audio/libaudiofile/buildlink.mk" .include "../../devel/libgetopt/buildlink.mk" -# Fix esd-config by removing buildlink directory references. +# Fix config scripts by removing buildlink directory references. post-build: @cd ${WRKSRC}; \ - ${MV} -f esd-config esd-config.fixme; \ - ${SED} -e "/^audiofile/s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g" \ - -e "/^audiofile/s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g" \ - esd-config.fixme > esd-config; \ - ${RM} -f esd-config.fixme; \ - ${CHMOD} +x esd-config + config_scripts="esd-config"; \ + for file in $${config_scripts}; do \ + ${MV} -f $${file} $${file}.fixme; \ + ${SED} -e "s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g" \ + -e "s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g" \ + $${file}.fixme > $${file}; \ + ${RM} -f $${file}.fixme; \ + ${CHMOD} +x $${file}; \ + done .include "../../mk/bsd.pkg.mk" |