summaryrefslogtreecommitdiff
path: root/devel/gindent
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-13 16:54:13 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-13 16:54:13 +0000
commite575be2db5bcd66b217b9d7fe4a5d6a6705ba058 (patch)
tree6329127f18172f303f69cb3807586a14014e0d5e /devel/gindent
parentUpdate to 1.5.0 (diff)
fix malloc.h bug in -current
PR: 40346 Submitted by: Dan Nelson <dnelson@allantgroup.com>
Notes
Notes: svn path=/head/; revision=62897
Diffstat (limited to 'devel/gindent')
-rw-r--r--devel/gindent/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/devel/gindent/Makefile b/devel/gindent/Makefile
index 6439766c0f63..12199e68fe88 100644
--- a/devel/gindent/Makefile
+++ b/devel/gindent/Makefile
@@ -18,6 +18,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= intl:${PORTSDIR}/devel/gettext
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
@@ -26,4 +27,8 @@ MAKE_ARGS= BERKELEY_DEFAULTS=1
MAN1= gindent.1
+post-patch:
+ @${GREP} -lR "malloc.h" ${WRKSRC} | ${XARGS} \
+ ${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/g"
+
.include <bsd.port.mk>