summaryrefslogtreecommitdiff
path: root/lang/elk/options.mk
diff options
context:
space:
mode:
authorjlam <jlam>2008-04-12 22:42:57 +0000
committerjlam <jlam>2008-04-12 22:42:57 +0000
commit84db467ec7c8386066718011f8d47775d5608811 (patch)
treefdd67c81079412bf94013749a954125434a9baca /lang/elk/options.mk
parent7082f8c2044621c8641f3c82a2da95c2d442048c (diff)
downloadpkgsrc-84db467ec7c8386066718011f8d47775d5608811.tar.gz
Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
Diffstat (limited to 'lang/elk/options.mk')
-rw-r--r--lang/elk/options.mk20
1 files changed, 8 insertions, 12 deletions
diff --git a/lang/elk/options.mk b/lang/elk/options.mk
index a0f155fe8de..9da6e4d7724 100644
--- a/lang/elk/options.mk
+++ b/lang/elk/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2007/08/17 22:27:15 joerg Exp $
+# $NetBSD: options.mk,v 1.3 2008/04/12 22:43:02 jlam Exp $
# Global and legacy options
@@ -8,28 +8,24 @@ PKG_SUGGESTED_OPTIONS=
.include "../../mk/bsd.options.mk"
+PLIST_VARS+= x11 xaw motif
+
###
### x11 support
###
.if !empty(PKG_OPTIONS:Mxaw) || !empty(PKG_OPTIONS:Mmotif)
-PLIST_SUBST+= WITHX11=""
+PLIST.x11= yes
. if !empty(PKG_OPTIONS:Mxaw)
-PLIST_SUBST+= WITHXAW=""
-ELK_AWK="yes"
+PLIST.xaw= yes
+CONFIGURE_ENV+= WITH_XAW="yes"
. include "../../mk/xaw.buildlink3.mk"
. else
-PLIST_SUBST+= WITHXAW="@comment "
-ELK_AWK="no"
+CONFIGURE_ENV+= WITH_XAW="no"
. endif
. if !empty(PKG_OPTIONS:Mmotif)
. include "../../mk/motif.buildlink3.mk"
-PLIST_SUBST+= WITHMOTIF=""
-. else
-PLIST_SUBST+= WITHMOTIF="@comment "
+PLIST.motif= yes
. endif
.else
CONFIGURE_ARGS+= --without-x
-PLIST_SUBST+= WITHMOTIF="@comment "
-PLIST_SUBST+= WITHX11="@comment "
-PLIST_SUBST+= WITHXAW="@comment "
.endif