summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ftp/downloader/Makefile7
-rw-r--r--ftp/ftpq/Makefile3
-rw-r--r--ftp/junglemonkey/Makefile9
-rw-r--r--ftp/libfxp/Makefile5
-rw-r--r--ftp/mget/Makefile4
-rw-r--r--ftp/muddleftpd/Makefile7
-rw-r--r--ftp/pavuk/Makefile7
7 files changed, 25 insertions, 17 deletions
diff --git a/ftp/downloader/Makefile b/ftp/downloader/Makefile
index f72abc6..5233385 100644
--- a/ftp/downloader/Makefile
+++ b/ftp/downloader/Makefile
@@ -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
diff --git a/ftp/ftpq/Makefile b/ftp/ftpq/Makefile
index f85ce20..6065920 100644
--- a/ftp/ftpq/Makefile
+++ b/ftp/ftpq/Makefile
@@ -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:
diff --git a/ftp/junglemonkey/Makefile b/ftp/junglemonkey/Makefile
index 8e366b4..18a6180 100644
--- a/ftp/junglemonkey/Makefile
+++ b/ftp/junglemonkey/Makefile
@@ -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>
diff --git a/ftp/libfxp/Makefile b/ftp/libfxp/Makefile
index 6fa900a..477f2cf 100644
--- a/ftp/libfxp/Makefile
+++ b/ftp/libfxp/Makefile
@@ -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>
diff --git a/ftp/mget/Makefile b/ftp/mget/Makefile
index ed66424..e126dd1 100644
--- a/ftp/mget/Makefile
+++ b/ftp/mget/Makefile
@@ -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:
diff --git a/ftp/muddleftpd/Makefile b/ftp/muddleftpd/Makefile
index bd051b7..4fd5ef7 100644
--- a/ftp/muddleftpd/Makefile
+++ b/ftp/muddleftpd/Makefile
@@ -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
diff --git a/ftp/pavuk/Makefile b/ftp/pavuk/Makefile
index 3e4287e..b603892 100644
--- a/ftp/pavuk/Makefile
+++ b/ftp/pavuk/Makefile
@@ -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
OpenPOWER on IntegriCloud