summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2002-05-23 00:32:04 +0000
committerpat <pat@FreeBSD.org>2002-05-23 00:32:04 +0000
commitccf69d9370f1b396c50c57421c2d6633769fc944 (patch)
tree37fc7529631cbcd2c3a85c29acc1e32a3a3b58e7 /graphics
parentd4a41cc316fff92f393d9f66a4121809b2ecbb51 (diff)
downloadFreeBSD-ports-ccf69d9370f1b396c50c57421c2d6633769fc944.zip
FreeBSD-ports-ccf69d9370f1b396c50c57421c2d6633769fc944.tar.gz
Fix ports for building with -current without perl
PR: 38359 Submitted by: maintainer
Diffstat (limited to 'graphics')
-rw-r--r--graphics/graphviz/Makefile7
-rw-r--r--graphics/py-gd/Makefile13
-rw-r--r--graphics/py-paint/Makefile5
3 files changed, 18 insertions, 7 deletions
diff --git a/graphics/graphviz/Makefile b/graphics/graphviz/Makefile
index 923d0e9..05fa9fe 100644
--- a/graphics/graphviz/Makefile
+++ b/graphics/graphviz/Makefile
@@ -32,6 +32,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.3 -I
ACLOCAL=${LOCALBASE}/bin/aclocal14
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= ${PREFIX}/lib/graphviz
+MAKE_ENV= EXPR_COMPAT=yes
MAN1= acyclic.1 ccomps.1 colorize.1 dot.1 dotty.1 gc.1 gpr.1 \
lefty.1 neato.1 nop.1 prune.1 sccmap.1 tred.1 \
@@ -49,12 +50,6 @@ LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
CONFIGURE_ARGS= --with-iconvlibdir=${LOCALBASE}/lib
.endif
-post-patch:
-.if ${OSVERSION} >= 500032
- @${PERL} -pi.orig -e 's|expr |expr -- |' ${WRKSRC}/libtool
-.endif
-
-
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
diff --git a/graphics/py-gd/Makefile b/graphics/py-gd/Makefile
index 1fb2887..cd248ee 100644
--- a/graphics/py-gd/Makefile
+++ b/graphics/py-gd/Makefile
@@ -24,11 +24,22 @@ EXAMPLE_DIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
USE_XPM= yes
.endif
+.include <bsd.port.pre.mk>
+
post-patch:
+.if ${OSVERSION} < 500036
${PERL} -pi -e 's,^(gd.*)$$,\1 -I${LOCALBASE}/include/gd -L${LOCALBASE}/lib,g; s,-lttf,,g; s,/usr/X11R6,${X11BASE},g;' \
${WRKSRC}/Setup
+.else
+ ${SED} -i.orig -e 's,^\(gd.*\)$$,\1 -I${LOCALBASE}/include/gd -L${LOCALBASE}/lib,g' \
+ -e 's,-lttf,,g' -e 's,/usr/X11R6,${X11BASE},g' ${WRKSRC}/Setup
+.endif
.if defined(WITHOUT_X11)
+.if ${OSVERSION} < 500036
${PERL} -pi -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup
+.else
+ ${SED} -i "" -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup
+.endif
.endif
pre-build:
@@ -40,4 +51,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/gddemo.py ${EXAMPLE_DIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/py-paint/Makefile b/graphics/py-paint/Makefile
index 341a767..24e1afc 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:
OpenPOWER on IntegriCloud