98fe9e8d20
(restoring v1.8 from obache)
38 lines
900 B
Makefile
38 lines
900 B
Makefile
# $NetBSD: options.mk,v 1.10 2015/02/18 09:16:52 wiz Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.tnftp
|
|
PKG_SUPPORTED_OPTIONS= inet6 ssl
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= socks
|
|
PKG_OPTIONS_GROUP.socks= socks5
|
|
PKG_SUGGESTED_OPTIONS= inet6
|
|
|
|
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
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Msocks5)
|
|
CONFIGURE_ARGS+= --with-socks
|
|
.include "../../net/socks5/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --without-socks
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
.endif
|
|
|
|
.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
|