aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/agsatellite/Makefile3
-rw-r--r--audio/id3ren/Makefile3
-rw-r--r--chinese/mkisofs/Makefile3
-rw-r--r--chinese/telnet/Makefile3
-rw-r--r--comms/conserver-com/Makefile3
-rw-r--r--devel/clo++/Makefile1
-rw-r--r--devel/dmalloc/Makefile3
-rw-r--r--devel/libtai/Makefile2
-rw-r--r--graphics/divx4linux/Makefile3
-rw-r--r--graphics/divx4linux4/Makefile3
-rw-r--r--japanese/man/Makefile3
-rw-r--r--java/netrexx/Makefile5
-rw-r--r--mail/autosig/Makefile3
-rw-r--r--mail/ripmime/Makefile4
-rw-r--r--misc/edonkey-tool-slist/Makefile5
-rw-r--r--misc/rfc/Makefile4
-rw-r--r--multimedia/linux-divx4linux/Makefile3
-rw-r--r--multimedia/linux-divx4linux4/Makefile3
-rw-r--r--net-mgmt/net-snmp-devel/Makefile4
-rw-r--r--net-mgmt/net-snmp/Makefile4
-rw-r--r--net-mgmt/net-snmp4/Makefile4
-rw-r--r--net-mgmt/net-snmp53/Makefile4
-rw-r--r--net-mgmt/sendip/Makefile1
-rw-r--r--net-p2p/edonkey-tool-slist/Makefile5
-rw-r--r--net-p2p/linux-agsatellite/Makefile3
-rw-r--r--net/jumpgate/Makefile3
-rw-r--r--net/linux-agsatellite/Makefile3
-rw-r--r--net/net-snmp/Makefile4
-rw-r--r--net/net-snmp4/Makefile4
-rw-r--r--net/sendip/Makefile1
-rw-r--r--print/rprint/Makefile4
-rw-r--r--russian/apache13-modssl/Makefile1
-rw-r--r--security/altivore/Makefile3
-rw-r--r--security/mussh/Makefile3
-rw-r--r--sysutils/su2/Makefile4
-rw-r--r--textproc/code2html/Makefile3
-rw-r--r--textproc/dsssl-docbook-cygnus/Makefile1
-rw-r--r--textproc/kdoc/Makefile3
-rw-r--r--textproc/openjade/Makefile1
-rw-r--r--textproc/rotix/Makefile3
-rw-r--r--www/webfs/Makefile6
41 files changed, 90 insertions, 39 deletions
diff --git a/audio/agsatellite/Makefile b/audio/agsatellite/Makefile
index 2559e2afc42d..141838c3c28c 100644
--- a/audio/agsatellite/Makefile
+++ b/audio/agsatellite/Makefile
@@ -18,6 +18,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME:C/-.*//}
USE_LINUX= yes
NO_BUILD= yes
+USE_REINPLACE= yes
STRIP=
RESTRICTED= no response from developer on licensing issues
@@ -26,7 +27,7 @@ DOCS= german_readme.txt license.txt readme.txt
BRANDELF= /usr/bin/brandelf
post-patch:
- @${PERL} -pi -e "s|\r\n|\n|;s|email|username|" ${WRKSRC}/*.txt
+ @${REINPLACE_CMD} -e "s|\r\n|\n|;s|email|username|" ${WRKSRC}/*.txt
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \
${WRKDIR}/wrapper.sh
diff --git a/audio/id3ren/Makefile b/audio/id3ren/Makefile
index cf1c61c2a683..4a4757a0ccf2 100644
--- a/audio/id3ren/Makefile
+++ b/audio/id3ren/Makefile
@@ -15,10 +15,11 @@ DISTNAME= id3ren97a
MAINTAINER= jonny@jonny.eng.br
USE_ZIP= yes
+USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/id3ren/src
pre-patch:
- @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
+ @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
${WRKSRC}/id3ren.c ${WRKSRC}/misc.c
.include <bsd.port.mk>
diff --git a/chinese/mkisofs/Makefile b/chinese/mkisofs/Makefile
index d9afb02568d0..b4f0bf280436 100644
--- a/chinese/mkisofs/Makefile
+++ b/chinese/mkisofs/Makefile
@@ -16,11 +16,12 @@ PATCHFILES= mkisofs-1.12b5.big5patch.gz
MAINTAINER= keith@FreeBSD.org
GNU_CONFIGURE= yes
+USE_REINPLACE= yes
ALL_TARGET= World
MAN8= mkisofs.8 isoinfo.8
pre-configure:
- ${PERL} -pi.orig -e 's:prefix = /usr/local:prefix = ${PREFIX}:' \
+ ${REINPLACE_CMD} -e 's:prefix = /usr/local:prefix = ${PREFIX}:' \
${WRKSRC}/diag/Makefile.in
post-build:
diff --git a/chinese/telnet/Makefile b/chinese/telnet/Makefile
index b53efc1c974f..5579fb30580c 100644
--- a/chinese/telnet/Makefile
+++ b/chinese/telnet/Makefile
@@ -14,6 +14,7 @@ DISTFILES= # none
MAINTAINER= leeym@FreeBSD.org
SRCDIR= /usr/src/usr.bin/telnet
+USE_REINPLACE= yes
MAN1= zh-telnet.1
@@ -28,7 +29,7 @@ BROKEN= "You need to build this port with ${SRCDIR}"
.endif
pre-patch:
- @${PERL} -pi -e 's,/../..,,g' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's,/../..,,g' ${WRKSRC}/Makefile
pre-build:
@cd ${WRKSRC}/lib/libtelnet && ${MAKE}
diff --git a/comms/conserver-com/Makefile b/comms/conserver-com/Makefile
index 5c9c36454de1..6c671c0cbf35 100644
--- a/comms/conserver-com/Makefile
+++ b/comms/conserver-com/Makefile
@@ -14,6 +14,7 @@ PKGNAMESUFFIX= -com
MAINTAINER= kuriyama@FreeBSD.org
GNU_CONFIGURE= YES
+USE_REINPLACE= yes
CONFIGURE_ARGS= --with-master=${DEFAULTHOST} --with-port=${DEFAULTPORT} \
--with-libwrap
@@ -25,7 +26,7 @@ DEFAULTPORT?= 782
DEFAULTHOST?= localhost
post-patch:
- ${PERL} -pi.orig \
+ ${REINPLACE_CMD} \
-e 's@/usr/local/bin@${PREFIX}/sbin@' \
${WRKSRC}/conserver/conserver.rc
diff --git a/devel/clo++/Makefile b/devel/clo++/Makefile
index d08a25411485..0992ba88c594 100644
--- a/devel/clo++/Makefile
+++ b/devel/clo++/Makefile
@@ -15,6 +15,7 @@ MAINTAINER= kevlo@FreeBSD.org
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2
USE_GCC= 3.1
+USE_PERL5= yes
CONFGARGS= --prefix ${PREFIX}
CONFGARGS+= --xml2-config ${PREFIX}/bin/xml2-config
diff --git a/devel/dmalloc/Makefile b/devel/dmalloc/Makefile
index a8ecfa7b6c9c..3ab314bd33e3 100644
--- a/devel/dmalloc/Makefile
+++ b/devel/dmalloc/Makefile
@@ -16,6 +16,7 @@ MAINTAINER= jeremy@external.org
INSTALLS_SHLIB= YES
GNU_CONFIGURE= YES
+USE_REINPLACE= yes
CONFIGURE_ARGS+=--enable-threads --enable-shlib
# NOTE: we make the test program first because otherwise it screws up
@@ -23,7 +24,7 @@ CONFIGURE_ARGS+=--enable-threads --enable-shlib
ALL_TARGET= dmalloc_t all light
pre-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dmalloc ${PREFIX}/bin
diff --git a/devel/libtai/Makefile b/devel/libtai/Makefile
index dd3c3ae30920..6e341899f952 100644
--- a/devel/libtai/Makefile
+++ b/devel/libtai/Makefile
@@ -34,7 +34,7 @@ PROGRAM_FILES= easter nowutc leapsecs yearcal
HEADER_FILES= caldate.h caltime.h leapsecs.h tai.h taia.h uint64.h
do-configure:
- @${PERL} -pi -e "s!%%PREFIX%%!${PREFIX}!g" \
+ @${REINPLACE_CMD} -e "s!%%PREFIX%%!${PREFIX}!g" \
${WRKSRC}/leapsecs.3 ${WRKSRC}/leapsecs_read.c
@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
@${ECHO_CMD} "${CC} -s" > ${WRKSRC}/conf-ld
diff --git a/graphics/divx4linux/Makefile b/graphics/divx4linux/Makefile
index 01b26528b1fb..251add5012e7 100644
--- a/graphics/divx4linux/Makefile
+++ b/graphics/divx4linux/Makefile
@@ -19,6 +19,7 @@ MAINTAINER= lioux@FreeBSD.org
RESTRICTED= unsure of licensing issues
ONLY_FOR_ARCHS= i386
+USE_REINPLACE= yes
USE_LINUX_PREFIX= yes
WRKSRC= ${WRKDIR}/${DISTNAME:S/501-/-/}
NO_BUILD= yes
@@ -29,7 +30,7 @@ RELEASE_DATE= 20020418
post-patch:
.for ext in ${DOC_EXT}
- @${PERL} -pi -e "s/ //" ${WRKSRC}/*.${ext}
+ @${REINPLACE_CMD} -e "s/ //" ${WRKSRC}/*.${ext}
.endfor
do-install:
diff --git a/graphics/divx4linux4/Makefile b/graphics/divx4linux4/Makefile
index a46272b5f5f7..8131ddb87f9f 100644
--- a/graphics/divx4linux4/Makefile
+++ b/graphics/divx4linux4/Makefile
@@ -18,6 +18,7 @@ RESTRICTED= unsure of licensing issues
ONLY_FOR_ARCHS= i386
USE_LINUX_PREFIX= yes
+USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${DISTNAME:C/_.+$//}
NO_BUILD= yes
NO_LATEST_LINK= yes
@@ -29,7 +30,7 @@ PKGDEINSTALL= ${PKGINSTALL}
post-patch:
.for ext in h linux txt
- @${PERL} -pi -e "s/ //" ${WRKSRC}/*.${ext}
+ @${REINPLACE_CMD} -e "s/ //" ${WRKSRC}/*.${ext}
.endfor
do-install:
diff --git a/japanese/man/Makefile b/japanese/man/Makefile
index 03284904f194..d964ff29f529 100644
--- a/japanese/man/Makefile
+++ b/japanese/man/Makefile
@@ -23,6 +23,7 @@ RUN_DEPENDS= ${LOCALBASE}/bin/groff:${PORTSDIR}/japanese/groff \
jless:${PORTSDIR}/japanese/less
MAKE_ENV= GZCAT=${GZCAT} GZIP_CMD="${GZIP_CMD}"
+USE_REINPLACE= yes
MANLANG= "" ja
MAN1= jman.1 jmanpath.1 japropos.1 \
@@ -36,7 +37,7 @@ post-patch:
makewhatis/jmakewhatis.local.man.eng \
makewhatis/makewhatis.local.sh \
man/locale.c manpath/manpath.config
- ${PERL} -pi -e "s|/usr/local|${LOCALBASE}|g" ${WRKSRC}/${file}
+ ${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|g" ${WRKSRC}/${file}
.endfor
pre-install:
diff --git a/java/netrexx/Makefile b/java/netrexx/Makefile
index b3287e07bbb3..aad621d9e99d 100644
--- a/java/netrexx/Makefile
+++ b/java/netrexx/Makefile
@@ -19,10 +19,11 @@ RUN_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk11 \
NO_BUILD= yes
USE_ZIP= yes
+USE_REINPLACE= yes
pre-patch:
- @${PERL} -pi -e 's/\015//' ${WRKSRC}/bin/NetRexxC.sh
- @${PERL} -pi -e 's/\015//' ${WRKSRC}/read.me.first
+ @${REINPLACE_CMD} -e 's/\015//' ${WRKSRC}/bin/NetRexxC.sh
+ @${REINPLACE_CMD} -e 's/\015//' ${WRKSRC}/read.me.first
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/bin/NetRexxC.sh ${PREFIX}/bin
diff --git a/mail/autosig/Makefile b/mail/autosig/Makefile
index d85d6e15dc68..11d6782ff09b 100644
--- a/mail/autosig/Makefile
+++ b/mail/autosig/Makefile
@@ -14,9 +14,10 @@ MAINTAINER= leeym@FreeBSD.org
MAKEFILE= makefile
ALL_TARGET= ${PORTNAME}
+USE_REINPLACE= yes
pre-build:
- ${PERL} -pi -e 's,gcc,${CC} ${CFLAGS},g' ${WRKSRC}/makefile
+ ${REINPLACE_CMD} -e 's,gcc,${CC} ${CFLAGS},g' ${WRKSRC}/makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
diff --git a/mail/ripmime/Makefile b/mail/ripmime/Makefile
index 093404d9c7f1..502ec9da70e4 100644
--- a/mail/ripmime/Makefile
+++ b/mail/ripmime/Makefile
@@ -12,8 +12,10 @@ MASTER_SITES= http://www.pldaniels.com/ripmime/
MAINTAINER= jus@security.za.net
+USE_REINPLACE= yes
+
pre-build:
- @${PERL} -pi -e 's!CC=!CC?=!; s!/usr/local!${PREFIX}!; \
+ @${REINPLACE_CMD} -e 's!CC=!CC?=!; s!/usr/local!${PREFIX}!; \
s!CFLAGS= -Wall -O2!CFLAGS+= -Wall!' \
${WRKSRC}/Makefile
diff --git a/misc/edonkey-tool-slist/Makefile b/misc/edonkey-tool-slist/Makefile
index 1e24678e21c5..6b80b296f552 100644
--- a/misc/edonkey-tool-slist/Makefile
+++ b/misc/edonkey-tool-slist/Makefile
@@ -15,10 +15,11 @@ DISTNAME= ed2k_slist-${PORTVERSION}
MAINTAINER= lioux@FreeBSD.org
WRKSRC= ${WRKDIR}/ed2k_slist
+USE_REINPLACE= yes
post-patch:
- @${PERL} -pi -e 's|\r\n|\n|' ${WRKSRC}/*.[ch]
- @${PERL} -pi -e 's|(#include <unistd.h>)|\1\n#include\
+ @${REINPLACE_CMD} -e 's|\r\n|\n|' ${WRKSRC}/*.[ch]
+ @${REINPLACE_CMD} -e 's|(#include <unistd.h>)|\1\n#include\
<sys/time.h>|' ${WRKSRC}/linux_net.c
# I could have written a Makefile but I would rather
diff --git a/misc/rfc/Makefile b/misc/rfc/Makefile
index fce76d395aac..6d9ed3c530c6 100644
--- a/misc/rfc/Makefile
+++ b/misc/rfc/Makefile
@@ -15,10 +15,12 @@ MAINTAINER= jedgar@FreeBSD.org
RUN_DEPENDS= w3m:${PORTSDIR}/www/w3m
NO_BUILD= yes
+USE_REINPLACE= yes
+
MAN1= rfc.1
do-configure:
- @${PERL} -pi.orig -e 's|/usr/local/etc/rfc|${PREFIX}/etc/rfc| ; \
+ @${REINPLACE_CMD} -e 's|/usr/local/etc/rfc|${PREFIX}/etc/rfc| ; \
s|/usr/local/etc/nmap|${PREFIX}/share/misc/nmap|' \
${WRKSRC}/${PORTNAME}-${PORTVERSION}
diff --git a/multimedia/linux-divx4linux/Makefile b/multimedia/linux-divx4linux/Makefile
index 01b26528b1fb..251add5012e7 100644
--- a/multimedia/linux-divx4linux/Makefile
+++ b/multimedia/linux-divx4linux/Makefile
@@ -19,6 +19,7 @@ MAINTAINER= lioux@FreeBSD.org
RESTRICTED= unsure of licensing issues
ONLY_FOR_ARCHS= i386
+USE_REINPLACE= yes
USE_LINUX_PREFIX= yes
WRKSRC= ${WRKDIR}/${DISTNAME:S/501-/-/}
NO_BUILD= yes
@@ -29,7 +30,7 @@ RELEASE_DATE= 20020418
post-patch:
.for ext in ${DOC_EXT}
- @${PERL} -pi -e "s/ //" ${WRKSRC}/*.${ext}
+ @${REINPLACE_CMD} -e "s/ //" ${WRKSRC}/*.${ext}
.endfor
do-install:
diff --git a/multimedia/linux-divx4linux4/Makefile b/multimedia/linux-divx4linux4/Makefile
index a46272b5f5f7..8131ddb87f9f 100644
--- a/multimedia/linux-divx4linux4/Makefile
+++ b/multimedia/linux-divx4linux4/Makefile
@@ -18,6 +18,7 @@ RESTRICTED= unsure of licensing issues
ONLY_FOR_ARCHS= i386
USE_LINUX_PREFIX= yes
+USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${DISTNAME:C/_.+$//}
NO_BUILD= yes
NO_LATEST_LINK= yes
@@ -29,7 +30,7 @@ PKGDEINSTALL= ${PKGINSTALL}
post-patch:
.for ext in h linux txt
- @${PERL} -pi -e "s/ //" ${WRKSRC}/*.${ext}
+ @${REINPLACE_CMD} -e "s/ //" ${WRKSRC}/*.${ext}
.endfor
do-install:
diff --git a/net-mgmt/net-snmp-devel/Makefile b/net-mgmt/net-snmp-devel/Makefile
index 613403bd60a0..2e54654d465d 100644
--- a/net-mgmt/net-snmp-devel/Makefile
+++ b/net-mgmt/net-snmp-devel/Makefile
@@ -15,6 +15,7 @@ MASTER_SITE_SUBDIR= net-snmp
MAINTAINER= kuriyama@FreeBSD.org
+USE_REINPLACE= yes
USE_AUTOCONF_VER=213
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
@@ -89,7 +90,8 @@ SHLIB_VERSION= 5
PLIST_SUB+= shlib=${SHLIB_VERSION}
post-patch:
- @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/aclocal.m4
+ @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
+ ${WRKSRC}/aclocal.m4
pre-install:
-@[ -f ${STARTUP_FILE} ] && \
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index 613403bd60a0..2e54654d465d 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -15,6 +15,7 @@ MASTER_SITE_SUBDIR= net-snmp
MAINTAINER= kuriyama@FreeBSD.org
+USE_REINPLACE= yes
USE_AUTOCONF_VER=213
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
@@ -89,7 +90,8 @@ SHLIB_VERSION= 5
PLIST_SUB+= shlib=${SHLIB_VERSION}
post-patch:
- @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/aclocal.m4
+ @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
+ ${WRKSRC}/aclocal.m4
pre-install:
-@[ -f ${STARTUP_FILE} ] && \
diff --git a/net-mgmt/net-snmp4/Makefile b/net-mgmt/net-snmp4/Makefile
index 2c183f3c5ae5..63af22705d76 100644
--- a/net-mgmt/net-snmp4/Makefile
+++ b/net-mgmt/net-snmp4/Makefile
@@ -18,6 +18,7 @@ MASTER_SITE_SUBDIR= net-snmp
MAINTAINER= kuriyama@FreeBSD.org
USE_AUTOCONF_VER=213
+USE_REINPLACE= yes
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
@@ -69,7 +70,8 @@ SHLIB_VERSION= 4
PLIST_SUB+= shlib=${SHLIB_VERSION}
post-patch:
- @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/aclocal.m4
+ @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
+ ${WRKSRC}/aclocal.m4
post-install:
@( cd ${PREFIX}/bin && strip ${BIN} )
diff --git a/net-mgmt/net-snmp53/Makefile b/net-mgmt/net-snmp53/Makefile
index 613403bd60a0..2e54654d465d 100644
--- a/net-mgmt/net-snmp53/Makefile
+++ b/net-mgmt/net-snmp53/Makefile
@@ -15,6 +15,7 @@ MASTER_SITE_SUBDIR= net-snmp
MAINTAINER= kuriyama@FreeBSD.org
+USE_REINPLACE= yes
USE_AUTOCONF_VER=213
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
@@ -89,7 +90,8 @@ SHLIB_VERSION= 5
PLIST_SUB+= shlib=${SHLIB_VERSION}
post-patch:
- @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/aclocal.m4
+ @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
+ ${WRKSRC}/aclocal.m4
pre-install:
-@[ -f ${STARTUP_FILE} ] && \
diff --git a/net-mgmt/sendip/Makefile b/net-mgmt/sendip/Makefile
index 2fc7cba7890c..a71fbdc39edc 100644
--- a/net-mgmt/sendip/Makefile
+++ b/net-mgmt/sendip/Makefile
@@ -14,6 +14,7 @@ MAINTAINER= joseph@randomnetworks.com
USE_GMAKE= yes
USE_REINPLACE= yes
+USE_PERL5= yes
MAN1= sendip.1
diff --git a/net-p2p/edonkey-tool-slist/Makefile b/net-p2p/edonkey-tool-slist/Makefile
index 1e24678e21c5..6b80b296f552 100644
--- a/net-p2p/edonkey-tool-slist/Makefile
+++ b/net-p2p/edonkey-tool-slist/Makefile
@@ -15,10 +15,11 @@ DISTNAME= ed2k_slist-${PORTVERSION}
MAINTAINER= lioux@FreeBSD.org
WRKSRC= ${WRKDIR}/ed2k_slist
+USE_REINPLACE= yes
post-patch:
- @${PERL} -pi -e 's|\r\n|\n|' ${WRKSRC}/*.[ch]
- @${PERL} -pi -e 's|(#include <unistd.h>)|\1\n#include\
+ @${REINPLACE_CMD} -e 's|\r\n|\n|' ${WRKSRC}/*.[ch]
+ @${REINPLACE_CMD} -e 's|(#include <unistd.h>)|\1\n#include\
<sys/time.h>|' ${WRKSRC}/linux_net.c
# I could have written a Makefile but I would rather
diff --git a/net-p2p/linux-agsatellite/Makefile b/net-p2p/linux-agsatellite/Makefile
index 2559e2afc42d..141838c3c28c 100644
--- a/net-p2p/linux-agsatellite/Makefile
+++ b/net-p2p/linux-agsatellite/Makefile
@@ -18,6 +18,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME:C/-.*//}
USE_LINUX= yes
NO_BUILD= yes
+USE_REINPLACE= yes
STRIP=
RESTRICTED= no response from developer on licensing issues
@@ -26,7 +27,7 @@ DOCS= german_readme.txt license.txt readme.txt
BRANDELF= /usr/bin/brandelf
post-patch:
- @${PERL} -pi -e "s|\r\n|\n|;s|email|username|" ${WRKSRC}/*.txt
+ @${REINPLACE_CMD} -e "s|\r\n|\n|;s|email|username|" ${WRKSRC}/*.txt
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \
${WRKDIR}/wrapper.sh
diff --git a/net/jumpgate/Makefile b/net/jumpgate/Makefile
index bcbdf6a1b758..6407f5dbd1d8 100644
--- a/net/jumpgate/Makefile
+++ b/net/jumpgate/Makefile
@@ -14,9 +14,10 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= leeym@FreeBSD.org
ALL_TARGET= generic
+USE_REINPLACE= yes
pre-build:
- ${PERL} -pi.orig -e "s@gcc@${CC}@g; s@-Wall@-Wall ${CFLAGS}@g" ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} -e "s@gcc@${CC}@g; s@-Wall@-Wall ${CFLAGS}@g" ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
diff --git a/net/linux-agsatellite/Makefile b/net/linux-agsatellite/Makefile
index 2559e2afc42d..141838c3c28c 100644
--- a/net/linux-agsatellite/Makefile
+++ b/net/linux-agsatellite/Makefile
@@ -18,6 +18,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME:C/-.*//}
USE_LINUX= yes
NO_BUILD= yes
+USE_REINPLACE= yes
STRIP=
RESTRICTED= no response from developer on licensing issues
@@ -26,7 +27,7 @@ DOCS= german_readme.txt license.txt readme.txt
BRANDELF= /usr/bin/brandelf
post-patch:
- @${PERL} -pi -e "s|\r\n|\n|;s|email|username|" ${WRKSRC}/*.txt
+ @${REINPLACE_CMD} -e "s|\r\n|\n|;s|email|username|" ${WRKSRC}/*.txt
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \
${WRKDIR}/wrapper.sh
diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile
index 613403bd60a0..2e54654d465d 100644
--- a/net/net-snmp/Makefile
+++ b/net/net-snmp/Makefile
@@ -15,6 +15,7 @@ MASTER_SITE_SUBDIR= net-snmp
MAINTAINER= kuriyama@FreeBSD.org
+USE_REINPLACE= yes
USE_AUTOCONF_VER=213
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
@@ -89,7 +90,8 @@ SHLIB_VERSION= 5
PLIST_SUB+= shlib=${SHLIB_VERSION}
post-patch:
- @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/aclocal.m4
+ @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
+ ${WRKSRC}/aclocal.m4
pre-install:
-@[ -f ${STARTUP_FILE} ] && \
diff --git a/net/net-snmp4/Makefile b/net/net-snmp4/Makefile
index 2c183f3c5ae5..63af22705d76 100644
--- a/net/net-snmp4/Makefile
+++ b/net/net-snmp4/Makefile
@@ -18,6 +18,7 @@ MASTER_SITE_SUBDIR= net-snmp
MAINTAINER= kuriyama@FreeBSD.org
USE_AUTOCONF_VER=213
+USE_REINPLACE= yes
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
@@ -69,7 +70,8 @@ SHLIB_VERSION= 4
PLIST_SUB+= shlib=${SHLIB_VERSION}
post-patch:
- @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/aclocal.m4
+ @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
+ ${WRKSRC}/aclocal.m4
post-install:
@( cd ${PREFIX}/bin && strip ${BIN} )
diff --git a/net/sendip/Makefile b/net/sendip/Makefile
index 2fc7cba7890c..a71fbdc39edc 100644
--- a/net/sendip/Makefile
+++ b/net/sendip/Makefile
@@ -14,6 +14,7 @@ MAINTAINER= joseph@randomnetworks.com
USE_GMAKE= yes
USE_REINPLACE= yes
+USE_PERL5= yes
MAN1= sendip.1
diff --git a/print/rprint/Makefile b/print/rprint/Makefile
index 315e7eeab167..3b4245cad926 100644
--- a/print/rprint/Makefile
+++ b/print/rprint/Makefile
@@ -13,10 +13,12 @@ MASTER_SITES= ftp://gwdu111.gwdg.de/pub/FreeBSD/misc/ \
MAINTAINER= kheuer@gwdu60.gwdg.de
+USE_REINPLACE= yes
+
MAN1= rprint.1
MANCOMPRESSED= yes
post-patch:
- @${PERL} -pi -e "s/^(CC|CFLAGS).+//g" ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e "s/^(CC|CFLAGS).+//g" ${WRKSRC}/Makefile
.include <bsd.port.mk>
diff --git a/russian/apache13-modssl/Makefile b/russian/apache13-modssl/Makefile
index 1668e2f94abb..a072e14df2b0 100644
--- a/russian/apache13-modssl/Makefile
+++ b/russian/apache13-modssl/Makefile
@@ -48,6 +48,7 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
MAINTAINER= lev@serebryakov.spb.ru
USE_OPENSSL= YES
+USE_PERL5= yes
.include <bsd.port.pre.mk>
diff --git a/security/altivore/Makefile b/security/altivore/Makefile
index ff40e518e185..ffcbaca3fc31 100644
--- a/security/altivore/Makefile
+++ b/security/altivore/Makefile
@@ -20,13 +20,14 @@ RESTRICTED= License does not allow redistribution in any form\
NO_WRKSUBDIR= yes
NO_BUILD= yes
+USE_REINPLACE= yes
do-extract:
@${MKDIR} ${WRKDIR}
@${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}
post-patch:
- @${PERL} -pi -e "s/ //" ${WRKDIR}/${DISTFILES}
+ @${REINPLACE_CMD} -e "s/ //" ${WRKDIR}/${DISTFILES}
do-install:
@${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
diff --git a/security/mussh/Makefile b/security/mussh/Makefile
index 04a0809b8cf5..15b74e007c03 100644
--- a/security/mussh/Makefile
+++ b/security/mussh/Makefile
@@ -17,9 +17,10 @@ MAINTAINER= leeym@FreeBSD.org
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
NO_BUILD= yes
+USE_REINPLACE= yes
post-patch:
- @${PERL} -pi -e "s,^#!/bin/bash,#!${LOCALBASE}/bin/bash,g" \
+ @${REINPLACE_CMD} -e "s,^#!/bin/bash,#!${LOCALBASE}/bin/bash,g" \
${WRKSRC}/${PORTNAME}
do-install:
diff --git a/sysutils/su2/Makefile b/sysutils/su2/Makefile
index d7f5abf75534..ca879a8372fc 100644
--- a/sysutils/su2/Makefile
+++ b/sysutils/su2/Makefile
@@ -13,9 +13,11 @@ MASTER_SITES= ftp://ftp.ccs.neu.edu/pub/sysadmin/
MAINTAINER= jmg@freebsd.org
NO_CDROM= "Don't sell for profit"
+USE_REINPLACE= yes
+
MAN1= su2.1
post-patch:
- ${PERL} -pi -e 's,/etc/super,${PREFIX}/etc/super,g' ${WRKSRC}/su2.man
+ ${REINPLACE_CMD} -e 's,/etc/super,${PREFIX}/etc/super,g' ${WRKSRC}/su2.man
.include <bsd.port.mk>
diff --git a/textproc/code2html/Makefile b/textproc/code2html/Makefile
index 2601f45eeed3..826499bd3443 100644
--- a/textproc/code2html/Makefile
+++ b/textproc/code2html/Makefile
@@ -23,6 +23,7 @@ BZIP2BASE= /usr
.endif
NO_BUILD= yes
+USE_REINPLACE= yes
MAN1= code2html.1
@@ -32,7 +33,7 @@ do-configure:
-e 's|/bin/gzip|/usr/bin/gzip|' \
-e 's|/etc/code|${PREFIX}/etc/code|' \
< ${WRKSRC}/code2html.orig > ${WRKSRC}/code2html
- @${PERL} -pi.orig -e 's|/etc/code|${PREFIX}/etc/code|' \
+ @${REINPLACE_CMD} -e 's|/etc/code|${PREFIX}/etc/code|' \
${WRKSRC}/code2html.1
do-install:
diff --git a/textproc/dsssl-docbook-cygnus/Makefile b/textproc/dsssl-docbook-cygnus/Makefile
index 9e6a345aba25..67ed05733929 100644
--- a/textproc/dsssl-docbook-cygnus/Makefile
+++ b/textproc/dsssl-docbook-cygnus/Makefile
@@ -18,6 +18,7 @@ RUN_DEPENDS= ${LOCALBASE}/share/sgml/docbook/dsssl/modular/frames/navbar.htm:${P
jade:${PORTSDIR}/textproc/jade
NO_BUILD= yes
+USE_PERL5= yes
WRKSRC= ${WRKDIR}/stylesheets
SCRIPTS_ENV= DB_DATA="${DB_SCRIPTS} cygnus-both.dsl"
diff --git a/textproc/kdoc/Makefile b/textproc/kdoc/Makefile
index beb2e167ab8c..8ccf4ed628a0 100644
--- a/textproc/kdoc/Makefile
+++ b/textproc/kdoc/Makefile
@@ -17,13 +17,14 @@ MAINTAINER= kde@FreeBSD.org
USE_BZIP2= yes
USE_GMAKE= yes
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
USE_PERL5= yes
MAN1= kdoc.1 qt2kdoc.1 makekdedoc.1
pre-configure:
- ${PERL} -pi -e "s#share/kdoc#lib/perl5/site_perl/${PERL_VER}#" \
+ ${REINPLACE_CMD} -e "s#share/kdoc#lib/perl5/site_perl/${PERL_VER}#" \
${WRKSRC}/Makefile.in
.include <bsd.port.mk>
diff --git a/textproc/openjade/Makefile b/textproc/openjade/Makefile
index 0d6fa491c698..20908f6333dc 100644
--- a/textproc/openjade/Makefile
+++ b/textproc/openjade/Makefile
@@ -17,6 +17,7 @@ RUN_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
USE_GMAKE= YES
USE_LIBTOOL= YES
+USE_PERL5= yes
CONFIGURE_ARGS= --enable-default-catalog=${PREFIX}/share/sgml/catalog \
--datadir=${PREFIX}/share/sgml/openjade
INSTALLS_SHLIB= yes
diff --git a/textproc/rotix/Makefile b/textproc/rotix/Makefile
index 87893fd6b9c4..bb129fb9bcd0 100644
--- a/textproc/rotix/Makefile
+++ b/textproc/rotix/Makefile
@@ -18,12 +18,13 @@ LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
USE_GMAKE= yes
HAS_CONFIGURE= yes
+USE_REINPLACE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --mandir=${PREFIX}/man --i18n=1
MAN1= rotix.1
post-patch:
- @${PERL} -pi -e 's,%%CFLAGS%%,${CFLAGS},; s,%%LOCALBASE%%,${LOCALBASE},;' \
+ @${REINPLACE_CMD} -e 's,%%CFLAGS%%,${CFLAGS},; s,%%LOCALBASE%%,${LOCALBASE},;' \
${WRKSRC}/Makefile
.include <bsd.port.mk>
diff --git a/www/webfs/Makefile b/www/webfs/Makefile
index 41bb4b265f16..fb3efe6982cd 100644
--- a/www/webfs/Makefile
+++ b/www/webfs/Makefile
@@ -14,6 +14,8 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= jedgar@FreeBSD.org
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
+USE_REINPLACE= yes
+
MAN1= webfsd.1
MIMEFILE?= ${PREFIX}/etc/webfsd/mime.types
@@ -24,8 +26,8 @@ BROKEN= "Requires FreeBSD 4.x or greater due to ipv6 support"
.endif
do-configure:
- @${PERL} -pi.orig -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/Makefile
- @${PERL} -pi.orig -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/webfsd.man
+ @${REINPLACE_CMD} -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/webfsd.man
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/webfsd ${PREFIX}/sbin