summaryrefslogtreecommitdiffstats
path: root/graphics/py-gd
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2002-05-04 18:12:38 +0000
committerpat <pat@FreeBSD.org>2002-05-04 18:12:38 +0000
commitaf4a475737e02654e7477acf5d28b61b0af99dbf (patch)
tree7341212848478658cb4a8f43fc3045cac408c25e /graphics/py-gd
parent275954de320579a5c5fca7b8e49e21e23e3838d6 (diff)
downloadFreeBSD-ports-af4a475737e02654e7477acf5d28b61b0af99dbf.zip
FreeBSD-ports-af4a475737e02654e7477acf5d28b61b0af99dbf.tar.gz
Make LOCALBASE, X11BASE safe
PR: 37084 Submitted by: maintainer
Diffstat (limited to 'graphics/py-gd')
-rw-r--r--graphics/py-gd/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/graphics/py-gd/Makefile b/graphics/py-gd/Makefile
index a2d557d..1fb2887 100644
--- a/graphics/py-gd/Makefile
+++ b/graphics/py-gd/Makefile
@@ -16,7 +16,6 @@ MAINTAINER= perky@fallin.lv
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
USE_PYTHON= yes
-EXCMD= /usr/bin/ex
PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
EXAMPLE_DIR=${EXAMPLE_DIR:S,^${PREFIX}/,,g}
EXAMPLE_DIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
@@ -26,10 +25,10 @@ USE_XPM= yes
.endif
post-patch:
- ${EXCMD} -c 's,^\(gd.*\)$$,\1 -I${LOCALBASE}/include/gd,g|wq!' ${WRKSRC}/Setup
- ${EXCMD} -c 's,-lttf,,g|wq!' ${WRKSRC}/Setup
+ ${PERL} -pi -e 's,^(gd.*)$$,\1 -I${LOCALBASE}/include/gd -L${LOCALBASE}/lib,g; s,-lttf,,g; s,/usr/X11R6,${X11BASE},g;' \
+ ${WRKSRC}/Setup
.if defined(WITHOUT_X11)
- ${EXCMD} -c 's,-lX11 -lXpm,,g|wq!' ${WRKSRC}/Setup
+ ${PERL} -pi -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup
.endif
pre-build:
OpenPOWER on IntegriCloud