1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

PERL -> REINPLACE

Noticed on: bento
This commit is contained in:
Edwin Groothuis 2002-11-04 02:35:01 +00:00
parent a6429924fc
commit 6097f03e91
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=69424
18 changed files with 42 additions and 21 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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:

View File

@ -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:

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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:

View File

@ -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:

View File

@ -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>

View File

@ -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:

View File

@ -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>

View File

@ -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}

View File

@ -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>

View File

@ -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>

View File

@ -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}

View File

@ -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