aboutsummaryrefslogtreecommitdiff
path: root/devel/gindent
diff options
context:
space:
mode:
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>