aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/curl
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2004-12-22 00:06:19 +0800
committerroam <roam@FreeBSD.org>2004-12-22 00:06:19 +0800
commit146ab2aef998fe4c64fcd2e3ed7c381bcf6ac90a (patch)
treecbf0a8c21b23e839dd1942686f3c46baf83bc861 /ftp/curl
parent5b9d1e4e4eec54e531b66aae6ecaf44d27a00891 (diff)
downloadfreebsd-ports-gnome-146ab2aef998fe4c64fcd2e3ed7c381bcf6ac90a.tar.gz
freebsd-ports-gnome-146ab2aef998fe4c64fcd2e3ed7c381bcf6ac90a.tar.zst
freebsd-ports-gnome-146ab2aef998fe4c64fcd2e3ed7c381bcf6ac90a.zip
Add libidn support, configurable with the WITH/WITHOUT_LIBIDN knob.
Add debugging support via the WITH_CURL_DEBUG knob. Properly use LC_ALL=C instead of LANG=C to run the test suite (thanks Fujishima-san!)
Diffstat (limited to 'ftp/curl')
-rw-r--r--ftp/curl/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/ftp/curl/Makefile b/ftp/curl/Makefile
index 9c59d36741cc..456088be8dbc 100644
--- a/ftp/curl/Makefile
+++ b/ftp/curl/Makefile
@@ -7,7 +7,7 @@
PORTNAME= curl
PORTVERSION= 7.12.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= ftp ipv6 www
MASTER_SITES= http://curl.haxx.se/download/ \
${MASTER_SITE_SOURCEFORGE} \
@@ -67,12 +67,21 @@ PLIST_SUB+= SSL="@comment "
CONFIGURE_ARGS += --with-krb4=/usr
.endif
-CONFIGURE_ARGS += --without-libidn
+.if !defined(WITHOUT_LIBIDN) && (defined(WITH_LIBIDN) || exists(${LOCALBASE}/lib/libidn.so))
+LIB_DEPENDS+= idn.16:${PORTSDIR}/devel/libidn
+CONFIGURE_ARGS+= --with-libidn=${LOCALBASE}
+.else
+CONFIGURE_ARGS+= --without-libidn
+.endif
+
+.if defined(WITH_CURL_DEBUG)
+CONFIGURE_ARGS+= --enable-debug
+.endif
-# Setting LANG=C is a kludge; maybe curl/libcurl shouldn't actually use
+# Setting LC_ALL=C is a kludge; maybe curl/libcurl shouldn't actually use
# the user's locale when dates are sent to the server.
test: build
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} LANG=C ${MAKE} test
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} LC_ALL=C ${MAKE} test
.if !defined(NOPORTDOCS)
post-install: