From dd5a61a300ec3c56e73b2eb5e3bf9ad33e12f409 Mon Sep 17 00:00:00 2001 From: Mikhail Teterin Date: Fri, 21 Jun 2002 21:52:07 +0000 Subject: My first PERL -> REINPLACE_CMD conversion. Make sure not to leave anything behind by explicitly giving "" to -i -- why is that not a default, I wonder. --- devel/libstocks/Makefile | 10 +++++++--- finance/libstocks/Makefile | 10 +++++++--- 2 files changed, 14 insertions(+), 6 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///' \ + -e 's/__UNIX__/__unix__/' \ + $$(${GREP} --mmap -El '|__UNIX__' \ + ${WRKSRC}/lib/*.c); \ + do-build do-install: .for d in lib client diff --git a/finance/libstocks/Makefile b/finance/libstocks/Makefile index 22353dc3b789..c44d2057547f 100644 --- a/finance/libstocks/Makefile +++ b/finance/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///' \ + -e 's/__UNIX__/__unix__/' \ + $$(${GREP} --mmap -El '|__UNIX__' \ + ${WRKSRC}/lib/*.c); \ + do-build do-install: .for d in lib client -- cgit v1.2.3