Enable WITHOUT_X11 knob.

Suggested by:	Neil Darlow <neil@darlow.co.uk>
This commit is contained in:
Hye-Shik Chang 2003-10-16 05:03:23 +00:00
parent bdcdb54c36
commit 039b799659
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=91391

View File

@ -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)