2014-10-12 02:14:45 +02:00
|
|
|
# $NetBSD: options.mk,v 1.16 2014/10/12 00:14:45 gdt Exp $
|
2005-08-01 13:55:55 +02:00
|
|
|
|
2005-08-01 13:58:33 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.net-snmp
|
2010-03-09 23:52:56 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= ssl snmp-unprived snmp-nokmem perl
|
2014-10-12 02:14:45 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= ssl perl
|
2005-08-01 13:55:55 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2011-05-27 12:55:24 +02:00
|
|
|
.if ${OPSYS} != "SunOS"
|
|
|
|
# net-snmp doesn't do IPv6 on Solaris
|
|
|
|
PKG_SUPPORTED_OPTIONS+= inet6
|
2012-06-12 17:45:54 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS+= inet6
|
2005-08-01 13:55:55 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2011-06-24 11:46:10 +02:00
|
|
|
PLIST_VARS+= inet6 perl
|
2005-08-01 13:55:55 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.inet6= yes
|
2005-08-01 13:55:55 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mssl)
|
|
|
|
. include "../../security/openssl/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-openssl
|
2007-11-20 08:51:35 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-openssl
|
2005-08-01 13:55:55 +02:00
|
|
|
.endif
|
2009-03-18 23:50:28 +01:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Msnmp-nokmem)
|
|
|
|
CONFIGURE_ARGS+= --without-kmem-usage
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Msnmp-unprived)
|
|
|
|
CONFIGURE_ARGS+= --without-root-access
|
|
|
|
.endif
|
2010-03-09 23:52:56 +01:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mperl)
|
|
|
|
# The self-test of Perl modules only works after installation because perl
|
|
|
|
# can't load the shared libraries from WRKSRC/
|
|
|
|
# Until this is fixed you can test them after installation by doing
|
|
|
|
# `make test TEST_TARGET=perltest'
|
2010-05-11 06:39:54 +02:00
|
|
|
TEST_TARGET= test
|
2010-03-09 23:52:56 +01:00
|
|
|
|
2011-06-24 11:46:10 +02:00
|
|
|
PLIST.perl= yes
|
2010-05-11 06:39:54 +02:00
|
|
|
USE_TOOLS+= perl
|
|
|
|
PERL5_CONFIGURE= no
|
|
|
|
PERL5_PACKLIST= auto/Bundle/NetSNMP/.packlist
|
|
|
|
CONFIGURE_ARGS+= --with-perl-modules=${MAKE_PARAMS:Q}
|
|
|
|
CONFIGURE_ENV+= PERLPROG=${PERL5:Q}
|
2011-05-27 12:55:24 +02:00
|
|
|
.include "../../lang/perl5/buildlink3.mk"
|
2010-03-09 23:52:56 +01:00
|
|
|
.include "../../lang/perl5/module.mk"
|
|
|
|
.else # !perl
|
2011-05-27 12:55:24 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-perl-cc-checks
|
|
|
|
CONFIGURE_ARGS+= --with-perl-modules=no
|
2011-06-24 11:30:18 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_PERLPROG=""
|
2011-05-27 12:55:24 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-embedded-perl
|
2013-03-12 04:00:38 +01:00
|
|
|
.endif
|