summaryrefslogtreecommitdiff
path: root/devel/smpeg
diff options
context:
space:
mode:
authorzuntum <zuntum>2001-06-26 10:26:24 +0000
committerzuntum <zuntum>2001-06-26 10:26:24 +0000
commitaaf37d61c9cb5122db56af5539db3001f530e22e (patch)
treefbfd234fd5d4a1963e9e3b715cfc2717ba923119 /devel/smpeg
parent0d04092778727f01bbffc06f5a3df0b3effa8cff (diff)
downloadpkgsrc-aaf37d61c9cb5122db56af5539db3001f530e22e.tar.gz
o fix smpeg-config script by removing buildlink directory references
(oops)
Diffstat (limited to 'devel/smpeg')
-rw-r--r--devel/smpeg/Makefile15
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"