aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gd2/Makefile
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>2000-02-03 11:06:38 +0800
committerbillf <billf@FreeBSD.org>2000-02-03 11:06:38 +0800
commit912b13cf2a0bb4cbf5691c8edba260b049e42cf5 (patch)
tree6a620dd1e8c447f248ca5319b736a251e2a7faf6 /graphics/gd2/Makefile
parent3940b50f940207365b570b6918def649fe1375c3 (diff)
downloadfreebsd-ports-gnome-912b13cf2a0bb4cbf5691c8edba260b049e42cf5.tar.gz
freebsd-ports-gnome-912b13cf2a0bb4cbf5691c8edba260b049e42cf5.tar.zst
freebsd-ports-gnome-912b13cf2a0bb4cbf5691c8edba260b049e42cf5.zip
-DWANT_X11 is now required to build this port with X support. You no longer
have to install X in order to have a decent web server.
Diffstat (limited to 'graphics/gd2/Makefile')
-rw-r--r--graphics/gd2/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/graphics/gd2/Makefile b/graphics/gd2/Makefile
index e521758396ef..429848e4388a 100644
--- a/graphics/gd2/Makefile
+++ b/graphics/gd2/Makefile
@@ -13,11 +13,19 @@ MASTER_SITES= http://www.boutell.com/gd/http/ \
MAINTAINER= billf@FreeBSD.org
-LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png \
- ttf.4:${PORTSDIR}/print/freetype \
+LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png
+.if defined(WANT_X11)
+LIB_DEPENDS+= ttf.4:${PORTSDIR}/print/freetype \
Xpm.4:${PORTSDIR}/graphics/xpm
USE_XLIB= YES
+.endif
+
+pre-fetch:
+.if !defined(WANT_X11)
+ @${ECHO} -n "If you want to compile in X support use "
+ @${ECHO} "'make -DWANT_X11' instead"
+.endif
pre-install:
${MKDIR} ${PREFIX}/include/gd