2015-09-30 10:25:37 +02:00
|
|
|
# $NetBSD: options.mk,v 1.11 2015/09/30 08:25:37 tnn Exp $
|
2005-12-02 18:03:06 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.tnftp
|
2015-09-30 10:25:37 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= inet6 ssl socks
|
2008-08-10 00:03:52 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= inet6
|
2005-12-02 18:03:06 +01:00
|
|
|
|
2015-02-18 10:16:52 +01:00
|
|
|
CHECK_BUILTIN.openssl:= yes
|
|
|
|
.include "../../security/openssl/builtin.mk"
|
|
|
|
CHECK_BUILTIN.openssl:= no
|
|
|
|
|
|
|
|
.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
|
|
|
|
PKG_SUGGESTED_OPTIONS+= ssl
|
|
|
|
.endif
|
|
|
|
|
2005-12-02 18:03:06 +01:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2015-09-30 10:25:37 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Msocks)
|
2007-08-07 06:59:33 +02:00
|
|
|
CONFIGURE_ARGS+= --with-socks
|
2015-09-30 10:25:37 +02:00
|
|
|
.include "../../net/dante/buildlink3.mk"
|
2011-03-12 13:02:09 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-socks
|
2005-12-02 18:03:06 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
2015-02-18 10:16:52 +01:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mssl)
|
|
|
|
CONFIGURE_ARGS+= --enable-ssl
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ssl
|
|
|
|
.endif
|