summaryrefslogtreecommitdiff
path: root/devel/m4/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg>2007-07-29 14:36:46 +0000
committerjoerg <joerg>2007-07-29 14:36:46 +0000
commitd841596daf56e7e1dff88f839f3509707d27b753 (patch)
treeb3626f7bc7f3bb2a8b8f057d4d1fe0adecb97727 /devel/m4/Makefile
parenta254a184a587c44e039850b931cdd966a2067f9d (diff)
downloadpkgsrc-d841596daf56e7e1dff88f839f3509707d27b753.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