summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-08-29 13:12:14 +0000
committertv <tv@pkgsrc.org>2005-08-29 13:12:14 +0000
commit74268e8c5ea4757e5d93a4f3c6ee9ddc71355083 (patch)
treeca4007278646b419346d31380fd8697654030bac /net
parent1af924e81e619ede625a489ce9d5fef07a3b2f81 (diff)
downloadpkgsrc-74268e8c5ea4757e5d93a4f3c6ee9ddc71355083.tar.gz
Only one SSL scheme can be used. Default to (and prefer) gnutls, as
requested by the package author. Fall back to openssl only if ssl is set and -gnutls is specified in OPTIONS.
Diffstat (limited to 'net')
-rw-r--r--net/lftp/options.mk21
1 files changed, 11 insertions, 10 deletions
diff --git a/net/lftp/options.mk b/net/lftp/options.mk
index 5a71065b88f..e65c128da4d 100644
--- a/net/lftp/options.mk
+++ b/net/lftp/options.mk
@@ -1,22 +1,23 @@
-# $NetBSD: options.mk,v 1.3 2005/06/01 14:06:50 wiz Exp $
+# $NetBSD: options.mk,v 1.4 2005/08/29 13:12:14 tv Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.lftp
PKG_SUPPORTED_OPTIONS= gnutls ssl
PKG_SUGGESTED_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
+.include "../../mk/bsd.options.mk"
+###
+### SSL support
+###
.if !empty(PKG_OPTIONS:Mgnutls)
CONFIGURE_ARGS+= --without-openssl
-.include "../../security/gnutls/buildlink3.mk"
-.endif
-
-.if !empty(PKG_OPTIONS:Mssl)
+. include "../../security/gnutls/buildlink3.mk"
+.elif !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --without-gnutls
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
-.include "../../security/openssl/buildlink3.mk"
+. include "../../security/openssl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-gnutls
+CONFIGURE_ARGS+= --without-openssl
.endif