aboutsummaryrefslogtreecommitdiff
path: root/ftp/curl
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2006-07-14 07:11:59 +0000
committerPeter Pentchev <roam@FreeBSD.org>2006-07-14 07:11:59 +0000
commitb8763595efff4782f59ac91f9c85ac7f6e54af9a (patch)
tree5db90d4816fe0dd394c21f64eed9aca2e2eefaf1 /ftp/curl
parent51d271f40fff76ccb26210ec15919cc25fc6de68 (diff)
downloadports-b8763595efff4782f59ac91f9c85ac7f6e54af9a.tar.gz
ports-b8763595efff4782f59ac91f9c85ac7f6e54af9a.zip
Notes
Diffstat (limited to 'ftp/curl')
-rw-r--r--ftp/curl/Makefile21
1 files changed, 20 insertions, 1 deletions
diff --git a/ftp/curl/Makefile b/ftp/curl/Makefile
index df554ef58fe1..20e9729ee3ca 100644
--- a/ftp/curl/Makefile
+++ b/ftp/curl/Makefile
@@ -49,8 +49,10 @@ GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --mandir=${PREFIX}/man
-OPTIONS= CURL_DEBUG "Enable curl diagnostic output" off \
+OPTIONS= CARES "Asynchronous DNS resolution via c-ares" off \
+ CURL_DEBUG "Enable curl diagnostic output" off \
GNUTLS "Use GNU TLS if WITHOUT_SSL is specified" off \
+ IPV6 "IPv6 support" on \
KERBEROS4 "Kerberos 4 authentication" off \
LIBIDN "Internationalized Domain Names via libidn" off \
NTLM "NTLM authentication" off
@@ -69,12 +71,23 @@ IGNORE= may only use GNU TLS if WITHOUT_SSL is defined
IGNORE= only supports NTLM with OpenSSL
.endif
+.if defined(WITH_CARES) && defined(WITH_IPV6)
+IGNORE= does not support both c-ares and IPv6 - disable one of them
+.endif
+
.if !defined(WITHOUT_SSL)
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
.else
CONFIGURE_ARGS+= --without-ssl
.endif
+.if defined(WITH_CARES)
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libcares.a:${PORTSDIR}/dns/c-ares
+CONFIGURE_ARGS+= --enable-ares=${LOCALBASE}
+.else
+CONFIGURE_ARGS+= --disable-ares
+.endif
+
.if defined(WITH_GNUTLS)
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+=--with-gnutls=${LOCALBASE}
@@ -88,6 +101,12 @@ PLIST_SUB+= SSL=""
PLIST_SUB+= SSL="@comment "
.endif
+.if defined(WITH_IPV6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
.if exists(/usr/lib/libkrb.a) && defined(WITH_KERBEROS4)
CONFIGURE_ARGS += --with-krb4=/usr
.else