Skip to content

Commit

Permalink
Replace ${PERL} with ${REINPLACE_CMD}
Browse files Browse the repository at this point in the history
PR:		39668
Submitted by:	Oliver Braun <obraun@informatik.unibw-muenchen.de>
  • Loading branch information
Ying-Chieh Liao authored and Ying-Chieh Liao committed Jun 23, 2002
1 parent b53889d commit e28630e
Show file tree
Hide file tree
Showing 26 changed files with 71 additions and 39 deletions.
3 changes: 2 additions & 1 deletion dns/dlint/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ DISTNAME= dlint${PORTVERSION}

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes
NO_BUILD= yes
MAN8= dlint.8

do-configure:
@${PERL} -pi.orig -e 's:/usr/local/bin:${PREFIX}/sbin:g' ${WRKSRC}/dlint
@${REINPLACE_CMD} -e 's:/usr/local/bin:${PREFIX}/sbin:g' ${WRKSRC}/dlint
@${SED} -e 's:DLINT 1:DLINT 8:g' ${WRKSRC}/dlint.1 >${WRKSRC}/dlint.8

do-install:
Expand Down
6 changes: 4 additions & 2 deletions dns/maradns/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ MASTER_SITES= http://www.maradns.org/download/ \

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes
REINPLACE_ARGS= -i ""
USE_BZIP2= yes
MAKE_ENV= FLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"

Expand All @@ -22,9 +24,9 @@ MAN5= mararc.5
MAN8= maradns.8 zoneserver.8

post-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${PERL} -pi -e \
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|/etc/mara|${PREFIX}/etc/mara|g'
@${FIND} ${WRKSRC} -name '*Makefile*' | ${XARGS} ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name '*Makefile*' | ${XARGS} ${REINPLACE_CMD} -e \
's|make|\$$\{MAKE\}|g ; \
s|^FLAGS =|#FLAGS =|g ; \
s|-lpthread|${PTHREAD_LIBS}|g'
Expand Down
4 changes: 3 additions & 1 deletion net-mgmt/angst/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet

LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet-config

USE_REINPLACE= yes

MAN8= angst.8

post-patch:
@${PERL} -pi -e "s,^CC,#CC,g ; \
@${REINPLACE_CMD} -e "s,^CC,#CC,g ; \
s,^CFLAGS,#CFLAGS,g ; \
s,libnet-config,${LIBNET_CONFIG},g" ${WRKSRC}/Makefile

Expand Down
3 changes: 2 additions & 1 deletion net-mgmt/gps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ MAINTAINER= ports@FreeBSD.org

BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet

USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
USE_GMAKE= yes

post-patch:
@${PERL} -pi -e "s,-Wall -O3,${CFLAGS},g" ${WRKSRC}/configure
@${REINPLACE_CMD} -e "s,-Wall -O3,${CFLAGS},g" ${WRKSRC}/configure

.if !defined(NOPORTDOCS)
post-install:
Expand Down
4 changes: 3 additions & 1 deletion net-mgmt/oproute/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ EXTRACT_SUFX= .tgz

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes

post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/Makefile

.include <bsd.port.mk>
13 changes: 7 additions & 6 deletions net-p2p/fidelio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext \

XML_CONFIG?= ${LOCALBASE}/bin/xml2-config

USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOME= yes
Expand All @@ -32,14 +33,14 @@ CONFIGURE_ARGS= --without-included-gettext
CFLAGS+= -DHAVE_STRCASESTR

pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
@${PERL} -pi -e 's|-lxml|-lxml2|g' \
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|\$$(datadir)/gnome/|\$$(datadir)/|g ; \
s|\$$(datadir)/locale|\$$(prefix)/share/locale|g'
@${REINPLACE_CMD} -e 's|-lxml|-lxml2|g' \
${WRKSRC}/configure
@${PERL} -pi -e 's|extern int strcasestr|//extern int strcasestr|' \
@${REINPLACE_CMD} -e 's|extern int strcasestr|//extern int strcasestr|' \
${WRKSRC}/src/trackers.c

.include <bsd.port.mk>
3 changes: 2 additions & 1 deletion net-p2p/hagelslag/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ MAINTAINER= ports@FreeBSD.org

BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend

USE_REINPLACE= yes
USE_GMAKE= yes
MAKEFILES= Makefile gui/Makefile src/Makefile
HS_DOCDIR= ${PREFIX}/share/doc/${PORTNAME}

post-patch:
.for mfile in ${MAKEFILES}
@ ${PERL} -pi -e 's#make -C#\$${MAKE} -C#' ${WRKSRC}/${mfile}
@ ${REINPLACE_CMD} -e 's#make -C#\$${MAKE} -C#' ${WRKSRC}/${mfile}
.endfor

post-install:
Expand Down
3 changes: 2 additions & 1 deletion net-p2p/libfreenet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ MASTER_SITES= http://thalassocracy.org/libfreenet/

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes
USE_OPENSSL= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS= --includedir=${PREFIX}/include/libfreenet
INSTALLS_SHLIB= yes

post-patch:
@${PERL} -pi -e 's|-g -Wall|\@CFLAGS\@|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-g -Wall|\@CFLAGS\@|g' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>
3 changes: 2 additions & 1 deletion net/amcl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GTK= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"

post-patch:
@${PERL} -pi -e 's|CFLAGS -O -pipe -Wall|CFLAGS|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|CFLAGS -O -pipe -Wall|CFLAGS|g' ${WRKSRC}/configure

.include <bsd.port.mk>
4 changes: 3 additions & 1 deletion net/angst/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet

LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet-config

USE_REINPLACE= yes

MAN8= angst.8

post-patch:
@${PERL} -pi -e "s,^CC,#CC,g ; \
@${REINPLACE_CMD} -e "s,^CC,#CC,g ; \
s,^CFLAGS,#CFLAGS,g ; \
s,libnet-config,${LIBNET_CONFIG},g" ${WRKSRC}/Makefile

Expand Down
5 changes: 3 additions & 2 deletions net/cnet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83

USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_XPM= yes
USE_GMAKE= yes
ALL_TARGET= # empty
MAN1= cnet.1

post-patch:
@${PERL} -pi -e 's|8.2|8.3|g ; \
@${REINPLACE_CMD} -e 's|8.2|8.3|g ; \
s|82|83|g' ${WRKSRC}/src/Makefile.freebsd
@${PERL} -pi -e 's|%%CC%%|${CC}|g ; \
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; \
s|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/config.h

do-install:
Expand Down
3 changes: 2 additions & 1 deletion net/dlint/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ DISTNAME= dlint${PORTVERSION}

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes
NO_BUILD= yes
MAN8= dlint.8

do-configure:
@${PERL} -pi.orig -e 's:/usr/local/bin:${PREFIX}/sbin:g' ${WRKSRC}/dlint
@${REINPLACE_CMD} -e 's:/usr/local/bin:${PREFIX}/sbin:g' ${WRKSRC}/dlint
@${SED} -e 's:DLINT 1:DLINT 8:g' ${WRKSRC}/dlint.1 >${WRKSRC}/dlint.8

do-install:
Expand Down
13 changes: 7 additions & 6 deletions net/fidelio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext \

XML_CONFIG?= ${LOCALBASE}/bin/xml2-config

USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOME= yes
Expand All @@ -32,14 +33,14 @@ CONFIGURE_ARGS= --without-included-gettext
CFLAGS+= -DHAVE_STRCASESTR

pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
@${PERL} -pi -e 's|-lxml|-lxml2|g' \
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|\$$(datadir)/gnome/|\$$(datadir)/|g ; \
s|\$$(datadir)/locale|\$$(prefix)/share/locale|g'
@${REINPLACE_CMD} -e 's|-lxml|-lxml2|g' \
${WRKSRC}/configure
@${PERL} -pi -e 's|extern int strcasestr|//extern int strcasestr|' \
@${REINPLACE_CMD} -e 's|extern int strcasestr|//extern int strcasestr|' \
${WRKSRC}/src/trackers.c

.include <bsd.port.mk>
3 changes: 2 additions & 1 deletion net/forg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ MAINTAINER= ports@FreeBSD.org
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
${PYTHON_SITELIBDIR}/Pmw:${PORTSDIR}/x11-toolkits/pmw

USE_REINPLACE= yes
USE_PYTHON= yes
NO_BUILD= yes

post-patch:
.for file in forg.py mini-forg.py
@${PERL} -pi -e "s,/usr/bin/python,${PYTHON_CMD},g" ${WRKSRC}/${file}
@${REINPLACE_CMD} -e "s,/usr/bin/python,${PYTHON_CMD},g" ${WRKSRC}/${file}
.endfor

do-install:
Expand Down
3 changes: 2 additions & 1 deletion net/fping/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ MASTER_SITES= ftp://ftp.stanford.edu/dept/networking/pub/fping/ \

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --bindir="${PREFIX}/sbin"
MAN8= fping.8

post-patch:
${PERL} -pi.fbsd -e 's/fping@/${MAINTAINER:S/@/\\@/g} or fping@/g' \
@${REINPLACE_CMD} -e 's/fping@/${MAINTAINER:S/@/\\@/g} or fping@/g' \
${WRKSRC}/fping.c

post-install:
Expand Down
3 changes: 2 additions & 1 deletion net/gnome-mud/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GTK= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"

post-patch:
@${PERL} -pi -e 's|CFLAGS -O -pipe -Wall|CFLAGS|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|CFLAGS -O -pipe -Wall|CFLAGS|g' ${WRKSRC}/configure

.include <bsd.port.mk>
3 changes: 2 additions & 1 deletion net/gnosamba/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ MASTER_SITES= http://linuxberg.ii.net/files/gnome/network/ \

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GNOME= yes
GNU_CONFIGURE= yes

post-patch:
@${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/src/*.c
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/src/*.c

.include <bsd.port.mk>
3 changes: 2 additions & 1 deletion net/gps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ MAINTAINER= ports@FreeBSD.org

BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet

USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
USE_GMAKE= yes

post-patch:
@${PERL} -pi -e "s,-Wall -O3,${CFLAGS},g" ${WRKSRC}/configure
@${REINPLACE_CMD} -e "s,-Wall -O3,${CFLAGS},g" ${WRKSRC}/configure

.if !defined(NOPORTDOCS)
post-install:
Expand Down
3 changes: 2 additions & 1 deletion net/hagelslag/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ MAINTAINER= ports@FreeBSD.org

BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend

USE_REINPLACE= yes
USE_GMAKE= yes
MAKEFILES= Makefile gui/Makefile src/Makefile
HS_DOCDIR= ${PREFIX}/share/doc/${PORTNAME}

post-patch:
.for mfile in ${MAKEFILES}
@ ${PERL} -pi -e 's#make -C#\$${MAKE} -C#' ${WRKSRC}/${mfile}
@ ${REINPLACE_CMD} -e 's#make -C#\$${MAKE} -C#' ${WRKSRC}/${mfile}
.endfor

post-install:
Expand Down
3 changes: 2 additions & 1 deletion net/kdetelnet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ MAINTAINER= ports@FreeBSD.org

BUILD_DEPENDS= msgfmt:${PORTSDIR}/devel/gettext

USE_REINPLACE= yes
USE_KDELIBS_VER=2
USE_GMAKE= yes
GNU_CONFIGURE= yes

pre-patch:
@${PERL} -pi -e 's|-lqt|-l${QTNAME}|g ; \
@${REINPLACE_CMD} -e 's|-lqt|-l${QTNAME}|g ; \
s|qt_libdir=NONE|qt_libdir=|g' ${WRKSRC}/configure

.include <bsd.port.mk>
3 changes: 2 additions & 1 deletion net/libfreenet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ MASTER_SITES= http://thalassocracy.org/libfreenet/

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes
USE_OPENSSL= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS= --includedir=${PREFIX}/include/libfreenet
INSTALLS_SHLIB= yes

post-patch:
@${PERL} -pi -e 's|-g -Wall|\@CFLAGS\@|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-g -Wall|\@CFLAGS\@|g' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>
6 changes: 4 additions & 2 deletions net/maradns/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ MASTER_SITES= http://www.maradns.org/download/ \

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes
REINPLACE_ARGS= -i ""
USE_BZIP2= yes
MAKE_ENV= FLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"

Expand All @@ -22,9 +24,9 @@ MAN5= mararc.5
MAN8= maradns.8 zoneserver.8

post-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${PERL} -pi -e \
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|/etc/mara|${PREFIX}/etc/mara|g'
@${FIND} ${WRKSRC} -name '*Makefile*' | ${XARGS} ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name '*Makefile*' | ${XARGS} ${REINPLACE_CMD} -e \
's|make|\$$\{MAKE\}|g ; \
s|^FLAGS =|#FLAGS =|g ; \
s|-lpthread|${PTHREAD_LIBS}|g'
Expand Down
3 changes: 2 additions & 1 deletion net/netscript/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ EXTRACT_SUFX= .tgz

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes
WANT_GTK= yes

.include <bsd.port.pre.mk>
Expand All @@ -29,7 +30,7 @@ ALL_TARGET= bsd
.endif

post-patch:
@${PERL} -pi -e "s,gtk-config,${GTK_CONFIG},g" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s,gtk-config,${GTK_CONFIG},g" ${WRKSRC}/Makefile

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/netscript ${PREFIX}/bin
Expand Down
4 changes: 3 additions & 1 deletion net/oproute/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ EXTRACT_SUFX= .tgz

MAINTAINER= ports@FreeBSD.org

USE_REINPLACE= yes

post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/Makefile

.include <bsd.port.mk>
Loading

0 comments on commit e28630e

Please sign in to comment.