diff options
-rw-r--r-- | devel/smpeg/Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/devel/smpeg/Makefile b/devel/smpeg/Makefile index b8faa4327fa..5fdcbad4773 100644 --- a/devel/smpeg/Makefile +++ b/devel/smpeg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2001/06/26 10:18:56 zuntum Exp $ +# $NetBSD: Makefile,v 1.7 2001/06/26 10:26:24 zuntum Exp $ # DISTNAME= smpeg-0.4.3 @@ -16,6 +16,19 @@ USE_GMAKE= YES USE_LIBTOOL= YES GNU_CONFIGURE= YES +# Fix config scripts by removing buildlink directory references. +post-build: + @cd ${WRKSRC}; \ + config_scripts="smpeg-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 "../../devel/SDL/buildlink.mk" .include "../../x11/gtk/buildlink.mk" .include "../../mk/bsd.pkg.mk" |