diff options
Diffstat (limited to 'net/lftp/options.mk')
-rw-r--r-- | net/lftp/options.mk | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/lftp/options.mk b/net/lftp/options.mk new file mode 100644 index 00000000000..13f62dffcf3 --- /dev/null +++ b/net/lftp/options.mk @@ -0,0 +1,22 @@ +# $NetBSD: options.mk,v 1.1 2005/05/30 16:01:40 salo Exp $ +# + +PKG_OPTIONS_VAR= PKG_OPTIONS.lftp +PKG_SUPPORTED_OPTIONS= gnutls ssl +PKG_DEFAULT_OPTIONS= gnutls +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mgnutls) && !empty(PKG_OPTIONS:Mssl) +PKG_FAIL_REASON+= "Options \"gnutls\" and \"ssl\" are mutually exclusive." +.endif + +.if !empty(PKG_OPTIONS:Mgnutls) +CONFIGURE_ARGS+= --without-openssl +.include "../../security/gnutls/buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mssl) +CONFIGURE_ARGS+= --without-gnutls +CONFIGURE_ARGS+= --with-openssl=${SSLBASE} +.include "../../security/openssl/buildlink3.mk" +.endif |