aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-05-04 18:12:38 +0000
committerPatrick Li <pat@FreeBSD.org>2002-05-04 18:12:38 +0000
commit8eeb2ef8578933ab2b72bbb1b244264a861e7049 (patch)
treed6937a6c449c48fc4f9ca22efb0fd8a35ff5fd75 /graphics
parentc52d7a91bfc358d2b5f4d7a32e05f18dd50786b3 (diff)
downloadports-8eeb2ef8578933ab2b72bbb1b244264a861e7049.tar.gz
ports-8eeb2ef8578933ab2b72bbb1b244264a861e7049.zip
Notes
Diffstat (limited to 'graphics')
-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: