1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Replace ${PERL} with ${REINPLACE_CMD}

PR:		39665
Submitted by:	Oliver Braun <obraun@informatik.unibw-muenchen.de>
This commit is contained in:
Ying-Chieh Liao 2002-06-22 17:23:30 +00:00
parent 7b3cf63dbe
commit 3b9032fabc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61744
21 changed files with 54 additions and 31 deletions

View File

@ -14,6 +14,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
USE_QT_VER= 2
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
@ -25,7 +26,7 @@ post-extract:
pre-patch:
.for file in configure src/Makefile.in
@${PERL} -pi -e 's|/moc|/${MOC:T}|g ; \
@${REINPLACE_CMD} -e 's|/moc|/${MOC:T}|g ; \
s|-lqt|-l${QTNAME}|g ; \
s|-O2 -Wall|\@CXXFLAGS\@|g' ${WRKSRC}/${file}
.endfor

View File

@ -17,6 +17,7 @@ MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/QuantLib-${PORTVERSION}
USE_REINPLACE= yes
USE_BZIP2= yes
USE_LIBTOOL= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
@ -26,10 +27,10 @@ MAN1= DiscreteHedging.1 EuropeanOption.1 SwapValuation.1 \
quantlib-config.1
pre-patch:
@${PERL} -pi -e 's|-g -O3|\$$CXXFLAGS|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-g -O3|\$$CXXFLAGS|g' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.in" | \
${XARGS} ${PERL} -pi -e 's|-g -O.|\@CXXFLAGS\@|g'
${XARGS} ${REINPLACE_CMD} -e 's|-g -O.|\@CXXFLAGS\@|g'
@${FIND} ${WRKSRC}/Examples -name "Makefile.in" | \
${XARGS} ${PERL} -pi -e 's|-pedantic -Wall|-O0|g'
${XARGS} ${REINPLACE_CMD} -e 's|-pedantic -Wall|-O0|g'
.include <bsd.port.mk>

View File

@ -17,15 +17,17 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= tcl83:${PORTSDIR}/lang/tcl83 \
tk83:${PORTSDIR}/x11-toolkits/tk83
USE_REINPLACE= yes
CFLAGS+= -I${LOCALBASE}/include/tcl8.3 -I${LOCALBASE}/include/tk8.3 \
-I${X11BASE}/include
LIBS= -L${LOCALBASE}/lib -L${X11BASE}/lib
post-patch:
@${PERL} -pi -e "s,-lpthread,${PTHREAD_LIBS},g ; \
@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g ; \
s,g\+\+,${CXX},g ; \
s,%%CXXFLAGS%%,${CXXFLAGS},g ; s,%%LIBS%%,${LIBS},g ; \
s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile
@${PERL} -pi -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/include/globals.h
@${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/include/globals.h
.include <bsd.port.mk>

View File

@ -21,6 +21,7 @@ LIB_DEPENDS= gnomeole2.0:${PORTSDIR}/devel/libole2 \
gtkextra.17:${PORTSDIR}/x11-toolkits/gtkextra
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GTK= yes
WANT_GNOME= yes
@ -43,8 +44,8 @@ CONFIGURE_ARGS+= --without-gnome
.endif
pre-patch:
@${PERL} -pi -e 's|`glib-config|`\$$GLIB_CONFIG|g ; \
@${REINPLACE_CMD} -e 's|`glib-config|`\$$GLIB_CONFIG|g ; \
s|/share/gretl/|/lib/gretl/|g' ${WRKSRC}/configure
@${PERL} -pi -e 's|SIGCLD|SIGCHLD|g' ${WRKSRC}/gui/gretl.c
@${REINPLACE_CMD} -e 's|SIGCLD|SIGCHLD|g' ${WRKSRC}/gui/gretl.c
.include <bsd.port.post.mk>

View File

@ -15,9 +15,10 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
NO_BUILD= yes
USE_REINPLACE= yes
post-patch:
@${PERL} -pi -e "s|\@\@PREFIX\@\@|${PREFIX}|g;" ${WRKSRC}/whats
@${REINPLACE_CMD} -e "s|\@\@PREFIX\@\@|${PREFIX}|g;" ${WRKSRC}/whats
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/whats ${PREFIX}/bin

View File

@ -17,12 +17,13 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= aa.1:${PORTSDIR}/graphics/aalib \
mikmod.2:${PORTSDIR}/audio/libmikmod
USE_REINPLACE= yes
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/bb-1.3.0
MAN1= bb.1
pre-patch:
${FIND} ${WRKSRC} -type f | ${XARGS} ${PERL} -pi -e "s@#include +<malloc.h>@#include <stdlib.h>@g"
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -E -e "s@#include +<malloc.h>@#include <stdlib.h>@g"
post-install:
.if !defined(NOPORTDOCS)

View File

@ -13,12 +13,13 @@ MASTER_SITES= http://people.qualcomm.com/karn/code/cpuid/
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
ONLY_FOR_ARCHS= i386
USE_GMAKE= yes
ALL_TARGET= # empty
post-patch:
@${PERL} -pi -e "s,gcc,${CC},g ; s,^CFLAGS,#CFLAGS,g" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s,gcc,${CC},g ; s,^CFLAGS,#CFLAGS,g" ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cpuid ${PREFIX}/bin

View File

@ -15,6 +15,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
USE_REINPLACE= yes
USE_MESA= yes
USE_GTK= yes
USE_LIBTOOL= yes
@ -23,6 +24,6 @@ CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" \
LDFLAGS="${PTHREAD_LIBS}"
post-patch:
@${PERL} -pi -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
.include <bsd.port.mk>

View File

@ -15,13 +15,14 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= tk82.1:${PORTSDIR}/x11-toolkits/tk82
RUN_DEPENDS= wish8.2:${PORTSDIR}/x11-toolkits/tk82
USE_REINPLACE= yes
GNU_CONFIGURE= yes
MAN1= dotfile.1
NO_BUILD= yes
post-patch:
@${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/dotfile
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/dotfile
post-configure:
@(cd ${WRKSRC}/Modules/procmail && CC="${CC}" ac_cv_path_CC="${CC}" CFLAGS="${CFLAGS}" \

View File

@ -19,6 +19,7 @@ RUN_DEPENDS= wish8.2:${PORTSDIR}/x11-toolkits/tk82
.endif
NO_BUILD= YES
USE_REINPLACE= yes
TCLLIBS= definefont.tcl edittable.tcl setpointer.tcl viewer.tcl tclIndex
PORTDOCS= Changes.jp README README.jp dot.ewipe
EXAMPLES= a1.gif a2.gif a3.gif a4.gif blue1.gif sample.ewp test.ewp \
@ -31,7 +32,7 @@ WISH= ${LOCALBASE}/bin/wish8.2
.endif
post-patch:
@${PERL} -pi \
@${REINPLACE_CMD} \
-e "s|%%PREFIX%%|${PREFIX}|g;" \
-e "s|%%WISH%%|${WISH}|g;" ${WRKSRC}/ewipe

View File

@ -13,12 +13,13 @@ MASTER_SITES= http://www.cichon.com/floatator/download/
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
USE_XLIB= yes
USE_MOTIF= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
post-patch:
@${PERL} -pi -e "s,^CC,#CC,g ; s,^CFLAGS,#CFLAGS,g" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s,^CC,#CC,g ; s,^CFLAGS,#CFLAGS,g" ${WRKSRC}/Makefile
do-install:
.for f in floatator floatator_X_interface

View File

@ -17,15 +17,17 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= tcl83:${PORTSDIR}/lang/tcl83 \
tk83:${PORTSDIR}/x11-toolkits/tk83
USE_REINPLACE= yes
CFLAGS+= -I${LOCALBASE}/include/tcl8.3 -I${LOCALBASE}/include/tk8.3 \
-I${X11BASE}/include
LIBS= -L${LOCALBASE}/lib -L${X11BASE}/lib
post-patch:
@${PERL} -pi -e "s,-lpthread,${PTHREAD_LIBS},g ; \
@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g ; \
s,g\+\+,${CXX},g ; \
s,%%CXXFLAGS%%,${CXXFLAGS},g ; s,%%LIBS%%,${LIBS},g ; \
s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile
@${PERL} -pi -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/include/globals.h
@${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/include/globals.h
.include <bsd.port.mk>

View File

@ -17,6 +17,7 @@ MAINTAINER= ports@FreeBSD.org
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/GTK.py:${PORTSDIR}/x11-toolkits/py-gtk \
${PYTHON_SITELIBDIR}/gnome/ui.py:${PORTSDIR}/x11-toolkits/py-gnome
USE_REINPLACE= yes
USE_PYTHON= yes
USE_X_PREFIX= yes
USE_GNOME= yes
@ -25,8 +26,8 @@ USE_GMAKE= yes
NO_BUILD= yes
post-patch:
@${PERL} -pi -e "s,/usr/bin/python,${PYTHON_CMD},g" ${WRKSRC}/${PORTNAME}
@${PERL} -pi -e "s,gnome-config,${GNOME_CONFIG},g ; \
@${REINPLACE_CMD} -e "s,/usr/bin/python,${PYTHON_CMD},g" ${WRKSRC}/${PORTNAME}
@${REINPLACE_CMD} -e "s,gnome-config,${GNOME_CONFIG},g ; \
s,--directory,-d --mode=755,g ; \
s,install ,install -c ,g" ${WRKSRC}/Makefile

View File

@ -14,6 +14,7 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
@ -22,7 +23,7 @@ MAN1= grc.1 grcat.1
post-patch:
.for file in grc grcat
@${PERL} -pi -e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g ; \
@${REINPLACE_CMD} -e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g ; \
s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
.endfor

View File

@ -21,6 +21,7 @@ LIB_DEPENDS= gnomeole2.0:${PORTSDIR}/devel/libole2 \
gtkextra.17:${PORTSDIR}/x11-toolkits/gtkextra
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GTK= yes
WANT_GNOME= yes
@ -43,8 +44,8 @@ CONFIGURE_ARGS+= --without-gnome
.endif
pre-patch:
@${PERL} -pi -e 's|`glib-config|`\$$GLIB_CONFIG|g ; \
@${REINPLACE_CMD} -e 's|`glib-config|`\$$GLIB_CONFIG|g ; \
s|/share/gretl/|/lib/gretl/|g' ${WRKSRC}/configure
@${PERL} -pi -e 's|SIGCLD|SIGCHLD|g' ${WRKSRC}/gui/gretl.c
@${REINPLACE_CMD} -e 's|SIGCLD|SIGCHLD|g' ${WRKSRC}/gui/gretl.c
.include <bsd.port.post.mk>

View File

@ -14,6 +14,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
USE_QT_VER= 2
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
@ -25,7 +26,7 @@ post-extract:
pre-patch:
.for file in configure src/Makefile.in
@${PERL} -pi -e 's|/moc|/${MOC:T}|g ; \
@${REINPLACE_CMD} -e 's|/moc|/${MOC:T}|g ; \
s|-lqt|-l${QTNAME}|g ; \
s|-O2 -Wall|\@CXXFLAGS\@|g' ${WRKSRC}/${file}
.endfor

View File

@ -17,6 +17,7 @@ MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/QuantLib-${PORTVERSION}
USE_REINPLACE= yes
USE_BZIP2= yes
USE_LIBTOOL= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
@ -26,10 +27,10 @@ MAN1= DiscreteHedging.1 EuropeanOption.1 SwapValuation.1 \
quantlib-config.1
pre-patch:
@${PERL} -pi -e 's|-g -O3|\$$CXXFLAGS|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-g -O3|\$$CXXFLAGS|g' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.in" | \
${XARGS} ${PERL} -pi -e 's|-g -O.|\@CXXFLAGS\@|g'
${XARGS} ${REINPLACE_CMD} -e 's|-g -O.|\@CXXFLAGS\@|g'
@${FIND} ${WRKSRC}/Examples -name "Makefile.in" | \
${XARGS} ${PERL} -pi -e 's|-pedantic -Wall|-O0|g'
${XARGS} ${REINPLACE_CMD} -e 's|-pedantic -Wall|-O0|g'
.include <bsd.port.mk>

View File

@ -14,12 +14,13 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
ALL_TARGET= shc
MAN1= shc.1
post-patch:
@${PERL} -pi -e "s,^CFLAGS,#CFLAGS},g ; \
@${REINPLACE_CMD} -e "s,^CFLAGS,#CFLAGS},g ; \
s,/usr/local,${PREFIX},g" ${WRKSRC}/Makefile
.include <bsd.port.mk>

View File

@ -16,12 +16,13 @@ MAINTAINER= ports@FreeBSD.org
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
USE_REINPLACE= yes
NO_BUILD= yes
post-patch:
@${PERL} -pi -e "s,/bin/bash,${LOCALBASE}/bin/bash,g ; \
@${REINPLACE_CMD} -e "s,/bin/bash,${LOCALBASE}/bin/bash,g ; \
s,\`seq,\`gseq,g" ${WRKSRC}/${DISTNAME}.sh
@${PERL} -pi -e "s,/usr,${LOCALBASE},g" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s,/usr,${LOCALBASE},g" ${WRKSRC}/Makefile
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME}.sh ${PREFIX}/bin/txt2regex

View File

@ -13,13 +13,14 @@ DISTFILES= pns_source.tar.Z
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
NO_WRKSUBDIR= yes
USE_X_PREFIX= yes
MAKEFILE= makefile
ALL_TARGET= pns
post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/xpns
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/xpns
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/xpns ${PREFIX}/bin/xpns

View File

@ -13,13 +13,14 @@ MASTER_SITES= http://www.redterror.net/code/yaunc/
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
GNU_CONFIGURE= yes
MAN1= yaunc.1
post-patch:
@${CP} -f ${FILESDIR}/startup ${WRKSRC}/yaunc.sh
.for file in yaunc.1 yaunc.sh
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
.endfor
do-install: