summaryrefslogtreecommitdiff
path: root/devel/m4/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-07-29 14:36:46 +0000
committerjoerg <joerg@pkgsrc.org>2007-07-29 14:36:46 +0000
commit826763b775d3c29ab79325b94ce65f6b21bf0348 (patch)
treeb3626f7bc7f3bb2a8b8f057d4d1fe0adecb97727 /devel/m4/Makefile
parent011ce190625ebe6cab4d184eba00287ecea115cc (diff)
downloadpkgsrc-826763b775d3c29ab79325b94ce65f6b21bf0348.tar.gz
Override gnulib's fflush.c on DragonFly with a far less intrusive
versions. This is still in discussion with upstream, but working m4 is critical, so apply this stop-gap solution. It works on the other BSD derived stdio implementations as well, if you want to switch.
Diffstat (limited to 'devel/m4/Makefile')
-rw-r--r--devel/m4/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/m4/Makefile b/devel/m4/Makefile
index 04855a46894..33cfa9d0b9c 100644
--- a/devel/m4/Makefile
+++ b/devel/m4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.50 2007/07/22 06:34:41 wiz Exp $
+# $NetBSD: Makefile,v 1.51 2007/07/29 14:36:46 joerg Exp $
DISTNAME= m4-1.4.10
PKGREVISION= 1
@@ -32,6 +32,11 @@ PLIST_SUBST+= GM4_LINK=""
PLIST_SUBST+= GM4_LINK="@comment "
.endif
+.if ${OPSYS} == "DragonFly"
+post-patch:
+ ${CP} ${FILESDIR}/bsd-fflush.c ${WRKSRC}/lib/fflush.c
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/m4
${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${DESTDIR}${PREFIX}/share/examples/m4