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:		39656
Submitted by:	Oliver Braun <obraun@informatik.unibw-muenchen.de>
This commit is contained in:
Ying-Chieh Liao 2002-06-22 17:06:27 +00:00
parent 6117005f17
commit 161b751262
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61740
12 changed files with 29 additions and 17 deletions

View File

@ -17,6 +17,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= cln.2:${PORTSDIR}/math/cln
USE_REINPLACE= yes
USE_BZIP2= yes
USE_NEWGCC= yes
USE_GMAKE= yes
@ -34,10 +35,10 @@ post-extract:
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 <bsd.port.mk>

View File

@ -15,13 +15,14 @@ MAINTAINER= ports@FreeBSD.org
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

View File

@ -13,6 +13,7 @@ MASTER_SITE_SUBDIR= kfem
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 @@ INSTALLS_SHLIB= yes
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:

View File

@ -15,12 +15,13 @@ DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
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:

View File

@ -16,6 +16,7 @@ MAINTAINER= ports@FreeBSD.org
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 @@ pre-everything::
post-patch:
@find ${WRKSRC} -name '*.[ch]' | xargs \
${PERL} -pi -e "s|<malloc.h>|<stdlib.h>|g"
${REINPLACE_CMD} -e "s|<malloc.h>|<stdlib.h>|g"
.include <bsd.port.mk>

View File

@ -17,6 +17,7 @@ EXTRACT_BEFORE_ARGS= -aq
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 @@ SRCS= physconv.c physmain.c physmlib.c physnode.c physoper.c \
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)

View File

@ -16,6 +16,7 @@ MAINTAINER= ports@FreeBSD.org
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 @@ PLIST_SUB+= TCLTK="@comment "
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 <bsd.port.mk>

View File

@ -16,6 +16,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
USE_REINPLACE= yes
USE_BISON= yes
USE_GNOME= yes
WRKSRC= ${WRKDIR}/Rascal-${PORTVERSION}
@ -26,7 +27,7 @@ MANCOMPRESSED= yes
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 ; \

View File

@ -16,6 +16,7 @@ MAINTAINER= ports@FreeBSD.org
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 @@ INSTALLS_SHLIB= yes
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 <bsd.port.mk>

View File

@ -16,6 +16,7 @@ MAINTAINER= ports@FreeBSD.org
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 @@ PLIST= ${PKGDIR}/pkg-plist.with_patented
.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:

View File

@ -16,6 +16,7 @@ MAINTAINER= ports@FreeBSD.org
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 @@ PLIST= ${PKGDIR}/pkg-plist.with_patented
.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:

View File

@ -16,6 +16,7 @@ MAINTAINER= ports@FreeBSD.org
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 @@ PLIST= ${PKGDIR}/pkg-plist.with_patented
.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: