summaryrefslogtreecommitdiff
path: root/graphics/libggi
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-12 22:42:57 +0000
committerjlam <jlam@pkgsrc.org>2008-04-12 22:42:57 +0000
commit841dfa0e7aaa6a0f0cce2901291d1d938dd0fc0a (patch)
treefdd67c81079412bf94013749a954125434a9baca /graphics/libggi
parent6874584eae20f517f70816571f6d4ac696db16b3 (diff)
downloadpkgsrc-841dfa0e7aaa6a0f0cce2901291d1d938dd0fc0a.tar.gz
Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
Diffstat (limited to 'graphics/libggi')
-rw-r--r--graphics/libggi/Makefile22
-rw-r--r--graphics/libggi/PLIST10
2 files changed, 14 insertions, 18 deletions
diff --git a/graphics/libggi/Makefile b/graphics/libggi/Makefile
index c568beaa7ff..17a8b449a22 100644
--- a/graphics/libggi/Makefile
+++ b/graphics/libggi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2007/02/04 15:26:34 joerg Exp $
+# $NetBSD: Makefile,v 1.44 2008/04/12 22:43:01 jlam Exp $
#
DISTNAME= libggi-2.1.1.src
@@ -27,20 +27,18 @@ CONF_FILES= ${EGDIR}/libggi.conf ${PKG_SYSCONFDIR}/libggi.conf
.include "../../mk/bsd.prefs.mk"
+PLIST_VARS+= libvgl terminfo xf86dga
+
.if ${OPSYS} == "NetBSD"
-.if !empty(OS_VERSION:M1.[56].*)
-PLIST_SUBST+= COND_TERMINFO="@comment "
-.else
-PLIST_SUBST+= COND_TERMINFO=""
-.endif
+. if empty(OS_VERSION:M1.[56].*)
+PLIST.terminfo= yes
+. endif
.else
-PLIST_SUBST+= COND_TERMINFO=""
+PLIST.terminfo= yes
.endif
.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD"
-PLIST_SUBST+= COND_LIBVGL=""
-.else
-PLIST_SUBST+= COND_LIBVGL="@comment "
+PLIST.libvgl= yes
.endif
.if ${X11_TYPE} == "modular"
@@ -48,9 +46,7 @@ PLIST_SUBST+= COND_LIBVGL="@comment "
.include "../../x11/libXxf86vm/buildlink3.mk"
PLIST_SUBST+= COND_XF86DGA=""
.elif exists(${X11BASE}/include/X11/extensions/xf86dga.h)
-PLIST_SUBST+= COND_XF86DGA=""
-.else
-PLIST_SUBST+= COND_XF86DGA="@comment "
+PLIST.xf86dga= yes
.endif
BUILDLINK_DEPMETHOD.libXt?= build
diff --git a/graphics/libggi/PLIST b/graphics/libggi/PLIST
index 2a57f4e6284..339bd60e306 100644
--- a/graphics/libggi/PLIST
+++ b/graphics/libggi/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.13 2006/04/20 16:28:54 joerg Exp $
+@comment $NetBSD: PLIST,v 1.14 2008/04/12 22:43:01 jlam Exp $
bin/cube3d
bin/ggiteleserver
bin/monitest
@@ -75,13 +75,13 @@ lib/ggi/display/multi.la
lib/ggi/display/palemu.la
lib/ggi/display/sub.la
lib/ggi/display/tele.la
-${COND_TERMINFO}lib/ggi/display/terminfo.la
+${PLIST.terminfo}lib/ggi/display/terminfo.la
lib/ggi/display/tile.la
lib/ggi/display/trueemu.la
-${COND_LIBVGL}lib/ggi/display/vgl.la
-${COND_XF86DGA}lib/ggi/display/xf86dga.la
+${PLIST.libvgl}lib/ggi/display/vgl.la
+${PLIST.xf86dga}lib/ggi/display/xf86dga.la
lib/ggi/helper/helper_x_dbe.la
-${COND_XF86DGA}lib/ggi/helper/helper_x_dga.la
+${PLIST.xf86dga}lib/ggi/helper/helper_x_dga.la
lib/ggi/helper/helper_x_evi.la
lib/ggi/helper/helper_x_shm.la
lib/ggi/helper/helper_x_vidmode.la