Stuart Henderson <s...@spacehopper.org> writes:

> The downside is that then everybody gets asked which curl package to use
> when it gets installed as a dependency.. and I bet many people will
> choose "full" when they don't need it (and unnecessarily pull in a bunch
> of other libraries to the address space, and maybe also submit ports
> with a bunch of junk WANTLIBs). At least using "gssapi" means people are
> slightly less likely to choose it!

Fine with me.  Here's a proposal that includes a tweak to actually
disable libidn2, which gets picked up here as I have installed naddy's
port.  Given the above, I'm not sure whether the REVISION bump is
needed, thoughts?


Index: Makefile
===================================================================
RCS file: /d/cvs/ports/net/curl/Makefile,v
retrieving revision 1.121
diff -u -p -r1.121 Makefile
--- Makefile    4 Nov 2016 11:33:33 -0000       1.121
+++ Makefile    10 Nov 2016 11:02:51 -0000
@@ -3,6 +3,7 @@
 COMMENT=       get files from FTP, Gopher, HTTP or HTTPS servers
 
 VERSION=       7.51.0
+REVISION=      0
 DISTNAME=      curl-${VERSION}
 SHARED_LIBS=   curl                 25.7     # 8.0
 CATEGORIES=    net
@@ -23,7 +24,7 @@ WANTLIB=      c crypto nghttp2 ssl z
 SEPARATE_BUILD=        Yes
 CONFIGURE_STYLE=gnu
 CONFIGURE_ARGS=        --with-ca-bundle=/etc/ssl/cert.pem \
-               --without-libidn2 \
+               --without-libidn \
                --without-libpsl \
                --without-libssh2
 CONFIGURE_ENV= ac_cv_path_NROFF="/usr/bin/mandoc -Tascii"
@@ -34,6 +35,18 @@ CONFIGURE_ENV+= \
     curl_cv_func_recv_args="int,void *,size_t,int,ssize_t" \
     curl_cv_func_send_args="int,const void *,size_t,int,ssize_t" \
     curl_cv_func_getnameinfo_args="const struct sockaddr 
*,socklen_t,size_t,int"
+
+FLAVORS =      gssapi
+FLAVOR ?=
+
+.if ${FLAVOR:Mgssapi}
+MODULES +=     security/heimdal
+LIB_DEPENDS += ${MODHEIMDAL_LIB_DEPENDS}
+WANTLIB +=     ${MODHEIMDAL_WANTLIB}
+WANTLIB +=     heimdal/lib/gssapi heimdal/lib/heimntlm heimdal/lib/heimsqlite
+WANTLIB +=     com_err pthread
+CONFIGURE_ARGS +=      --with-gssapi=${LOCALBASE}/heimdal
+.endif
 
 # Note:
 # use ulimit -p 256 for test

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to