aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2002-06-21 21:52:07 +0000
committerMikhail Teterin <mi@FreeBSD.org>2002-06-21 21:52:07 +0000
commitdd5a61a300ec3c56e73b2eb5e3bf9ad33e12f409 (patch)
tree185509aac3dd060e4ddca166444c61bbd9d10fef /devel
parentd0fd9630d263440a43b37a1e2f724bdd962708d1 (diff)
downloadports-dd5a61a300ec3c56e73b2eb5e3bf9ad33e12f409.tar.gz
ports-dd5a61a300ec3c56e73b2eb5e3bf9ad33e12f409.zip
Notes
Diffstat (limited to 'devel')
-rw-r--r--devel/libstocks/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/devel/libstocks/Makefile b/devel/libstocks/Makefile
index 22353dc3b789..c44d2057547f 100644
--- a/devel/libstocks/Makefile
+++ b/devel/libstocks/Makefile
@@ -13,11 +13,15 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= mi@aldan.algebra.com
-#GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+REINPLACE_ARGS= -i ""
post-patch:
- ${PERL} -pi -e 's/malloc.h/stdlib.h/; s/__UNIX__/__unix__/' \
- ${WRKSRC}/lib/*.c
+ ${REINPLACE_CMD} -e 's/<malloc.h>/<stdlib.h>/' \
+ -e 's/__UNIX__/__unix__/' \
+ $$(${GREP} --mmap -El '<malloc.h>|__UNIX__' \
+ ${WRKSRC}/lib/*.c); \
+
do-build do-install:
.for d in lib client