summaryrefslogtreecommitdiff
path: root/graphics/sane-backends
diff options
context:
space:
mode:
authorschnoebe <schnoebe>2011-08-15 01:56:33 +0000
committerschnoebe <schnoebe>2011-08-15 01:56:33 +0000
commit45f2a58e457f6431aadd8225d5d5a8b0ca449962 (patch)
treebd23eb7917aafb2969bd6b60721908a5a6ca5693 /graphics/sane-backends
parent9829ed79902406a534d72c422608d6c750c0d5ac (diff)
downloadpkgsrc-45f2a58e457f6431aadd8225d5d5a8b0ca449962.tar.gz
Add an option to select/suppress SNMP support.
(configure was finding libsnmp.so if net-snmp was installed, but net-snmp wasn't buildlink'd in. It would build just fine if net-snmp wasn't installed.)
Diffstat (limited to 'graphics/sane-backends')
-rw-r--r--graphics/sane-backends/options.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/sane-backends/options.mk b/graphics/sane-backends/options.mk
index 469822921f6..d7b7a8fbe4e 100644
--- a/graphics/sane-backends/options.mk
+++ b/graphics/sane-backends/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.7 2008/04/13 21:43:39 wiz Exp $
+# $NetBSD: options.mk,v 1.8 2011/08/15 01:56:33 schnoebe Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.sane-backends
-PKG_SUPPORTED_OPTIONS= inet6
+PKG_SUPPORTED_OPTIONS= inet6 snmp
PKG_SUGGESTED_OPTIONS= #defined
.include "../../mk/bsd.options.mk"
@@ -13,3 +13,10 @@ CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
+
+.if !empty(PKG_OPTIONS:Msnmp)
+CONFIGURE_ARGS+= --with-snmp=yes
+.include "../../net/net-snmp/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --with-snmp=no
+.endif