aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2010-08-25 06:32:45 +0800
committerpgj <pgj@FreeBSD.org>2010-08-25 06:32:45 +0800
commitb253987cea7a5c33f6426f4e02278c87ad7d1af0 (patch)
tree143b7396dfe49b3d1f478e341a37cbd9366620c4
parent8dbcf9d27b707bc90982dacc8258dd9cb84bbb05 (diff)
downloadfreebsd-ports-gnome-b253987cea7a5c33f6426f4e02278c87ad7d1af0.tar.gz
freebsd-ports-gnome-b253987cea7a5c33f6426f4e02278c87ad7d1af0.tar.zst
freebsd-ports-gnome-b253987cea7a5c33f6426f4e02278c87ad7d1af0.zip
- Make run dependency on security/ca_root_nss optional
PR: ports/149368 Submitted by: pgj Approved by: roam (maintainer timeout)
-rw-r--r--ftp/curl/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/ftp/curl/Makefile b/ftp/curl/Makefile
index 9edc90b6348b..b13bd3865a87 100644
--- a/ftp/curl/Makefile
+++ b/ftp/curl/Makefile
@@ -17,8 +17,6 @@ MASTER_SITE_SUBDIR= curl
MAINTAINER= roam@FreeBSD.org
COMMENT= Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
-RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
-
LICENSE= MIT
PATCH_STRIP= -p1
@@ -69,6 +67,7 @@ OPTIONS= CARES "Asynchronous DNS resolution via c-ares" off \
LIBSSH2 "SCP/SFTP support via libssh2" off \
NTLM "NTLM authentication" off \
OPENSSL "OpenSSL support" on \
+ CA_BUNDLE "Install CA bundle for OpenSSL" on \
PROXY "Proxy support" on \
TRACKMEMORY "Enable curl memory diagnostic output" off
@@ -98,10 +97,18 @@ IGNORE= only supports LDAPS with SSL (OpenSSL or GNUTLS)
.if !defined(WITHOUT_OPENSSL)
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
-CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} \
- --with-ca-bundle=${LOCALBASE}/share/certs/ca-root-nss.crt
+CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
+.if !defined(WITHOUT_CA_BUNDLE)
+RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
+CONFIGURE_ARGS+= --with-ca-bundle=${LOCALBASE}/share/certs/ca-root-nss.crt
+.else
+CONFIGURE_ARGS+= --without-ca-bundle
+.endif
.else
CONFIGURE_ARGS+= --without-ssl
+.if defined(WITH_CA_BUNDLE)
+IGNORE= only supports CA bundle with OpenSSL
+.endif
.endif
.if defined(WITH_CARES)