Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= curl |
4 |
PORTNAME= curl |
5 |
PORTVERSION= 7.24.0 |
5 |
PORTVERSION= 7.29.0 |
6 |
PORTREVISION= 2 |
|
|
7 |
CATEGORIES= ftp ipv6 www |
6 |
CATEGORIES= ftp ipv6 www |
8 |
MASTER_SITES= http://curl.haxx.se/download/ \ |
7 |
MASTER_SITES= http://curl.haxx.se/download/ \ |
9 |
LOCAL/sunpoet |
8 |
LOCAL/sunpoet |
Lines 14-32
Link Here
|
14 |
|
13 |
|
15 |
LICENSE= MIT |
14 |
LICENSE= MIT |
16 |
|
15 |
|
17 |
OPTIONS_DEFINE= CARES CURL_DEBUG IPV6 KERBEROS4 LDAP LDAPS LIBIDN LIBSSH2 \ |
16 |
OPTIONS_DEFINE= CURL_DEBUG GSSAPI IPV6 KERBEROS4 LDAP LDAPS IDN LIBSSH2 \ |
18 |
NTLM CA_BUNDLE PROXY RTMP TRACKMEMORY DOCS EXAMPLES |
17 |
METALINK NTLM CA_BUNDLE PROXY RTMP TLS_SRP TRACKMEMORY \ |
19 |
OPTIONS_RADIO= SSL |
18 |
DOCS EXAMPLES |
20 |
OPTIONS_RADIO_SSL= OPENSSL GNUTLS |
19 |
OPTIONS_RADIO= RESOLV SSL |
21 |
OPTIONS_DEFAULT= CA_BUNDLE PROXY OPENSSL |
20 |
OPTIONS_RADIO_RESOLV= CARES THREADED_RESOLVER |
|
|
21 |
OPTIONS_RADIO_SSL= OPENSSL GNUTLS CYASSL NSS POLARSSL |
22 |
OPTIONS_DEFAULT= CA_BUNDLE IPV6 PROXY OPENSSL |
22 |
CURL_DEBUG_DESC= curl diagnostic output |
23 |
CURL_DEBUG_DESC= curl diagnostic output |
23 |
LIBIDN_DESC= Internationalized Domain Names via libidn |
|
|
24 |
LIBSSH2_DESC= SCP/SFTP support via libssh2 |
24 |
LIBSSH2_DESC= SCP/SFTP support via libssh2 |
25 |
NTLM_DESC= NTLM authentication |
25 |
METALINK_DESC= Metalink(RFC6249) download support |
26 |
CA_BUNDLE_DESC= Install CA bundle for OpenSSL |
26 |
CA_BUNDLE_DESC= Install CA bundle for OpenSSL |
|
|
27 |
TLS_SRP_DESC= TLS-SRP(Secure Remote Password) support |
27 |
TRACKMEMORY_DESC= curl memory diagnostic output |
28 |
TRACKMEMORY_DESC= curl memory diagnostic output |
|
|
29 |
RESOLV_DESC= DNS resolution options |
30 |
THREADED_RESOLVER_DESC= Threaded DNS resolution |
31 |
CYASSL_DESC= SSL/TLS support via CyaSSL |
32 |
NSS_DESC= SSL/TLS support via NSS |
33 |
POLARSSL_DESC= SSL/TLS support via PolarSSL |
28 |
|
34 |
|
29 |
CONFIGURE_ARGS+=--disable-threaded-resolver --disable-werror \ |
35 |
CONFIGURE_ARGS+=--disable-threaded-resolver --disable-werror --without-axtls \ |
30 |
--enable-imap --enable-pop3 --enable-rtsp --enable-smtp |
36 |
--enable-imap --enable-pop3 --enable-rtsp --enable-smtp |
31 |
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}" |
37 |
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}" |
32 |
GNU_CONFIGURE= yes |
38 |
GNU_CONFIGURE= yes |
Lines 44-50
Link Here
|
44 |
MANUAL README.netware README.win32 RESOURCES SSLCERTS THANKS \ |
50 |
MANUAL README.netware README.win32 RESOURCES SSLCERTS THANKS \ |
45 |
TODO TheArtOfHttpScripting VERSIONS curl-config.html \ |
51 |
TODO TheArtOfHttpScripting VERSIONS curl-config.html \ |
46 |
curl-config.pdf curl.html curl.pdf index.html |
52 |
curl-config.pdf curl.html curl.pdf index.html |
47 |
MAN1= curl.1 curl-config.1 |
53 |
MAN1= curl.1 curl-config.1 mk-ca-bundle.1 |
48 |
MAN3= curl_easy_cleanup.3 curl_easy_duphandle.3 curl_easy_escape.3 \ |
54 |
MAN3= curl_easy_cleanup.3 curl_easy_duphandle.3 curl_easy_escape.3 \ |
49 |
curl_easy_getinfo.3 curl_easy_init.3 curl_easy_pause.3 \ |
55 |
curl_easy_getinfo.3 curl_easy_init.3 curl_easy_pause.3 \ |
50 |
curl_easy_perform.3 curl_easy_recv.3 curl_easy_reset.3 \ |
56 |
curl_easy_perform.3 curl_easy_recv.3 curl_easy_reset.3 \ |
Lines 57-63
Link Here
|
57 |
curl_multi_info_read.3 curl_multi_init.3 curl_multi_perform.3 \ |
63 |
curl_multi_info_read.3 curl_multi_init.3 curl_multi_perform.3 \ |
58 |
curl_multi_remove_handle.3 curl_multi_setopt.3 \ |
64 |
curl_multi_remove_handle.3 curl_multi_setopt.3 \ |
59 |
curl_multi_socket.3 curl_multi_socket_action.3 \ |
65 |
curl_multi_socket.3 curl_multi_socket_action.3 \ |
60 |
curl_multi_strerror.3 curl_multi_timeout.3 \ |
66 |
curl_multi_strerror.3 curl_multi_timeout.3 curl_multi_wait.3 \ |
61 |
curl_share_cleanup.3 curl_share_init.3 curl_share_setopt.3 \ |
67 |
curl_share_cleanup.3 curl_share_init.3 curl_share_setopt.3 \ |
62 |
curl_share_strerror.3 curl_slist_append.3 \ |
68 |
curl_share_strerror.3 curl_slist_append.3 \ |
63 |
curl_slist_free_all.3 curl_strequal.3 curl_unescape.3 \ |
69 |
curl_slist_free_all.3 curl_strequal.3 curl_unescape.3 \ |
Lines 65-115
Link Here
|
65 |
libcurl-errors.3 libcurl-multi.3 libcurl-share.3 \ |
71 |
libcurl-errors.3 libcurl-multi.3 libcurl-share.3 \ |
66 |
libcurl-tutorial.3 |
72 |
libcurl-tutorial.3 |
67 |
PLIST_SUB= SHLIB_VER="${SHLIB_VER}" |
73 |
PLIST_SUB= SHLIB_VER="${SHLIB_VER}" |
|
|
74 |
PORTDOCS= * |
75 |
PORTEXAMPLES= * |
68 |
|
76 |
|
69 |
SHLIB_VER= 6 |
77 |
SHLIB_VER= 7 |
70 |
.endif |
78 |
.endif |
71 |
|
79 |
|
72 |
.include <bsd.port.options.mk> |
80 |
.include <bsd.port.options.mk> |
73 |
|
81 |
|
74 |
.if ${PORT_OPTIONS:MLIBSSH2} && ! ${PORT_OPTIONS:MOPENSSL} |
82 |
.for S in ${OPTIONS_RADIO_SSL} |
75 |
IGNORE= only supports LIBSSH2 with OpenSSL |
83 |
.if ${PORT_OPTIONS:M${S}} |
|
|
84 |
PORT_OPTIONS+= SSL |
76 |
.endif |
85 |
.endif |
|
|
86 |
.endfor |
77 |
|
87 |
|
78 |
.if ${PORT_OPTIONS:MNTLM} && ! ${PORT_OPTIONS:MOPENSSL} |
88 |
.if ${PORT_OPTIONS:MNTLM} && ! ${PORT_OPTIONS:MSSL} |
79 |
IGNORE= only supports NTLM with OpenSSL |
89 |
IGNORE= only supports NTLM with SSL |
80 |
.endif |
90 |
.endif |
81 |
|
91 |
|
82 |
.if ${PORT_OPTIONS:MLDAPS} |
92 |
.if ${PORT_OPTIONS:MLDAPS} |
83 |
.if ! ${PORT_OPTIONS:MLDAP} |
93 |
.if ! ${PORT_OPTIONS:MLDAP} |
84 |
IGNORE= only supports LDAPS with LDAP |
94 |
IGNORE= only supports LDAPS with LDAP |
85 |
.else |
95 |
.elif ! ${PORT_OPTIONS:MSSL} |
86 |
.if ! ${PORT_OPTIONS:MOPENSSL} && ! ${PORT_OPTIONS:MGNUTLS} |
96 |
IGNORE= only supports LDAPS with SSL |
87 |
IGNORE= only supports LDAPS with SSL (OpenSSL or GNUTLS) |
|
|
88 |
.endif |
97 |
.endif |
89 |
.endif |
98 |
.endif |
|
|
99 |
|
100 |
.if ${PORT_OPTIONS:MTLS_SRP} && \ |
101 |
! (${PORT_OPTIONS:MOPENSSL} || ${PORT_OPTIONS:MGNUTLS}) |
102 |
IGNORE= only supports TLS-SRP with either OpenSSL or GnuTLS |
90 |
.endif |
103 |
.endif |
91 |
|
104 |
|
92 |
.if ${PORT_OPTIONS:MOPENSSL} |
105 |
.if ${PORT_OPTIONS:MOPENSSL} |
93 |
USE_OPENSSL= yes |
106 |
USE_OPENSSL= yes |
94 |
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} |
107 |
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} |
|
|
108 |
.else |
109 |
CONFIGURE_ARGS+= --without-ssl |
110 |
.endif |
111 |
|
95 |
.if ${PORT_OPTIONS:MCA_BUNDLE} |
112 |
.if ${PORT_OPTIONS:MCA_BUNDLE} |
96 |
RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
113 |
RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
97 |
CONFIGURE_ARGS+= --with-ca-bundle=${LOCALBASE}/share/certs/ca-root-nss.crt |
114 |
CONFIGURE_ARGS+= --with-ca-bundle=${LOCALBASE}/share/certs/ca-root-nss.crt |
98 |
.else |
115 |
.else |
99 |
CONFIGURE_ARGS+= --without-ca-bundle |
116 |
CONFIGURE_ARGS+= --without-ca-bundle |
100 |
.endif |
117 |
.endif |
101 |
.else |
|
|
102 |
CONFIGURE_ARGS+= --without-ssl |
103 |
.if ${PORT_OPTIONS:MCA_BUNDLE} |
104 |
IGNORE= only supports CA bundle with OpenSSL |
105 |
.endif |
106 |
.endif |
107 |
|
118 |
|
108 |
.if ${PORT_OPTIONS:MCARES} |
119 |
.if ${PORT_OPTIONS:MCARES} |
109 |
LIB_DEPENDS+= cares.2:${PORTSDIR}/dns/c-ares |
120 |
LIB_DEPENDS+= cares:${PORTSDIR}/dns/c-ares |
110 |
CONFIGURE_ARGS+= --enable-ares=${LOCALBASE} |
121 |
CONFIGURE_ARGS+= --enable-ares=${LOCALBASE} --disable-threaded-resolver |
|
|
122 |
.elif ${PORT_OPTIONS:MTHREADED_RESOLVER} |
123 |
CONFIGURE_ARGS+= --enable-threaded-resolver --disable-ares |
111 |
.else |
124 |
.else |
112 |
CONFIGURE_ARGS+= --disable-ares |
125 |
CONFIGURE_ARGS+= --disable-threaded-resolver --disable-ares |
113 |
.endif |
126 |
.endif |
114 |
|
127 |
|
115 |
.if ${PORT_OPTIONS:MGNUTLS} |
128 |
.if ${PORT_OPTIONS:MGNUTLS} |
Lines 119-130
Link Here
|
119 |
CONFIGURE_ARGS+=--without-gnutls |
132 |
CONFIGURE_ARGS+=--without-gnutls |
120 |
.endif |
133 |
.endif |
121 |
|
134 |
|
122 |
.if ${PORT_OPTIONS:MOPENSSL} || ${PORT_OPTIONS:MGNUTLS} |
|
|
123 |
PLIST_SUB+= SSL="" |
124 |
.else |
125 |
PLIST_SUB+= SSL="@comment " |
126 |
.endif |
127 |
|
128 |
.if ${PORT_OPTIONS:MIPV6} |
135 |
.if ${PORT_OPTIONS:MIPV6} |
129 |
CONFIGURE_ARGS+= --enable-ipv6 |
136 |
CONFIGURE_ARGS+= --enable-ipv6 |
130 |
.else |
137 |
.else |
Lines 140-146
Link Here
|
140 |
.if ${PORT_OPTIONS:MLDAP} |
147 |
.if ${PORT_OPTIONS:MLDAP} |
141 |
CONFIGURE_ARGS+= --enable-ldap |
148 |
CONFIGURE_ARGS+= --enable-ldap |
142 |
USE_OPENLDAP= yes |
149 |
USE_OPENLDAP= yes |
143 |
CFLAGS+= -I${LOCALBASE}/include |
150 |
CPPFLAGS+= -I${LOCALBASE}/include |
144 |
LDFLAGS+= -L${LOCALBASE}/lib |
151 |
LDFLAGS+= -L${LOCALBASE}/lib |
145 |
.if ${PORT_OPTIONS:MLDAPS} |
152 |
.if ${PORT_OPTIONS:MLDAPS} |
146 |
CONFIGURE_ARGS+= --enable-ldaps |
153 |
CONFIGURE_ARGS+= --enable-ldaps |
Lines 151-165
Link Here
|
151 |
CONFIGURE_ARGS+= --disable-ldap --disable-ldaps |
158 |
CONFIGURE_ARGS+= --disable-ldap --disable-ldaps |
152 |
.endif |
159 |
.endif |
153 |
|
160 |
|
154 |
.if ${PORT_OPTIONS:MLIBIDN} |
161 |
.if ${PORT_OPTIONS:MIDN} |
155 |
LIB_DEPENDS+= idn.17:${PORTSDIR}/dns/libidn |
162 |
LIB_DEPENDS+= idn:${PORTSDIR}/dns/libidn |
156 |
CONFIGURE_ARGS+= --with-libidn=${LOCALBASE} |
163 |
CONFIGURE_ARGS+= --with-libidn=${LOCALBASE} |
157 |
.else |
164 |
.else |
158 |
CONFIGURE_ARGS+= --without-libidn |
165 |
CONFIGURE_ARGS+= --without-libidn |
159 |
.endif |
166 |
.endif |
160 |
|
167 |
|
161 |
.if ${PORT_OPTIONS:MLIBSSH2} |
168 |
.if ${PORT_OPTIONS:MLIBSSH2} |
162 |
LIB_DEPENDS+= ssh2.1:${PORTSDIR}/security/libssh2 |
169 |
LIB_DEPENDS+= ssh2:${PORTSDIR}/security/libssh2 |
163 |
CONFIGURE_ARGS+= --with-libssh2=${LOCALBASE} |
170 |
CONFIGURE_ARGS+= --with-libssh2=${LOCALBASE} |
164 |
.else |
171 |
.else |
165 |
CONFIGURE_ARGS+= --without-libssh2 |
172 |
CONFIGURE_ARGS+= --without-libssh2 |
Lines 170-181
Link Here
|
170 |
.endif |
177 |
.endif |
171 |
|
178 |
|
172 |
.if ${PORT_OPTIONS:MRTMP} |
179 |
.if ${PORT_OPTIONS:MRTMP} |
173 |
LIB_DEPENDS+= rtmp.0:${PORTSDIR}/multimedia/rtmpdump |
180 |
LIB_DEPENDS+= rtmp:${PORTSDIR}/multimedia/rtmpdump |
174 |
CONFIGURE_ARGS+= --with-librtmp=${LOCALBASE} |
181 |
CONFIGURE_ARGS+= --with-librtmp=${LOCALBASE} |
175 |
.else |
182 |
.else |
176 |
CONFIGURE_ARGS+= --without-librtmp |
183 |
CONFIGURE_ARGS+= --without-librtmp |
177 |
.endif |
184 |
.endif |
178 |
|
185 |
|
|
|
186 |
.if ${PORT_OPTIONS:MCYASSL} |
187 |
LIB_DEPENDS+= cyassl:${PORTSDIR}/security/yassl |
188 |
CONFIGURE_ARGS+=--with-cyassl=${LOCALBASE} |
189 |
.else |
190 |
CONFIGURE_ARGS+=--without-cyassl |
191 |
.endif |
192 |
|
193 |
.if ${PORT_OPTIONS:MGSSAPI} |
194 |
CONFIGURE_ARGS+= --with-gssapi-includes=/usr/include \ |
195 |
--with-gssapi-libs=/usr/lib |
196 |
.else |
197 |
CONFIGURE_ARGS+= --without-gssapi |
198 |
.endif |
199 |
|
200 |
.if ${PORT_OPTIONS:MMETALINK} |
201 |
BROKEN= libmetalink in ports tree is way too old |
202 |
CONFIGURE_ARGS+= --with-libmetalink |
203 |
LIB_DEPENDS+= metalink.3:${PORTSDIR}/misc/libmetalink |
204 |
.else |
205 |
CONFIGURE_ARGS+= --without-libmetalink |
206 |
.endif |
207 |
|
208 |
.if ${PORT_OPTIONS:MNSS} |
209 |
LIB_DEPENDS+= nss3:${PORTSDIR}/security/nss |
210 |
CONFIGURE_ARGS+=--with-nss |
211 |
.else |
212 |
CONFIGURE_ARGS+=--without-nss |
213 |
.endif |
214 |
|
215 |
.if ${PORT_OPTIONS:MPOLARSSL} |
216 |
LIB_DEPENDS+= polarssl:${PORTSDIR}/security/polarssl |
217 |
CONFIGURE_ARGS+=--with-polarssl=${LOCALBASE} |
218 |
.else |
219 |
CONFIGURE_ARGS+=--without-polarssl |
220 |
.endif |
221 |
|
222 |
.if ${PORT_OPTIONS:MTLS_SRP} |
223 |
CONFIGURE_ARGS+= --enable-tls-srp |
224 |
.else |
225 |
CONFIGURE_ARGS+= --disable-tls-srp |
226 |
.endif |
227 |
|
179 |
.if ${PORT_OPTIONS:MTRACKMEMORY} |
228 |
.if ${PORT_OPTIONS:MTRACKMEMORY} |
180 |
CONFIGURE_ARGS+= --enable-curldebug |
229 |
CONFIGURE_ARGS+= --enable-curldebug |
181 |
.else |
230 |
.else |
Lines 200-206
Link Here
|
200 |
|
249 |
|
201 |
post-install: |
250 |
post-install: |
202 |
.if !defined(BUILDING_HIPHOP) |
251 |
.if !defined(BUILDING_HIPHOP) |
203 |
${INSTALL_DATA} ${WRKSRC}/docs/libcurl/libcurl.m4 ${PREFIX}/share/aclocal |
252 |
${INSTALL_DATA} ${WRKSRC}/docs/libcurl/libcurl.m4 ${PREFIX}/share/aclocal/ |
204 |
.if ${PORT_OPTIONS:MDOCS} |
253 |
.if ${PORT_OPTIONS:MDOCS} |
205 |
${MKDIR} ${DOCSDIR}/ ${DOCSDIR}/libcurl/ |
254 |
${MKDIR} ${DOCSDIR}/ ${DOCSDIR}/libcurl/ |
206 |
cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}/ |
255 |
cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}/ |
Lines 208-220
Link Here
|
208 |
.endif |
257 |
.endif |
209 |
.if ${PORT_OPTIONS:MEXAMPLES} |
258 |
.if ${PORT_OPTIONS:MEXAMPLES} |
210 |
${MKDIR} ${EXAMPLESDIR}/ |
259 |
${MKDIR} ${EXAMPLESDIR}/ |
211 |
cd ${WRKSRC}/docs/examples/ && ${INSTALL_DATA} README Makefile.example makefile* *.c *.cc ${EXAMPLESDIR}/ |
260 |
cd ${WRKSRC}/docs/examples/ && ${INSTALL_DATA} README Makefile.example makefile* *.c *.cpp ${EXAMPLESDIR}/ |
212 |
.endif |
261 |
.endif |
213 |
.endif |
262 |
.endif |
214 |
|
263 |
|
215 |
# Setting LC_ALL=C is a kludge; maybe curl/libcurl shouldn't actually use |
264 |
# Setting LC_ALL=C is a kludge; maybe curl/libcurl shouldn't actually use |
216 |
# the user's locale when dates are sent to the server. |
265 |
# the user's locale when dates are sent to the server. |
217 |
test: build |
266 |
regression-test: build |
218 |
.if ! ${PORT_OPTIONS:MPROXY} |
267 |
.if ! ${PORT_OPTIONS:MPROXY} |
219 |
@${ECHO_MSG} "******************************************" |
268 |
@${ECHO_MSG} "******************************************" |
220 |
@${ECHO_MSG} "* You have disabled curl proxy support. *" |
269 |
@${ECHO_MSG} "* You have disabled curl proxy support. *" |
Lines 222-227
Link Here
|
222 |
@${ECHO_MSG} "* This is being addressed. *" |
271 |
@${ECHO_MSG} "* This is being addressed. *" |
223 |
@${ECHO_MSG} "******************************************" |
272 |
@${ECHO_MSG} "******************************************" |
224 |
.endif |
273 |
.endif |
225 |
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} LC_ALL=C ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test |
274 |
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} LC_ALL=C ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test |
226 |
|
275 |
|
227 |
.include <bsd.port.mk> |
276 |
.include <bsd.port.mk> |