aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-10-16 13:03:23 +0800
committerperky <perky@FreeBSD.org>2003-10-16 13:03:23 +0800
commit8f84c7d04d5cf427cf09f65c3137423c4f013784 (patch)
tree9868a95067df26ab4be36310735cffbea815c1a2 /graphics
parent795c8ad663201d993896c6b3270f60cdd3f9d66d (diff)
downloadfreebsd-ports-gnome-8f84c7d04d5cf427cf09f65c3137423c4f013784.tar.gz
freebsd-ports-gnome-8f84c7d04d5cf427cf09f65c3137423c4f013784.tar.zst
freebsd-ports-gnome-8f84c7d04d5cf427cf09f65c3137423c4f013784.zip
Enable WITHOUT_X11 knob.
Suggested by: Neil Darlow <neil@darlow.co.uk>
Diffstat (limited to 'graphics')
-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)