summaryrefslogtreecommitdiff
path: root/www/w3m/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 /www/w3m/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 'www/w3m/options.mk')
-rw-r--r--www/w3m/options.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/w3m/options.mk b/www/w3m/options.mk
index 11a40139788..0559573c5fe 100644
--- a/www/w3m/options.mk
+++ b/www/w3m/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.6 2007/10/15 15:44:52 obache Exp $
+# $NetBSD: options.mk,v 1.7 2008/04/12 22:43:14 jlam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.w3m
PKG_SUPPORTED_OPTIONS= inet6 w3m-lynx-key w3m-m17n w3m-unicode
@@ -53,6 +53,7 @@ CONFIGURE_ARGS+= --enable-keymap=lynx
CONFIGURE_ARGS+= --enable-keymap=w3m
.endif
+PLIST_VARS+= image
.if ${_W3M_USE_IMAGE} == "YES"
. for _imagelib in ${PKG_OPTIONS_GROUP.imagelib}
. if !empty(PKG_OPTIONS:M${_imagelib})
@@ -61,9 +62,8 @@ _W3M_IMAGELIB= ${_imagelib:C|^w3m-image-||}
. endfor
USE_X11= YES
CONFIGURE_ARGS+= --enable-image=x11 --with-imagelib=${_W3M_IMAGELIB:Q}
-PLIST_SUBST+= USE_IMAGE=''
+PLIST.image= yes
. include "../../graphics/${_W3M_IMAGELIB}/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-image
-PLIST_SUBST+= USE_IMAGE='@comment '
.endif