summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/xrobots/Makefile4
-rw-r--r--lang/tcl-manual/Makefile11
-rw-r--r--mail/mavbiff/Makefile3
-rw-r--r--net/freenet6/Makefile21
-rw-r--r--net/ipfw-graph/Makefile3
-rw-r--r--ports-mgmt/pkg_tree/Makefile4
-rw-r--r--sysutils/pkg_tree/Makefile4
7 files changed, 33 insertions, 17 deletions
diff --git a/games/xrobots/Makefile b/games/xrobots/Makefile
index 6a5195f..e7b976d 100644
--- a/games/xrobots/Makefile
+++ b/games/xrobots/Makefile
@@ -13,6 +13,7 @@ DISTNAME= ${PKGNAME}-ss-10.20
MAINTAINER= edwin@mavetju.org
+USE_REINPLACE= yes
USE_IMAKE= yes
WRKSRC= ${WRKDIR}/xrobots-1.0
MAN6= xrobots.6
@@ -21,6 +22,7 @@ post-install:
${INSTALL} -c -g games -m 664 ${FILESDIR}/xrobotscores ${PREFIX}/lib/X11
post-patch:
- ${PERL} -pi -e 's|__PREFIX__|${PREFIX}|g' ${WRKSRC}/xrobots.man ${WRKSRC}/Imakefile
+ ${REINPLACE_CMD} -e 's|__PREFIX__|${PREFIX}|g' \
+ ${WRKSRC}/xrobots.man ${WRKSRC}/Imakefile
.include <bsd.port.mk>
diff --git a/lang/tcl-manual/Makefile b/lang/tcl-manual/Makefile
index 9269533..6deaf24 100644
--- a/lang/tcl-manual/Makefile
+++ b/lang/tcl-manual/Makefile
@@ -14,18 +14,21 @@ DISTFILES= tcl8.3.4.html.tar.gz tcl8.4a3.html.tar.gz
MAINTAINER= edwin@mavetju.org
+USE_REINPLACE= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
post-patch:
@${RM} ${WRKDIR}/tcl8.3.4/html/UserCmd/*.orig
@${RM} ${WRKDIR}/tcl8.4a3/html/UserCmd/*.orig
- @${PERL} -pi -e 's|tcl\.h|tcl8.3/tcl.h|g' \
+ @${REINPLACE_CMD} -e 's|tcl\.h|tcl8.3/tcl.h|g' \
${WRKDIR}/tcl8.3.4/html/TclLib/*
- @${PERL} -pi -e 's|tk\.h|tk8.3/tk.h|g' ${WRKDIR}/tcl8.3.4/html/TkLib/*
- @${PERL} -pi -e 's|tcl\.h|tcl8.4/tcl.h|g' \
+ @${REINPLACE_CMD} -e 's|tk\.h|tk8.3/tk.h|g' \
+ ${WRKDIR}/tcl8.3.4/html/TkLib/*
+ @${REINPLACE_CMD} -e 's|tcl\.h|tcl8.4/tcl.h|g' \
${WRKDIR}/tcl8.4a3/html/TclLib/*
- @${PERL} -pi -e 's|tk\.h|tk8.4/tk.h|g' ${WRKDIR}/tcl8.4a3/html/TkLib/*
+ @${REINPLACE_CMD} -e 's|tk\.h|tk8.4/tk.h|g' \
+ ${WRKDIR}/tcl8.4a3/html/TkLib/*
do-install:
${MKDIR} ${PREFIX}/share/doc/tcl83
diff --git a/mail/mavbiff/Makefile b/mail/mavbiff/Makefile
index fd0742a..8655c53 100644
--- a/mail/mavbiff/Makefile
+++ b/mail/mavbiff/Makefile
@@ -13,11 +13,12 @@ MASTER_SITES= http://www.mavetju.org/download/
MAINTAINER= edwin@mavetju.org
USE_GTK= yes
+USE_REINPLACE= yes
MAN1= mavbiff.1
post-patch:
- @${PERL} -pi -e "s|__GTK_CONFIG__|${GTK_CONFIG}|; \
+ @${REINPLACE_CMD} -e "s|__GTK_CONFIG__|${GTK_CONFIG}|; \
s|__INSTALL_DATA__|${INSTALL_DATA}|; \
s|__INSTALL_PROG__|${INSTALL_PROGRAM}|" ${WRKSRC}/Makefile
diff --git a/net/freenet6/Makefile b/net/freenet6/Makefile
index fd21fd1..72ec3c3 100644
--- a/net/freenet6/Makefile
+++ b/net/freenet6/Makefile
@@ -13,6 +13,8 @@ EXTRACT_SUFX= .tgz
MAINTAINER= edwin@mavetju.org
+USE_REINPLACE= yes
+
MAN8= tspc.8
MAN5= tspc.conf.5
@@ -58,16 +60,19 @@ post-install:
@${CAT} ${PKGMESSAGE}
post-patch:
- @${MV} ${WRKSRC}/src/tspc.c ${WRKSRC}/src/tspc.c.orig
- @${SED} -e "s|tspc.conf|${PREFIX}/etc/tspc.conf|" < ${WRKSRC}/src/tspc.c.orig > ${WRKSRC}/src/tspc.c
+ @${REINPLACE_CMD} -e "s|tspc.conf|${PREFIX}/etc/tspc.conf|" \
+ ${WRKSRC}/src/tspc.c
+
+ @${CP} ${FILESDIR}/freenet6.sh.in ${WRKSRC}/freenet6.sh
+ @${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" ${WRKSRC}/freenet6.sh
- @${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${FILESDIR}/freenet6.sh.in > ${WRKSRC}/freenet6.sh
- @${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${FILESDIR}/pkg-message.in > ${WRKSRC}/pkg-message
+ @${CP} ${FILESDIR}/pkg-message.in ${WRKSRC}/pkg-message
+ @${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" ${WRKSRC}/pkg-message
- @${MV} ${WRKSRC}/man/man8/tspc.8 ${WRKSRC}/man/man8/tspc.8.orig
- @${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${WRKSRC}/man/man8/tspc.8.orig > ${WRKSRC}/man/man8/tspc.8
+ @${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" \
+ ${WRKSRC}/man/man8/tspc.8
- @${MV} ${WRKSRC}/man/man5/tspc.conf.5 ${WRKSRC}/man/man5/tspc.conf.5.orig
- @${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${WRKSRC}/man/man5/tspc.conf.5.orig > ${WRKSRC}/man/man5/tspc.conf.5
+ @${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" \
+ ${WRKSRC}/man/man5/tspc.conf.5
.include <bsd.port.post.mk>
diff --git a/net/ipfw-graph/Makefile b/net/ipfw-graph/Makefile
index 90fb357..f6093c5 100644
--- a/net/ipfw-graph/Makefile
+++ b/net/ipfw-graph/Makefile
@@ -12,12 +12,13 @@ MASTER_SITES= http://www.mavetju.org/download/
MAINTAINER= edwin@mavetju.org
+USE_REINPLACE= yes
USE_GTK= yes
MAKE_ENV+= MANPREFIX="${MANPREFIX}"
MAN8= ipfw-al.8 ipfw-graph.8
pre-patch:
- @${PERL} -pi -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/ipfw-graph.h
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/ipfw-graph.h
.include <bsd.port.mk>
diff --git a/ports-mgmt/pkg_tree/Makefile b/ports-mgmt/pkg_tree/Makefile
index eac9757..75eb6a6 100644
--- a/ports-mgmt/pkg_tree/Makefile
+++ b/ports-mgmt/pkg_tree/Makefile
@@ -12,10 +12,12 @@ MASTER_SITES= http://www.mavetju.org/download/
MAINTAINER= edwin@mavetju.org
+USE_REINPLACE= yes
+
MAN7= pkg_tree.7
post-patch:
- @${PERL} -pi -e 's|__PREFIX__|${PREFIX}|g ; \
+ @${REINPLACE_CMD} -e 's|__PREFIX__|${PREFIX}|g ; \
s|__INSTALL_MAN__|${INSTALL_MAN}|g ; \
s|__INSTALL_SCRIPT__|${INSTALL_SCRIPT}|g' ${WRKSRC}/Makefile
diff --git a/sysutils/pkg_tree/Makefile b/sysutils/pkg_tree/Makefile
index eac9757..75eb6a6 100644
--- a/sysutils/pkg_tree/Makefile
+++ b/sysutils/pkg_tree/Makefile
@@ -12,10 +12,12 @@ MASTER_SITES= http://www.mavetju.org/download/
MAINTAINER= edwin@mavetju.org
+USE_REINPLACE= yes
+
MAN7= pkg_tree.7
post-patch:
- @${PERL} -pi -e 's|__PREFIX__|${PREFIX}|g ; \
+ @${REINPLACE_CMD} -e 's|__PREFIX__|${PREFIX}|g ; \
s|__INSTALL_MAN__|${INSTALL_MAN}|g ; \
s|__INSTALL_SCRIPT__|${INSTALL_SCRIPT}|g' ${WRKSRC}/Makefile
OpenPOWER on IntegriCloud