aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-gd
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2002-06-25 19:19:54 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2002-06-25 19:19:54 +0000
commit33085970800ef45d6ab8b05aecb75db75fe5de8f (patch)
tree55e43b60dc76acef73aad39367c657f8b3741f59 /graphics/py-gd
parenta154163cfc3fbed5b12667877e6d963d6d186fa3 (diff)
downloadports-33085970800ef45d6ab8b05aecb75db75fe5de8f.tar.gz
ports-33085970800ef45d6ab8b05aecb75db75fe5de8f.zip
Notes
Diffstat (limited to 'graphics/py-gd')
-rw-r--r--graphics/py-gd/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/graphics/py-gd/Makefile b/graphics/py-gd/Makefile
index 055717ac67bc..a57873efa5c5 100644
--- a/graphics/py-gd/Makefile
+++ b/graphics/py-gd/Makefile
@@ -16,6 +16,7 @@ MAINTAINER= perky@FreeBSD.org
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
USE_PYTHON= yes
+USE_REINPLACE= yes
PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
EXAMPLE_DIR=${EXAMPLE_DIR:S,^${PREFIX}/,,g}
EXAMPLE_DIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
@@ -25,10 +26,11 @@ USE_XPM= yes
.endif
post-patch:
- ${PERL} -pi -e 's,^(gd.*)$$,\1 -I${LOCALBASE}/include/gd -L${LOCALBASE}/lib,g; s,-lttf,,g; s,/usr/X11R6,${X11BASE},g;' \
- ${WRKSRC}/Setup
+ ${REINPLACE_CMD} -e 's,^\(gd.*\)$$,\1 -I${LOCALBASE}/include/gd\
+ -L${LOCALBASE}/lib,g' -e 's,-lttf,,g' \
+ -e 's,/usr/X11R6,${X11BASE},g' ${WRKSRC}/Setup
.if defined(WITHOUT_X11)
- ${PERL} -pi -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup
+ ${REINPLACE_CMD} -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup
.endif
pre-build: