aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-gd
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-10-16 05:03:23 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-10-16 05:03:23 +0000
commit039b799659e2fb8dc9610f71b2559a77582b419b (patch)
treeedc621f99d1fa016164ca4ea35817660f9e3afc4 /graphics/py-gd
parentbdcdb54c36ed8b9fe5f1dfe8cd7a89b68e88c3d7 (diff)
downloadports-039b799659e2fb8dc9610f71b2559a77582b419b.tar.gz
ports-039b799659e2fb8dc9610f71b2559a77582b419b.zip
Enable WITHOUT_X11 knob.
Suggested by: Neil Darlow <neil@darlow.co.uk>
Notes
Notes: svn path=/head/; revision=91391
Diffstat (limited to 'graphics/py-gd')
-rw-r--r--graphics/py-gd/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/py-gd/Makefile b/graphics/py-gd/Makefile
index cd329e7d44d3..f4410588afc5 100644
--- a/graphics/py-gd/Makefile
+++ b/graphics/py-gd/Makefile
@@ -16,7 +16,9 @@ COMMENT= Python interface to the GD library
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
+.if defined(WITHOUT_X11)
USE_XPM= yes
+.endif
USE_REINPLACE= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
@@ -29,6 +31,10 @@ post-patch:
-e 's,/usr/X11R6,${X11BASE},g' \
-e 's,/usr/include/X11,${LOCALBASE}/include,g' \
${WRKSRC}/${PYSETUP}
+.if defined(WITHOUT_X11)
+ ${REINPLACE_CMD} -e 's/"X11", "Xpm",//' \
+ -e 's/"ttf", "freetype",//' ${WRKSRC}/${PYSETUP}
+.endif
post-install:
.if !defined(NOPORTDOCS)