summaryrefslogtreecommitdiff
path: root/textproc/rfcutil/options.mk
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2009-01-04 15:37:07 +0000
committerhubertf <hubertf@pkgsrc.org>2009-01-04 15:37:07 +0000
commit11dd3b388444153ea5609d738c43f000ea0f0513 (patch)
tree0ce7b2dfa214767c2c344c0bce4b143759ad85c8 /textproc/rfcutil/options.mk
parentc3a98738dd3e7490611232bac9c0dc9d47b68239 (diff)
downloadpkgsrc-11dd3b388444153ea5609d738c43f000ea0f0513.tar.gz
Add support for the options framework
Enable support for w3m and lynx Add support for links Default to links, as w3m doesn't build on Mac OS X
Diffstat (limited to 'textproc/rfcutil/options.mk')
-rw-r--r--textproc/rfcutil/options.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/textproc/rfcutil/options.mk b/textproc/rfcutil/options.mk
new file mode 100644
index 00000000000..3931cf3ac0d
--- /dev/null
+++ b/textproc/rfcutil/options.mk
@@ -0,0 +1,26 @@
+# $NetBSD: options.mk,v 1.1 2009/01/04 15:37:07 hubertf Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.rfcutil
+PKG_OPTIONS_OPTIONAL_GROUPS= rfcutil-browser
+PKG_OPTIONS_GROUP.rfcutil-browser= links lynx w3m
+PKG_SUGGESTED_OPTIONS= links
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mw3m)
+DEPENDS+= w3m-[0-9]*:../../www/w3m
+RFCVIEWER= w3m lynx
+RFCDUMPOPT= -dump
+.endif
+
+.if !empty(PKG_OPTIONS:Mlynx)
+DEPENDS+= lynx-[0-9]*:../../www/lynx
+RFCVIEWER= lynx w3m
+RFCDUMPOPT= -dump
+.endif
+
+.if !empty(PKG_OPTIONS:Mlinks)
+DEPENDS+= links-[0-9]*:../../www/links
+RFCVIEWER= links lynx w3m
+RFCDUMPOPT= -source
+.endif