diff options
-rw-r--r-- | audio/afsp/Makefile | 3 | ||||
-rw-r--r-- | audio/holyshout/Makefile | 3 | ||||
-rw-r--r-- | audio/mp3chew/Makefile | 3 | ||||
-rw-r--r-- | audio/sbagen/Makefile | 6 | ||||
-rw-r--r-- | biology/povchem/Makefile | 3 | ||||
-rw-r--r-- | devel/arm-elf-gcc295/Makefile | 5 | ||||
-rw-r--r-- | dns/dnrd/Makefile | 3 | ||||
-rw-r--r-- | korean/engdic/Makefile | 3 | ||||
-rw-r--r-- | lang/dylan/Makefile | 3 | ||||
-rw-r--r-- | mail/ftrack/Makefile | 5 | ||||
-rw-r--r-- | mail/liboe/Makefile | 3 | ||||
-rw-r--r-- | mail/minimalist/Makefile | 3 | ||||
-rw-r--r-- | math/gexpr/Makefile | 4 | ||||
-rw-r--r-- | misc/44bsd-more/Makefile | 3 | ||||
-rw-r--r-- | net/dnrd/Makefile | 3 | ||||
-rw-r--r-- | net/easysoap/Makefile | 4 | ||||
-rw-r--r-- | sysutils/44bsd-more/Makefile | 3 | ||||
-rw-r--r-- | textproc/py-trex/Makefile | 3 |
18 files changed, 42 insertions, 21 deletions
diff --git a/audio/afsp/Makefile b/audio/afsp/Makefile index 828ad9d7b584..a7f917c34bd4 100644 --- a/audio/afsp/Makefile +++ b/audio/afsp/Makefile @@ -14,6 +14,7 @@ DISTNAME= AFsp-v6r5a MAINTAINER= ginga-freebsd@ginganet.org USE_GMAKE= yes +USE_REINPLACE= yes MAN1= AFsp.1audio CompAudio.1audio CopyAudio.1audio FiltAudio.1audio \ GenNoise.1audio GenTone.1audio InfoAudio.1audio LPanal.1audio \ @@ -29,6 +30,6 @@ post-extract: post-patch: cd ${WRKSRC} && find . -name Makefile | \ - xargs -n10 ${PERL} -i -pe 's/^(COPTS)/#$$1/' + xargs -n10 ${REINPLACE_CMD} -e 's/^(COPTS)/#$$1/' .include <bsd.port.mk> diff --git a/audio/holyshout/Makefile b/audio/holyshout/Makefile index bffcb72fbae0..83660bff7c39 100644 --- a/audio/holyshout/Makefile +++ b/audio/holyshout/Makefile @@ -13,9 +13,10 @@ MASTER_SITES= ftp://ftp.holywar.net/pub/FreeBSD/ MAINTAINER= hollywar@mail.holywar.net USE_GMAKE= yes +USE_REINPLACE= yes post-patch: - (find ${WRKSRC} -name Makefile | xargs ${PERL} -pi -e \ + (find ${WRKSRC} -name Makefile | xargs ${REINPLACE_CMD} -e \ "s@-O20@${CFLAGS}@g ; s@-O2@${CFLAGS}@g") .include <bsd.port.mk> diff --git a/audio/mp3chew/Makefile b/audio/mp3chew/Makefile index a109b8683a14..8795138ae6eb 100644 --- a/audio/mp3chew/Makefile +++ b/audio/mp3chew/Makefile @@ -15,11 +15,12 @@ MAINTAINER= greid@ukug.uk.freebsd.org WRKSRC= ${WRKDIR}/${PORTNAME} ALL_TARGET= ${PORTNAME} +USE_REINPLACE= yes DOCFILES= CHANGELOG INSTALL README TODO post-patch: - @${PERL} -pi.fbsd -e 's, _to, to,g' ${WRKSRC}/CMp3Filter.cc + @${REINPLACE_CMD} -e 's, _to, to,g' ${WRKSRC}/CMp3Filter.cc do-install: ${INSTALL_PROGRAM} ${WRKSRC}/mp3chew ${PREFIX}/bin diff --git a/audio/sbagen/Makefile b/audio/sbagen/Makefile index 04d67c1d7168..ace8eadc8bab 100644 --- a/audio/sbagen/Makefile +++ b/audio/sbagen/Makefile @@ -24,13 +24,15 @@ SHAREFILES= t-alpha t-beta t-calm t-calm2 t-delta t-focus t-focus-1 \ DOCFILES= sbagen.txt theory.txt theory2.txt +USE_REINPLACE= yes + pre-patch: - @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \ + @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \ ${WRKSRC}/sbagen.c post-patch: .for F in ${SHAREFILES} - @${PERL} -pi -e 's,/bin/bash,/bin/sh,g' ${WRKSRC}/$F + @${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,g' ${WRKSRC}/$F .endfor do-build: diff --git a/biology/povchem/Makefile b/biology/povchem/Makefile index 4d3d5ee9c784..ecbedd3b61d0 100644 --- a/biology/povchem/Makefile +++ b/biology/povchem/Makefile @@ -17,6 +17,7 @@ DISTFILES= povchem.c \ MAINTAINER= frankch@waru.life.nthu.edu.tw NO_WRKSUBDIR= yes +USE_REINPLACE= yes DIST_SUBDIR= povchem DEFS= -DDATADIR=\"${PREFIX}/share/povchem\" \ @@ -29,7 +30,7 @@ do-extract: .endfor post-patch: - @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g ; \ + @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g ; \ s|%%X11BASE%%|${X11BASE}|g" ${WRKSRC}/povchem.cfg do-build: diff --git a/devel/arm-elf-gcc295/Makefile b/devel/arm-elf-gcc295/Makefile index 91ef041a5cca..9692a0afe3c3 100644 --- a/devel/arm-elf-gcc295/Makefile +++ b/devel/arm-elf-gcc295/Makefile @@ -26,6 +26,7 @@ RUN_DEPENDS= ${PKGNAMEPREFIX}as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils \ GCC_REV= ${DISTNAME:S/gcc-//g} PLIST_SUB+= GCC_REV=${GCC_REV} USE_BZIP2= yes +USE_REINPLACE= yes CFLAGS:= ${CFLAGS:C/-m(arch|cpu)=[a-zA-Z0-9]+//} CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} --enable-languages="c,c++,objc" .if defined(DEFAULT_CPU) @@ -47,8 +48,8 @@ pre-extract: .endif post-configure: - ${PERL} -pi.bak -e 's,^(TARGET_CONFIGDIRS\s*=),\1#,' ${WRKSRC}/Makefile - ${PERL} -pi.bak -e 's,^(install-info:),\1\ndonot-\1,; \ + ${REINPLACE_CMD} -e 's,^(TARGET_CONFIGDIRS\s*=),\1#,' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's,^(install-info:),\1\ndonot-\1,; \ s,\$$\(bindir\)/(\$$\(DEMANGLER_CROSS_NAME\)),./\1,' \ ${WRKSRC}/gcc/Makefile diff --git a/dns/dnrd/Makefile b/dns/dnrd/Makefile index d607c6ab4fca..e6da2990897d 100644 --- a/dns/dnrd/Makefile +++ b/dns/dnrd/Makefile @@ -15,6 +15,7 @@ MAINTAINER= greid@FreeBSD.org WRKSRC= ${WRKDIR}/${DISTNAME}/src USE_GMAKE= yes +USE_REINPLACE= yes MAN8= dnrd.8 @@ -23,6 +24,6 @@ post-patch: @(cd ${WRKSRC} && ${SED} -e 's,%%PREFIX%%,${PREFIX},g' $F > foo && \ ${MV} foo $F) .endfor - ${PERL} -pi -e "s@cc@${CC}@g; s@-lc_r@${PTHREAD_LIBS}@g" ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e "s@cc@${CC}@g; s@-lc_r@${PTHREAD_LIBS}@g" ${WRKSRC}/Makefile .include <bsd.port.mk> diff --git a/korean/engdic/Makefile b/korean/engdic/Makefile index 8bc1f9e4cfef..2081001089e8 100644 --- a/korean/engdic/Makefile +++ b/korean/engdic/Makefile @@ -14,10 +14,11 @@ MASTER_SITES= ftp://ftp.holywar.net/pub/engdic/ \ MAINTAINER= hollywar@mail.holywar.net ALL_TARGET= clean all +USE_REINPLACE= yes post-patch: @for f in ${WRKSRC}/Makefile ${WRKSRC}/engdic.h; do \ - ${PERL} -pi -e 's,/usr/local,${PREFIX},g' $$f; \ + ${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' $$f; \ done .include <bsd.port.mk> diff --git a/lang/dylan/Makefile b/lang/dylan/Makefile index ac5814c70844..b5afc348c7ec 100644 --- a/lang/dylan/Makefile +++ b/lang/dylan/Makefile @@ -52,6 +52,7 @@ MAN7= dylan.7 gwydion.7 .include <bsd.port.pre.mk> +USE_REINPLACE= yes .if ${HAVE_GNOME:Mgtk12}!="" USE_GNOME+= gtk12 PLIST_SUB+= GTK_ONLY="" @@ -64,7 +65,7 @@ post-extract: ${CHMOD} ugo+x $(WRKDIR)/d2c pre-patch: - @${PERL} -pi -e 's|gtk-config|${GTK_CONFIG}|' \ + @${REINPLACE_CMD} -e 's|gtk-config|${GTK_CONFIG}|' \ ${WRKSRC}/platform/gtk+/gtk+/gtk.lid patch-libtool: diff --git a/mail/ftrack/Makefile b/mail/ftrack/Makefile index 3410cbd6963a..12f7857c9a5c 100644 --- a/mail/ftrack/Makefile +++ b/mail/ftrack/Makefile @@ -16,17 +16,18 @@ MAINTAINER= gonza@techline.ru BUILD_DEPENDS= ${LOCALBASE}/lib/libsmapi.a:${PORTSDIR}/mail/smapi USE_ZIP= yes +USE_REINPLACE= yes USE_GMAKE= yes ALL_TARGET= ftrack MAKEFILE= ${WRKSRC}/MakeFiles/FreeBSD/Makefile EXTRACT_AFTER_ARGS= -d ${WRKSRC} pre-patch: - ${PERL} -pi -e "s@-I../../hpp -I../../.. -O3@-Ihpp -I${LOCALBASE}/include ${CFLAGS}@g; \ + ${REINPLACE_CMD} -e "s@-I../../hpp -I../../.. -O3@-Ihpp -I${LOCALBASE}/include ${CFLAGS}@g; \ s@../../src/@src/@g; s@g\+\+@${CC}@g; \ s@-L../smapi -lsmapibsd@-L${LOCALBASE}/lib -lsmapi@g" ${WRKSRC}/MakeFiles/FreeBSD/Makefile .for DIR in MakeFiles/FreeBSD src hpp doc/eng samples/tpl - ${PERL} -pi -e 's!\r!!' ${WRKSRC}/${DIR}/* + ${REINPLACE_CMD} -e 's!\r!!' ${WRKSRC}/${DIR}/* .endfor pre-configure: diff --git a/mail/liboe/Makefile b/mail/liboe/Makefile index 75aa720a9b08..ec8f764c90f1 100644 --- a/mail/liboe/Makefile +++ b/mail/liboe/Makefile @@ -13,12 +13,13 @@ MASTER_SITES= http://www.gpl.no/liboe/download/ MAINTAINER= ijliao@FreeBSD.org +USE_REINPLACE= yes MAKEFILE= makefile ALL_TARGET= clean oe2mbx liboe INSTALLS_SHLIB= yes post-patch: - @${PERL} -pi -e "s,^PREFIX,#PREFIX,g ; \ + @${REINPLACE_CMD} -e "s,^PREFIX,#PREFIX,g ; \ s,gcc,${CC} ${CFLAGS},g" ${WRKSRC}/${MAKEFILE} .include <bsd.port.mk> diff --git a/mail/minimalist/Makefile b/mail/minimalist/Makefile index 6c7ad5c36a7b..9bf81bd2dc3f 100644 --- a/mail/minimalist/Makefile +++ b/mail/minimalist/Makefile @@ -16,9 +16,10 @@ EXTRACT_SUFX= .tgz MAINTAINER= gmarco@giovannelli.it NO_BUILD= yes +USE_REINPLACE= yes post-patch: - @(cd ${WRKSRC}; ${PERL} -i.bak -p -e 's,/usr/local,${PREFIX},' README \ + @(cd ${WRKSRC}; ${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' README \ minimalist.conf-sample minimalist.pl) do-install: diff --git a/math/gexpr/Makefile b/math/gexpr/Makefile index ab0520086f63..fad9c484a7a4 100644 --- a/math/gexpr/Makefile +++ b/math/gexpr/Makefile @@ -16,9 +16,11 @@ MAINTAINER= ijliao@FreeBSD.org LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt +USE_REINPLACE= yes + MAN1= gexpr.1 post-patch: - @${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile .include <bsd.port.mk> diff --git a/misc/44bsd-more/Makefile b/misc/44bsd-more/Makefile index 68d99f511459..6e1de6cf9edb 100644 --- a/misc/44bsd-more/Makefile +++ b/misc/44bsd-more/Makefile @@ -14,6 +14,7 @@ MASTER_SITE_SUBDIR= hoek MAINTAINER= hoek@FreeBSD.org USE_BZIP2= yes +USE_REINPLACE= yes NO_WRKSUBDIR= yes MAN1= 44bsd-more.1 @@ -25,7 +26,7 @@ post-extract: -cd ${WRKSRC} && co -d${RELDATE} RCS/*,v post-patch: - ${PERL} -pi.orig -e \ + ${REINPLACE_CMD} -e \ 's!/usr/share/misc/more.help!${PREFIX}/share/misc/44bsd-more.help!'\ ${WRKSRC}/pathnames.h ${CP} ${FILESDIR}/queue.h ${WRKSRC} diff --git a/net/dnrd/Makefile b/net/dnrd/Makefile index d607c6ab4fca..e6da2990897d 100644 --- a/net/dnrd/Makefile +++ b/net/dnrd/Makefile @@ -15,6 +15,7 @@ MAINTAINER= greid@FreeBSD.org WRKSRC= ${WRKDIR}/${DISTNAME}/src USE_GMAKE= yes +USE_REINPLACE= yes MAN8= dnrd.8 @@ -23,6 +24,6 @@ post-patch: @(cd ${WRKSRC} && ${SED} -e 's,%%PREFIX%%,${PREFIX},g' $F > foo && \ ${MV} foo $F) .endfor - ${PERL} -pi -e "s@cc@${CC}@g; s@-lc_r@${PTHREAD_LIBS}@g" ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e "s@cc@${CC}@g; s@-lc_r@${PTHREAD_LIBS}@g" ${WRKSRC}/Makefile .include <bsd.port.mk> diff --git a/net/easysoap/Makefile b/net/easysoap/Makefile index dd5355399301..2ca1fbcd8c2e 100644 --- a/net/easysoap/Makefile +++ b/net/easysoap/Makefile @@ -18,6 +18,7 @@ MAINTAINER= gabriel_ambuehl@buz.ch LIB_DEPENDS= expat.4:${PORTSDIR}/textproc/expat2 USE_OPENSSL= yes +USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib -lexpat" @@ -30,6 +31,7 @@ BROKEN= "Does not compile on 5.0" .endif pre-patch: - @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \ + @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \ ${WRKSRC}/src/abyss/src/data.c + .include <bsd.port.post.mk> diff --git a/sysutils/44bsd-more/Makefile b/sysutils/44bsd-more/Makefile index 68d99f511459..6e1de6cf9edb 100644 --- a/sysutils/44bsd-more/Makefile +++ b/sysutils/44bsd-more/Makefile @@ -14,6 +14,7 @@ MASTER_SITE_SUBDIR= hoek MAINTAINER= hoek@FreeBSD.org USE_BZIP2= yes +USE_REINPLACE= yes NO_WRKSUBDIR= yes MAN1= 44bsd-more.1 @@ -25,7 +26,7 @@ post-extract: -cd ${WRKSRC} && co -d${RELDATE} RCS/*,v post-patch: - ${PERL} -pi.orig -e \ + ${REINPLACE_CMD} -e \ 's!/usr/share/misc/more.help!${PREFIX}/share/misc/44bsd-more.help!'\ ${WRKSRC}/pathnames.h ${CP} ${FILESDIR}/queue.h ${WRKSRC} diff --git a/textproc/py-trex/Makefile b/textproc/py-trex/Makefile index 5bbc3b441835..99e8a570a57c 100644 --- a/textproc/py-trex/Makefile +++ b/textproc/py-trex/Makefile @@ -22,9 +22,10 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyexpat.so:${PORTSDIR}/textproc/py-expat USE_PYTHON= yes NO_BUILD= yes +USE_REINPLACE= yes post-patch: - @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/pytrex.py + @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/pytrex.py do-install: ${INSTALL_SCRIPT} ${WRKSRC}/pytrex.py ${PREFIX}/bin/pytrex |