Replace ${PERL} with ${REINPLACE_CMD}

PR:		39594
Submitted by:	Oliver Braun <obraun@informatik.unibw-muenchen.de>
This commit is contained in:
Ying-Chieh Liao 2002-06-21 16:13:17 +00:00
parent 01c4a820a3
commit 930e3a6637
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61683
7 changed files with 25 additions and 17 deletions

View file

@ -20,6 +20,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
USE_REINPLACE= yes
USE_GTK= yes
USE_ESOUND= yes
USE_GMAKE= yes
@ -37,11 +38,11 @@ PORTDOCS= FAQ FAQ.de FAQ.es FAQ.fr FAQ.gr INSTALL INSTALL.de \
INSTALL.pt_BR LICENSE NAMES THANKS TROUBLES
post-patch:
@${PERL} -pi -e 's|CXXFLAGS="-O."|CXXFLAGS=\$$CXXFLAGS|g ; \
@${REINPLACE_CMD} -e 's|CXXFLAGS="-O."|CXXFLAGS=\$$CXXFLAGS|g ; \
s|OS_CXXFLAGS="-pthread"|OS_CXXFLAGS="${PTHREAD_CFLAGS}"|g ; \
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${PERL} -pi -e 's| DOC||g' ${WRKSRC}/Makefile.in
@${PERL} -pi -e 's|-not|\\!|g' ${WRKSRC}/share/Makefile.in
@${REINPLACE_CMD} -e 's| DOC||g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-not|\\!|g' ${WRKSRC}/share/Makefile.in
post-install:
${INSTALL_MAN} ${WRKSRC}/DOC/nt.1 ${MANPREFIX}/man/man1

View file

@ -14,6 +14,7 @@ MASTER_SITES= http://www.tranchant.freeserve.co.uk/software/
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
MAN1= ftpq.1
@ -23,7 +24,7 @@ PLIST_SUB+= SPOOLDIR=${SPOOLDIR}
SPOOLDIR?= /var/spool/ftpq
post-patch:
@ ${PERL} -pi -e 's#%%SPOOLDIR%%#${SPOOLDIR}#' \
@ ${REINPLACE_CMD} -e 's#%%SPOOLDIR%%#${SPOOLDIR}#' \
${WRKSRC}/Makefile.in ${WRKSRC}/src/ftpq.h
post-install:

View file

@ -16,6 +16,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gnet.0:${PORTSDIR}/net/gnet
USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GNOME= yes
USE_GMAKE= yes
@ -27,11 +28,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
MAN1= jm.1 jmlite.1 mtprendezvous.1
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|/gnome/help/|/help/|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'
@${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \
's|\$$(datadir)/gnome/|\$$(datadir)/|g ; \
s|\$$(datadir)/locale|\$$(prefix)/share/locale|g'
.include <bsd.port.mk>

View file

@ -13,17 +13,18 @@ MASTER_SITES= http://millweed.com/projects/libfxp/
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
USE_GMAKE= yes
CFLAGS+= -I. -Ilibmillweed
post-patch:
.for file in Makefile libmillweed/Makefile
@${PERL} -pi -e "s,^CC,#CC,g ; \
@${REINPLACE_CMD} -e "s,^CC,#CC,g ; \
s,^CFLAGS,#CFLAGS,g ; \
s,^PREFIX,#PREFIX,g" ${WRKSRC}/${file}
.endfor
@(cd ${WRKSRC} ; \
${GREP} -l -R malloc.h * | 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

@ -19,8 +19,10 @@ CFLAGS+= -DHAS_HERROR -DHAVE_GETOPT_LONG -DHAVE_INET_NTOP -DHAVE_IPV6 \
-I${LOCALBASE}/include ${PTHREAD_CFLAGS:S/"//g}
LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt ${PTHREAD_LIBS:S/"//g}
USE_REINPLACE= yes
pre-patch:
@find ${WRKSRC} -name '*.[ch]' | xargs ${PERL} -pi -e \
@find ${WRKSRC} -name '*.[ch]' | xargs ${REINPLACE_CMD} -e \
's|#include <malloc.h>||g'
do-build:

View file

@ -14,15 +14,16 @@ DISTNAME= ${PORTNAME}.${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
MAN1= muddleftpd.1 ftpwho.1 mudpasswd.1
post-patch:
@${PERL} -pi -e 's|^NEWMALLOC|#NEWMALLOC|g' ${WRKSRC}/Makefile.defs
@${PERL} -pi -e 's|"/etc|"${PREFIX}/etc|g' ${WRKSRC}/defaults.h
@${PERL} -pi -e 's|#include <malloc.h>||g' ${WRKSRC}/src/ftpd.h
@${REINPLACE_CMD} -e 's|^NEWMALLOC|#NEWMALLOC|g' ${WRKSRC}/Makefile.defs
@${REINPLACE_CMD} -e 's|"/etc|"${PREFIX}/etc|g' ${WRKSRC}/defaults.h
@${REINPLACE_CMD} -e 's|#include <malloc.h>||g' ${WRKSRC}/src/ftpd.h
pre-configure:
@${CHMOD} -f u+x ${WRKSRC}/configure

View file

@ -19,6 +19,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext
USE_REINPLACE= yes
WANT_GTK= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
@ -39,11 +40,11 @@ CONFIGURE_ARGS+= --disable-gtk
.endif
pre-patch:
@${PERL} -pi -e 's|-pthread -DHAVE_MT|${PTHREAD_CFLAGS} -DHAVE_MT|g ; \
@${REINPLACE_CMD} -e 's|-pthread -DHAVE_MT|${PTHREAD_CFLAGS} -DHAVE_MT|g ; \
s|-pthread|${PTHREAD_LIBS}|g ; \
s|-lpthreads|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
's|\$$\(datadir\)/icons|\$$\(pkgdatadir\)/icons|g'
@find ${WRKSRC} -name "Makefile.in" | xargs ${REINPLACE_CMD} -e \
's|\$$(datadir)/icons|\$$(pkgdatadir)/icons|g'
post-install:
${INSTALL_DATA} ${WRKSRC}/pavuk_authinfo.sample ${PREFIX}/etc