summaryrefslogtreecommitdiff
path: root/news/tin/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'news/tin/options.mk')
-rw-r--r--news/tin/options.mk36
1 files changed, 36 insertions, 0 deletions
diff --git a/news/tin/options.mk b/news/tin/options.mk
new file mode 100644
index 00000000000..ae745f6f969
--- /dev/null
+++ b/news/tin/options.mk
@@ -0,0 +1,36 @@
+# $NetBSD: options.mk,v 1.1 2006/01/01 16:10:29 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.tin
+PKG_SUPPORTED_OPTIONS= curses inet6 tin-use-inn-spool
+# untested
+#PKG_SUPPORTED_OPTIONS+= icu socks
+PKG_OPTIONS_LEGACY_VARS= TIN_USE_INN_SPOOL:tin-use-inn-spool
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcurses)
+CONFIGURE_ARGS+= --with-screen=curses
+.endif
+
+.if !empty(PKG_OPTIONS:Micu)
+.include "../../textproc/icu/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.endif
+
+.if !empty(PKG_OPTIONS:Mtin-use-inn-spool)
+INN_DATA_DIR?= /var/news
+CONFIGURE_ARGS+= --with-inews-dir=${PREFIX}/inn/bin \
+ --with-libdir=${INN_DATA_DIR}/db \
+ --with-spooldir=${INN_DATA_DIR}/spool/articles \
+ --with-nov-dir=${INN_DATA_DIR}/spool/overview
+.else
+CONFIGURE_ARGS+= --enable-nntp-only
+.endif
+
+.if !empty(PKG_OPTIONS:Msocks)
+.include "../../net/socks5/buildlink3.mk"
+CONFIGURE_ARGS+= --with-socks5=${BUILDLINK_PREFIX.socks5}
+.endif