aboutsummaryrefslogtreecommitdiffstats
path: root/dns
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 /dns
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 'dns')
-rw-r--r--dns/py-adns/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/dns/py-adns/Makefile b/dns/py-adns/Makefile
index b741415a3123..83e40776422b 100644
--- a/dns/py-adns/Makefile
+++ b/dns/py-adns/Makefile
@@ -20,9 +20,17 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
+.include <bsd.port.pre.mk>
+
post-patch:
+.if ${OSVERSION} < 500036
@${PERL} -pi -e 's|^(include_dirs = ).*$$|\1\["${LOCALBASE}/include"\]|g; \
s|^(library_dirs = ).*$$|\1\["${LOCALBASE}/lib"\]|g' \
${WRKSRC}/setup.py
+.else
+ @${SED} -i.orig -e 's|^\(include_dirs = \).*$$|\1\["${LOCALBASE}/include"\]|g' \
+ -e 's|^\(library_dirs = \).*$$|\1\["${LOCALBASE}/lib"\]|g' \
+ ${WRKSRC}/setup.py
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>