39 lines
881 B
Makefile
39 lines
881 B
Makefile
# $NetBSD: options.mk,v 1.7 2012/06/12 15:46:02 wiz Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.wget
|
|
PKG_SUPPORTED_OPTIONS= gnutls idn inet6 openssl
|
|
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:Mopenssl)
|
|
. include "../../security/openssl/buildlink3.mk"
|
|
CONFIGURE_ARGS+=--with-ssl=openssl
|
|
.elif !empty(PKG_OPTIONS:Mgnutls)
|
|
. include "../../security/gnutls/buildlink3.mk"
|
|
CONFIGURE_ARGS+=--with-ssl=gnutls
|
|
.else
|
|
CONFIGURE_ARGS+=--without-ssl
|
|
.endif
|