Index: GiNaC/Makefile =================================================================== RCS file: /home/ncvs/ports/math/GiNaC/Makefile,v retrieving revision 1.16 diff -u -r1.16 Makefile --- GiNaC/Makefile 2002/06/13 10:39:28 1.16 +++ GiNaC/Makefile 2002/06/22 12:57:30 @@ -17,6 +17,7 @@ LIB_DEPENDS= cln.2:${PORTSDIR}/math/cln +USE_REINPLACE= yes USE_BZIP2= yes USE_NEWGCC= yes USE_GMAKE= yes @@ -34,10 +35,10 @@ post-patch: .for file in configure ginac/numeric.cpp ginac/tostring.h - @${PERL} -pi -e 's|sstream|strstream|g ; \ + @${REINPLACE_CMD} -e 's|sstream|strstream|g ; \ s|stringstream|strstream|g' ${WRKSRC}/${file} .endfor - @${PERL} -pi -e 's|-release \$$\(LT_RELEASE\)||g' \ + @${REINPLACE_CMD} -e 's|-release \$$(LT_RELEASE)||g' \ ${WRKSRC}/ginac/Makefile.in .include Index: clarence/Makefile =================================================================== RCS file: /home/ncvs/ports/math/clarence/Makefile,v retrieving revision 1.3 diff -u -r1.3 Makefile --- clarence/Makefile 2002/05/10 17:37:54 1.3 +++ clarence/Makefile 2002/06/22 12:57:30 @@ -15,13 +15,14 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/GDK.py:${PORTSDIR}/x11-toolkits/py-gtk +USE_REINPLACE= yes USE_PYTHON= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME} MAN1= clarence.1 post-patch: - @${PERL} -pi -e "s,#!/usr/bin/python,#!/usr/bin/env python,g" ${WRKSRC}/clarence.py + @${REINPLACE_CMD} -e "s,#!/usr/bin/python,#!/usr/bin/env python,g" ${WRKSRC}/clarence.py do-install: ${INSTALL_SCRIPT} ${WRKSRC}/clarence.py ${PREFIX}/bin/clarence Index: freefem/Makefile =================================================================== RCS file: /home/ncvs/ports/math/freefem/Makefile,v retrieving revision 1.13 diff -u -r1.13 Makefile --- freefem/Makefile 2002/03/25 12:24:20 1.13 +++ freefem/Makefile 2002/06/22 12:57:31 @@ -13,6 +13,7 @@ MAINTAINER= ports@FreeBSD.org +USE_REINPLACE= yes USE_X_PREFIX= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} @@ -22,8 +23,8 @@ MAN1= freefem.1 post-patch: - @${PERL} -pi -e 's|-O3 |\$$CXXFLAGS |g' ${WRKSRC}/configure - @${PERL} -pi -e 's|debian doc freefem|debian freefem|g ; \ + @${REINPLACE_CMD} -e 's|-O3 |\$$CXXFLAGS |g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|debian doc freefem|debian freefem|g ; \ s|^install-data-am:|install-data-am: #|g' ${WRKSRC}/Makefile.in post-install: Index: newmat/Makefile =================================================================== RCS file: /home/ncvs/ports/math/newmat/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- newmat/Makefile 2002/06/14 22:04:33 1.2 +++ newmat/Makefile 2002/06/22 12:57:32 @@ -15,12 +15,13 @@ MAINTAINER= ports@FreeBSD.org NO_WRKSUBDIR= yes +USE_REINPLACE= yes USE_GMAKE= yes MAKEFILE= nm_gnu.mak ALL_TARGET= everything post-patch: - @${PERL} -pi -e "s,^CXX,#CXX,g ; \ + @${REINPLACE_CMD} -e "s,^CXX,#CXX,g ; \ s,^CXXFLAGS,#CXXFLAGS,g" ${WRKSRC}/${MAKEFILE} do-install: Index: oleo/Makefile =================================================================== RCS file: /home/ncvs/ports/math/oleo/Makefile,v retrieving revision 1.28 diff -u -r1.28 Makefile --- oleo/Makefile 2002/06/09 17:28:18 1.28 +++ oleo/Makefile 2002/06/22 12:57:32 @@ -16,6 +16,7 @@ LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext +USE_REINPLACE= yes USE_AUTOCONF_VER=213 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib" @@ -42,6 +43,6 @@ post-patch: @find ${WRKSRC} -name '*.[ch]' | xargs \ - ${PERL} -pi -e "s|||g" + ${REINPLACE_CMD} -e "s|||g" .include Index: physcalc/Makefile =================================================================== RCS file: /home/ncvs/ports/math/physcalc/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile --- physcalc/Makefile 2001/12/24 10:37:42 1.4 +++ physcalc/Makefile 2002/06/22 12:57:32 @@ -17,6 +17,7 @@ EXTRACT_AFTER_ARGS= -x physcalc -d ${WRKDIR} NO_WRKSUBDIR= yes +USE_REINPLACE= yes USE_ZIP= yes DEFS= -DSHAREDIR="\"${PREFIX}/share/physcalc/\"" @@ -24,7 +25,7 @@ physsolv.c pre-build: - ${PERL} -pi -e "s@void main@int main@g" ${WRKSRC}/physmain.c + ${REINPLACE_CMD} -e "s@void main@int main@g" ${WRKSRC}/physmain.c do-build: (cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEFS} ${SRCS} -lm -o physcalc) Index: plplot/Makefile =================================================================== RCS file: /home/ncvs/ports/math/plplot/Makefile,v retrieving revision 1.21 diff -u -r1.21 Makefile --- plplot/Makefile 2002/03/09 17:55:33 1.21 +++ plplot/Makefile 2002/06/22 12:57:33 @@ -16,6 +16,7 @@ LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 +USE_REINPLACE= yes USE_XLIB= yes GNU_CONFIGURE= yes CONFIGURE_ENV= F77="${FC}" FFLAGS="${FFLAGS}" \ @@ -54,7 +55,7 @@ post-patch: .for file in scripts/mktclIndex - @${PERL} -pi -e 's|tclsh|${LOCALBASE}/bin/tclsh8.3|g' ${WRKSRC}/${file} + @${REINPLACE_CMD} -e 's|tclsh|${LOCALBASE}/bin/tclsh8.3|g' ${WRKSRC}/${file} .endfor .include Index: rascal/Makefile =================================================================== RCS file: /home/ncvs/ports/math/rascal/Makefile,v retrieving revision 1.14 diff -u -r1.14 Makefile --- rascal/Makefile 2002/06/20 16:44:19 1.14 +++ rascal/Makefile 2002/06/22 12:57:33 @@ -16,6 +16,7 @@ LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt +USE_REINPLACE= yes USE_BISON= yes USE_GNOME= yes WRKSRC= ${WRKDIR}/Rascal-${PORTVERSION} @@ -26,7 +27,7 @@ MAN1= rascal.1 post-patch: - @${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g ; \ + @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g ; \ s,g\+\+,${CXX},g ; \ s,doc/,share/doc/,g ; \ s,gnome-config,${GNOME_CONFIG},g ; \ Index: spar/Makefile =================================================================== RCS file: /home/ncvs/ports/math/spar/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- spar/Makefile 2001/06/30 19:00:30 1.5 +++ spar/Makefile 2002/06/22 12:57:33 @@ -16,6 +16,7 @@ LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt +USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt" INSTALLS_SHLIB= yes @@ -23,6 +24,6 @@ MAN1= spar.1 post-patch: - @${PERL} -pi -e "s,-ldl,,g" ${WRKSRC}/lib/Makefile.in + @${REINPLACE_CMD} -e "s,-ldl,,g" ${WRKSRC}/lib/Makefile.in .include Index: vtk/Makefile =================================================================== RCS file: /home/ncvs/ports/math/vtk/Makefile,v retrieving revision 1.16 diff -u -r1.16 Makefile --- vtk/Makefile 2002/01/02 04:16:45 1.16 +++ vtk/Makefile 2002/06/22 12:57:34 @@ -16,6 +16,7 @@ LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83 +USE_REINPLACE= yes USE_MESA= yes WRKSRC= ${WRKDIR}/vtk${PORTVERSION} INSTALLS_SHLIB= yes @@ -35,11 +36,11 @@ .endif post-patch: - ${PERL} -pi -e "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g; \ + @${REINPLACE_CMD} -e "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g; \ s|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g; \ s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g" \ ${WRKSRC}/user.make - @${FIND} ${WRKSRC} -name "*.cxx" | ${XARGS} ${PERL} -pi -e \ + @${FIND} ${WRKSRC} -name "*.cxx" | ${XARGS} ${REINPLACE_CMD} -e \ 's|malloc.h|stdlib.h|' post-install: