pkgsrc/net/wget/options.mk
tron 56edb9ea60 The "ssl" option group is required. Other values than "gnutls" or "openssl"
are not allowed and it is therefore not possible to build this package
without SSL support (which is good). Remove makefile snippet which made
it look like it was possible to do this.
2014-04-26 11:17:18 +00:00

37 lines
802 B
Makefile

# $NetBSD: options.mk,v 1.9 2014/04/26 11:17:18 tron Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.wget
PKG_SUPPORTED_OPTIONS= idn inet6
PKG_OPTIONS_REQUIRED_GROUPS= ssl
PKG_OPTIONS_GROUP.ssl= gnutls openssl
PKG_SUGGESTED_OPTIONS= idn inet6 openssl
.include "../../mk/bsd.options.mk"
###
### Support IDN
###
.if !empty(PKG_OPTIONS:Midn)
.include "../../devel/libidn/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.endif
###
### Support IPv6
###
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
###
### Support SSL
###
.if !empty(PKG_OPTIONS:Mgnutls)
. include "../../security/gnutls/buildlink3.mk"
CONFIGURE_ARGS+=--with-ssl=gnutls
.else
. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+=--with-ssl=openssl
.endif