aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2002-05-23 08:32:04 +0800
committerpat <pat@FreeBSD.org>2002-05-23 08:32:04 +0800
commitccf69d9370f1b396c50c57421c2d6633769fc944 (patch)
tree37fc7529631cbcd2c3a85c29acc1e32a3a3b58e7 /textproc
parentd4a41cc316fff92f393d9f66a4121809b2ecbb51 (diff)
downloadfreebsd-ports-gnome-ccf69d9370f1b396c50c57421c2d6633769fc944.tar.gz
freebsd-ports-gnome-ccf69d9370f1b396c50c57421c2d6633769fc944.tar.zst
freebsd-ports-gnome-ccf69d9370f1b396c50c57421c2d6633769fc944.zip
Fix ports for building with -current without perl
PR: 38359 Submitted by: maintainer
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-rxp/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/textproc/py-rxp/Makefile b/textproc/py-rxp/Makefile
index cde6feba8727..16bf922c7eb9 100644
--- a/textproc/py-rxp/Makefile
+++ b/textproc/py-rxp/Makefile
@@ -22,8 +22,14 @@ USE_PYDISTUTILS= yes
EXAMPLESDIR= ${PREFIX}/share/examples/py-rxp
DOCSDIR= ${PREFIX}/share/doc/py-rxp
+.include <bsd.port.pre.mk>
+
post-patch:
+.if ${OSVERSION} < 500036
@${PERL} -pi -e 's/freebsd4/freebsd4","freebsd5/g' ${WRKSRC}/setup.py
+.else
+ @${SED} -i.orig -e 's/freebsd4/freebsd4","freebsd5/g' ${WRKSRC}/setup.py
+.endif
.if !defined(NOPORTDOCS)
post-install:
@@ -32,4 +38,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>