diff options
author | jlam <jlam> | 2001-06-18 20:49:00 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-06-18 20:49:00 +0000 |
commit | b260b8af647a419792e37c92b2636066cc6d6cda (patch) | |
tree | df5a8812c3460da4de92cdac4be27d685b475a09 /audio | |
parent | e5a668d3879354c1def532778b146ea8c7d6838b (diff) | |
download | pkgsrc-b260b8af647a419792e37c92b2636066cc6d6cda.tar.gz |
Regularize fixes to config scripts to use the same code.
Diffstat (limited to 'audio')
-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" |