aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-paint
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 /graphics/py-paint
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 'graphics/py-paint')
-rw-r--r--graphics/py-paint/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/py-paint/Makefile b/graphics/py-paint/Makefile
index 341a76721755..24e1afc96d67 100644
--- a/graphics/py-paint/Makefile
+++ b/graphics/py-paint/Makefile
@@ -32,8 +32,13 @@ EXAMPLES= test_bar.py test_paint.py testpie.py
.include <bsd.port.pre.mk>
post-patch:
+.if ${OSVERSION} < 500036
${PERL} -pi -e 's@^(.*libraries.*)$$@\1include_dirs=${INC_DIRS},library_dirs=${LIB_DIRS},@g' \
${WRKSRC}/setup.py
+.else
+ ${SED} -i.orig -e 's@^\(.*libraries.*\)$$@\1include_dirs=${INC_DIRS},library_dirs=${LIB_DIRS},@g' \
+ ${WRKSRC}/setup.py
+.endif
.if !defined(NOPORTDOCS)
post-install: