aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2002-05-05 02:12:38 +0800
committerpat <pat@FreeBSD.org>2002-05-05 02:12:38 +0800
commitaf4a475737e02654e7477acf5d28b61b0af99dbf (patch)
tree7341212848478658cb4a8f43fc3045cac408c25e
parent275954de320579a5c5fca7b8e49e21e23e3838d6 (diff)
downloadfreebsd-ports-gnome-af4a475737e02654e7477acf5d28b61b0af99dbf.tar.gz
freebsd-ports-gnome-af4a475737e02654e7477acf5d28b61b0af99dbf.tar.zst
freebsd-ports-gnome-af4a475737e02654e7477acf5d28b61b0af99dbf.zip
Make LOCALBASE, X11BASE safe
PR: 37084 Submitted by: maintainer
-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 a2d557dea273..1fb2887e7c61 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: