From fd50192ea7567a034b59dfc96a1d112f8ccfa573 Mon Sep 17 00:00:00 2001 From: dwcjr Date: Sun, 1 Sep 2002 16:07:59 +0000 Subject: ${PERL} -> ${REINPLACE_CMD} PR: 40784 Submitted by: corecode@corecode.ath.cx Reviewed by: flynn@energyhq.homeip.net --- ftp/afd/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ftp/afd/Makefile') diff --git a/ftp/afd/Makefile b/ftp/afd/Makefile index b06d01a92bfc..4afc4e658dbc 100644 --- a/ftp/afd/Makefile +++ b/ftp/afd/Makefile @@ -18,15 +18,16 @@ MAINTAINER= ports@FreeBSD.org FORBIDDEN= "Installs 88 setuid root applications; disaster waiting to happen" USE_MOTIF= yes +USE_REINPLACE= yes MAKE_ENV= BINMODE=${BINMODE} \ PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS} post-patch: - @find ${WRKSRC} -name Makefile | xargs \ - ${PERL} -pi -e "s,^(INST(ALL)?DIR *)= .*,\1= ${PREFIX}/bin,g ; \ - s,cp -p,cp,g" - @${PERL} -pi -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/Include.mk.freebsd - @${PERL} -pi -e "s,^SBINDIR = .*,SBINDIR = ${PREFIX}/sbin,g" ${WRKSRC}/afd_mon/Makefile + @${FIND} ${WRKSRC} -name Makefile | ${XARGS} \ + ${REINPLACE_CMD} -E -e 's,^(INST(ALL)?DIR *)= .*,\1= ${PREFIX}/bin,g ; \ + s,cp -p,cp,g' + @${REINPLACE_CMD} -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/Include.mk.freebsd + @${REINPLACE_CMD} -e "s,^SBINDIR = .*,SBINDIR = ${PREFIX}/sbin,g" ${WRKSRC}/afd_mon/Makefile pre-build: @(cd ${WRKSRC} ; ${RM} -f Include.mk ; \ -- cgit