summaryrefslogtreecommitdiff
path: root/net/lftp
diff options
context:
space:
mode:
authortv <tv>2005-08-29 13:12:14 +0000
committertv <tv>2005-08-29 13:12:14 +0000
commitacf30e785a6172a1c7d252533f847f19162991a9 (patch)
treeca4007278646b419346d31380fd8697654030bac /net/lftp
parent114e3486287938163795d8f38bc2fbdffbc50d16 (diff)
downloadpkgsrc-acf30e785a6172a1c7d252533f847f19162991a9.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/lftp')
-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