Lines 1-13
Link Here
|
1 |
# New ports collection makefile for: curl |
1 |
# Created by: Neil Blakey-Milner <nbm@rucus.ru.ac.za> |
2 |
# Date created: 12 December 1998 |
|
|
3 |
# Whom: Neil Blakey-Milner <nbm@rucus.ru.ac.za> |
4 |
# |
5 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= curl |
4 |
PORTNAME= curl |
9 |
PORTVERSION= 7.24.0 |
5 |
PORTVERSION= 7.29.0 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= ftp ipv6 www |
6 |
CATEGORIES= ftp ipv6 www |
12 |
MASTER_SITES= http://curl.haxx.se/download/ \ |
7 |
MASTER_SITES= http://curl.haxx.se/download/ \ |
13 |
LOCAL/sunpoet |
8 |
LOCAL/sunpoet |
Lines 18-38
Link Here
|
18 |
|
13 |
|
19 |
LICENSE= MIT |
14 |
LICENSE= MIT |
20 |
|
15 |
|
21 |
OPTIONS= CARES "Asynchronous DNS resolution via c-ares" off \ |
16 |
OPTIONS_DEFINE= CA_BUNDLE CARES CURL_DEBUG DOCS EXAMPLES GSSAPI IDN IPV6 \ |
22 |
CURL_DEBUG "Enable curl diagnostic output" off \ |
17 |
KERBEROS4 LDAP LDAPS LIBSSH2 NTLM PROXY RTMP TRACKMEMORY |
23 |
GNUTLS "Use GNU TLS if OPENSSL is OFF" off \ |
18 |
OPTIONS_DEFAULT= CA_BUNDLE IPV6 OPENSSL PROXY |
24 |
IPV6 "IPv6 support" on \ |
19 |
OPTIONS_SINGLE= SSL |
25 |
KERBEROS4 "Kerberos 4 authentication" off \ |
20 |
OPTIONS_SINGLE_SSL= GNUTLS OPENSSL |
26 |
LDAP "LDAP support" off \ |
21 |
CA_BUNDLE_DESC= Install CA bundle for OpenSSL |
27 |
LDAPS "LDAPS support (requires LDAP and SSL)" off \ |
22 |
CURL_DEBUG_DESC= cURL diagnostic output |
28 |
LIBIDN "Internationalized Domain Names via libidn" off \ |
23 |
LIBSSH2_DESC= SCP/SFTP support via libssh2 |
29 |
LIBSSH2 "SCP/SFTP support via libssh2" off \ |
24 |
TRACKMEMORY_DESC= cURL memory diagnostic output |
30 |
NTLM "NTLM authentication" off \ |
|
|
31 |
OPENSSL "OpenSSL support" on \ |
32 |
CA_BUNDLE "Install CA bundle for OpenSSL" on \ |
33 |
PROXY "Proxy support" on \ |
34 |
RTMP "RTMP streams support" off \ |
35 |
TRACKMEMORY "Enable curl memory diagnostic output" off |
36 |
|
25 |
|
37 |
CONFIGURE_ARGS+=--disable-threaded-resolver --disable-werror \ |
26 |
CONFIGURE_ARGS+=--disable-threaded-resolver --disable-werror \ |
38 |
--enable-imap --enable-pop3 --enable-rtsp --enable-smtp |
27 |
--enable-imap --enable-pop3 --enable-rtsp --enable-smtp |
Lines 52-58
Link Here
|
52 |
MANUAL README.netware README.win32 RESOURCES SSLCERTS THANKS \ |
41 |
MANUAL README.netware README.win32 RESOURCES SSLCERTS THANKS \ |
53 |
TODO TheArtOfHttpScripting VERSIONS curl-config.html \ |
42 |
TODO TheArtOfHttpScripting VERSIONS curl-config.html \ |
54 |
curl-config.pdf curl.html curl.pdf index.html |
43 |
curl-config.pdf curl.html curl.pdf index.html |
55 |
MAN1= curl.1 curl-config.1 |
44 |
MAN1= curl.1 curl-config.1 mk-ca-bundle.1 |
56 |
MAN3= curl_easy_cleanup.3 curl_easy_duphandle.3 curl_easy_escape.3 \ |
45 |
MAN3= curl_easy_cleanup.3 curl_easy_duphandle.3 curl_easy_escape.3 \ |
57 |
curl_easy_getinfo.3 curl_easy_init.3 curl_easy_pause.3 \ |
46 |
curl_easy_getinfo.3 curl_easy_init.3 curl_easy_pause.3 \ |
58 |
curl_easy_perform.3 curl_easy_recv.3 curl_easy_reset.3 \ |
47 |
curl_easy_perform.3 curl_easy_recv.3 curl_easy_reset.3 \ |
Lines 65-110
Link Here
|
65 |
curl_multi_info_read.3 curl_multi_init.3 curl_multi_perform.3 \ |
54 |
curl_multi_info_read.3 curl_multi_init.3 curl_multi_perform.3 \ |
66 |
curl_multi_remove_handle.3 curl_multi_setopt.3 \ |
55 |
curl_multi_remove_handle.3 curl_multi_setopt.3 \ |
67 |
curl_multi_socket.3 curl_multi_socket_action.3 \ |
56 |
curl_multi_socket.3 curl_multi_socket_action.3 \ |
68 |
curl_multi_strerror.3 curl_multi_timeout.3 \ |
57 |
curl_multi_strerror.3 curl_multi_timeout.3 curl_multi_wait.3 \ |
69 |
curl_share_cleanup.3 curl_share_init.3 curl_share_setopt.3 \ |
58 |
curl_share_cleanup.3 curl_share_init.3 curl_share_setopt.3 \ |
70 |
curl_share_strerror.3 curl_slist_append.3 \ |
59 |
curl_share_strerror.3 curl_slist_append.3 \ |
71 |
curl_slist_free_all.3 curl_strequal.3 curl_unescape.3 \ |
60 |
curl_slist_free_all.3 curl_strequal.3 curl_unescape.3 \ |
72 |
curl_version.3 curl_version_info.3 libcurl.3 libcurl-easy.3 \ |
61 |
curl_version.3 curl_version_info.3 libcurl.3 libcurl-easy.3 \ |
73 |
libcurl-errors.3 libcurl-multi.3 libcurl-share.3 \ |
62 |
libcurl-errors.3 libcurl-multi.3 libcurl-share.3 \ |
74 |
libcurl-tutorial.3 |
63 |
libcurl-tutorial.3 |
75 |
PLIST_SUB= SHLIB_VER="${SHLIB_VER}" |
64 |
PLIST_SUB+= SHLIB_VER="${SHLIB_VER}" |
|
|
65 |
PORTDOCS= * |
66 |
PORTEXAMPLES= * |
76 |
|
67 |
|
77 |
SHLIB_VER= 6 |
68 |
SHLIB_VER= 7 |
78 |
.endif |
69 |
.endif |
79 |
|
70 |
|
80 |
.include <bsd.port.options.mk> |
71 |
.include <bsd.port.options.mk> |
81 |
|
72 |
|
82 |
.if defined(WITH_GNUTLS) && defined(WITH_OPENSSL) |
73 |
.if ${PORT_OPTIONS:MCA_BUNDLE} && empty(PORT_OPTIONS:MOPENSSL) |
83 |
IGNORE= may only use GNU TLS if OpenSSL support is disabled |
74 |
IGNORE= only supports CA bundle with OpenSSL |
84 |
.endif |
75 |
.endif |
85 |
|
76 |
|
86 |
.if defined(WITH_LIBSSH2) && !defined(WITH_OPENSSL) |
77 |
.if ${PORT_OPTIONS:MLIBSSH2} && empty(PORT_OPTIONS:MOPENSSL) |
87 |
IGNORE= only supports LIBSSH2 with OpenSSL |
78 |
IGNORE= only supports LIBSSH2 with OpenSSL |
88 |
.endif |
79 |
.endif |
89 |
|
80 |
|
90 |
.if defined(WITH_NTLM) && !defined(WITH_OPENSSL) |
81 |
.if ${PORT_OPTIONS:MNTLM} && empty(PORT_OPTIONS:MOPENSSL) |
91 |
IGNORE= only supports NTLM with OpenSSL |
82 |
IGNORE= only supports NTLM with OpenSSL |
92 |
.endif |
83 |
.endif |
93 |
|
84 |
|
94 |
.if defined(WITH_LDAPS) |
85 |
.if ${PORT_OPTIONS:MLDAPS} |
95 |
.if !defined(WITH_LDAP) |
86 |
.if empty(PORT_OPTIONS:MLDAP) |
96 |
IGNORE= only supports LDAPS with LDAP |
87 |
IGNORE= only supports LDAPS with LDAP |
97 |
.else |
88 |
.elif empty(PORT_OPTIONS:MOPENSSL) && empty(PORT_OPTIONS:MGNUTLS) |
98 |
.if !defined(WITH_OPENSSL) && !defined(WITH_GNUTLS) |
89 |
IGNORE= only supports LDAPS with SSL (OpenSSL or GnuTLS) |
99 |
IGNORE= only supports LDAPS with SSL (OpenSSL or GNUTLS) |
|
|
100 |
.endif |
90 |
.endif |
101 |
.endif |
91 |
.endif |
102 |
.endif |
|
|
103 |
|
92 |
|
104 |
.if !defined(WITHOUT_OPENSSL) |
93 |
.if ${PORT_OPTIONS:MOPENSSL} |
105 |
.include "${PORTSDIR}/Mk/bsd.openssl.mk" |
|
|
106 |
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} |
94 |
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} |
107 |
.if !defined(WITHOUT_CA_BUNDLE) |
95 |
USE_OPENSSL= yes |
|
|
96 |
.if ${PORT_OPTIONS:MCA_BUNDLE} |
108 |
RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
97 |
RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
109 |
CONFIGURE_ARGS+= --with-ca-bundle=${LOCALBASE}/share/certs/ca-root-nss.crt |
98 |
CONFIGURE_ARGS+= --with-ca-bundle=${LOCALBASE}/share/certs/ca-root-nss.crt |
110 |
.else |
99 |
.else |
Lines 112-160
Link Here
|
112 |
.endif |
101 |
.endif |
113 |
.else |
102 |
.else |
114 |
CONFIGURE_ARGS+= --without-ssl |
103 |
CONFIGURE_ARGS+= --without-ssl |
115 |
.if defined(WITH_CA_BUNDLE) |
|
|
116 |
IGNORE= only supports CA bundle with OpenSSL |
117 |
.endif |
104 |
.endif |
118 |
.endif |
|
|
119 |
|
105 |
|
120 |
.if defined(WITH_CARES) |
106 |
.if ${PORT_OPTIONS:MCARES} |
121 |
LIB_DEPENDS+= cares.2:${PORTSDIR}/dns/c-ares |
107 |
LIB_DEPENDS+= cares:${PORTSDIR}/dns/c-ares |
122 |
CONFIGURE_ARGS+= --enable-ares=${LOCALBASE} |
108 |
CONFIGURE_ARGS+= --enable-ares=${LOCALBASE} |
123 |
.else |
109 |
.else |
124 |
CONFIGURE_ARGS+= --disable-ares |
110 |
CONFIGURE_ARGS+= --disable-ares |
125 |
.endif |
111 |
.endif |
126 |
|
112 |
|
127 |
.if defined(WITH_GNUTLS) |
113 |
.if ${PORT_OPTIONS:MGNUTLS} |
128 |
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls |
114 |
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls |
129 |
CONFIGURE_ARGS+=--with-gnutls=${LOCALBASE} |
115 |
CONFIGURE_ARGS+=--with-gnutls=${LOCALBASE} |
130 |
.else |
116 |
.else |
131 |
CONFIGURE_ARGS+=--without-gnutls |
117 |
CONFIGURE_ARGS+=--without-gnutls |
132 |
.endif |
118 |
.endif |
133 |
|
119 |
|
134 |
.if defined(WITH_OPENSSL) || defined(WITH_GNUTLS) |
120 |
.if ${PORT_OPTIONS:MOPENSSL} || ${PORT_OPTIONS:MGNUTLS} |
135 |
PLIST_SUB+= SSL="" |
121 |
PLIST_SUB+= SSL="" |
136 |
.else |
122 |
.else |
137 |
PLIST_SUB+= SSL="@comment " |
123 |
PLIST_SUB+= SSL="@comment " |
138 |
.endif |
124 |
.endif |
139 |
|
125 |
|
140 |
.if defined(WITH_IPV6) |
126 |
.if ${PORT_OPTIONS:MGSSAPI} |
|
|
127 |
CONFIGURE_ARGS+= --with-gssapi-includes=/usr/include \ |
128 |
--with-gssapi-libs=/usr/lib |
129 |
.else |
130 |
CONFIGURE_ARGS+= --without-gssapi |
131 |
.endif |
132 |
|
133 |
.if ${PORT_OPTIONS:MIPV6} |
141 |
CONFIGURE_ARGS+= --enable-ipv6 |
134 |
CONFIGURE_ARGS+= --enable-ipv6 |
142 |
.else |
135 |
.else |
143 |
CONFIGURE_ARGS+= --disable-ipv6 |
136 |
CONFIGURE_ARGS+= --disable-ipv6 |
144 |
.endif |
137 |
.endif |
145 |
|
138 |
|
146 |
.if exists(/usr/lib/libkrb.a) && defined(WITH_KERBEROS4) |
139 |
.if ${PORT_OPTIONS:MKERBEROS4} && exists(/usr/lib/libkrb.a) |
147 |
CONFIGURE_ARGS += --with-krb4=/usr |
140 |
CONFIGURE_ARGS += --with-krb4=/usr |
148 |
.else |
141 |
.else |
149 |
CONFIGURE_ARGS += --without-krb4 |
142 |
CONFIGURE_ARGS += --without-krb4 |
150 |
.endif |
143 |
.endif |
151 |
|
144 |
|
152 |
.if defined(WITH_LDAP) |
145 |
.if ${PORT_OPTIONS:MLDAP} |
153 |
CONFIGURE_ARGS+= --enable-ldap |
146 |
CONFIGURE_ARGS+= --enable-ldap |
154 |
USE_OPENLDAP= yes |
147 |
USE_OPENLDAP= yes |
155 |
CFLAGS+= -I${LOCALBASE}/include |
148 |
CPPFLAGS+= -I${LOCALBASE}/include |
156 |
LDFLAGS+= -L${LOCALBASE}/lib |
149 |
LDFLAGS+= -L${LOCALBASE}/lib |
157 |
.if defined(WITH_LDAPS) |
150 |
.if ${PORT_OPTIONS:MLDAPS} |
158 |
CONFIGURE_ARGS+= --enable-ldaps |
151 |
CONFIGURE_ARGS+= --enable-ldaps |
159 |
.else |
152 |
.else |
160 |
CONFIGURE_ARGS+= --disable-ldaps |
153 |
CONFIGURE_ARGS+= --disable-ldaps |
Lines 163-206
Link Here
|
163 |
CONFIGURE_ARGS+= --disable-ldap --disable-ldaps |
156 |
CONFIGURE_ARGS+= --disable-ldap --disable-ldaps |
164 |
.endif |
157 |
.endif |
165 |
|
158 |
|
166 |
.if defined(WITH_LIBIDN) |
159 |
.if ${PORT_OPTIONS:MIDN} |
167 |
LIB_DEPENDS+= idn.17:${PORTSDIR}/dns/libidn |
160 |
LIB_DEPENDS+= idn:${PORTSDIR}/dns/libidn |
168 |
CONFIGURE_ARGS+= --with-libidn=${LOCALBASE} |
161 |
CONFIGURE_ARGS+= --with-libidn=${LOCALBASE} |
169 |
.else |
162 |
.else |
170 |
CONFIGURE_ARGS+= --without-libidn |
163 |
CONFIGURE_ARGS+= --without-libidn |
171 |
.endif |
164 |
.endif |
172 |
|
165 |
|
173 |
.if defined(WITH_LIBSSH2) |
166 |
.if ${PORT_OPTIONS:MLIBSSH2} |
174 |
LIB_DEPENDS+= ssh2.1:${PORTSDIR}/security/libssh2 |
167 |
LIB_DEPENDS+= ssh2:${PORTSDIR}/security/libssh2 |
175 |
CONFIGURE_ARGS+= --with-libssh2=${LOCALBASE} |
168 |
CONFIGURE_ARGS+= --with-libssh2=${LOCALBASE} |
176 |
.else |
169 |
.else |
177 |
CONFIGURE_ARGS+= --without-libssh2 |
170 |
CONFIGURE_ARGS+= --without-libssh2 |
178 |
.endif |
171 |
.endif |
179 |
|
172 |
|
180 |
.if defined(WITH_CURL_DEBUG) |
173 |
.if ${PORT_OPTIONS:MCURL_DEBUG} |
181 |
CONFIGURE_ARGS+= --enable-debug |
174 |
CONFIGURE_ARGS+= --enable-debug |
182 |
.endif |
175 |
.endif |
183 |
|
176 |
|
184 |
.if defined(WITH_RTMP) |
177 |
.if ${PORT_OPTIONS:MRTMP} |
185 |
LIB_DEPENDS+= rtmp.0:${PORTSDIR}/multimedia/rtmpdump |
178 |
LIB_DEPENDS+= rtmp:${PORTSDIR}/multimedia/rtmpdump |
186 |
CONFIGURE_ARGS+= --with-librtmp=${LOCALBASE} |
179 |
CONFIGURE_ARGS+= --with-librtmp=${LOCALBASE} |
187 |
.else |
180 |
.else |
188 |
CONFIGURE_ARGS+= --without-librtmp |
181 |
CONFIGURE_ARGS+= --without-librtmp |
189 |
.endif |
182 |
.endif |
190 |
|
183 |
|
191 |
.if defined(WITH_TRACKMEMORY) |
184 |
.if ${PORT_OPTIONS:MTRACKMEMORY} |
192 |
CONFIGURE_ARGS+= --enable-curldebug |
185 |
CONFIGURE_ARGS+= --enable-curldebug |
193 |
.else |
186 |
.else |
194 |
CONFIGURE_ARGS+= --disable-curldebug |
187 |
CONFIGURE_ARGS+= --disable-curldebug |
195 |
.endif |
188 |
.endif |
196 |
|
189 |
|
197 |
.if defined(WITH_NTLM) |
190 |
.if ${PORT_OPTIONS:MNTLM} |
198 |
CONFIGURE_ARGS+= --enable-ntlm |
191 |
CONFIGURE_ARGS+= --enable-ntlm |
199 |
.else |
192 |
.else |
200 |
CONFIGURE_ARGS+= --disable-ntlm |
193 |
CONFIGURE_ARGS+= --disable-ntlm |
201 |
.endif |
194 |
.endif |
202 |
|
195 |
|
203 |
.if !defined(WITHOUT_PROXY) |
196 |
.if ${PORT_OPTIONS:MPROXY} |
204 |
CONFIGURE_ARGS+= --enable-proxy |
197 |
CONFIGURE_ARGS+= --enable-proxy |
205 |
.else |
198 |
.else |
206 |
CONFIGURE_ARGS+= --disable-proxy |
199 |
CONFIGURE_ARGS+= --disable-proxy |
Lines 212-239
Link Here
|
212 |
|
205 |
|
213 |
post-install: |
206 |
post-install: |
214 |
.if !defined(BUILDING_HIPHOP) |
207 |
.if !defined(BUILDING_HIPHOP) |
215 |
${INSTALL_DATA} ${WRKSRC}/docs/libcurl/libcurl.m4 ${PREFIX}/share/aclocal |
208 |
${INSTALL_DATA} ${WRKSRC}/docs/libcurl/libcurl.m4 ${PREFIX}/share/aclocal/ |
216 |
.if !defined(NOPORTDOCS) |
209 |
.if ${PORT_OPTIONS:MDOCS} |
217 |
${MKDIR} ${DOCSDIR}/ ${DOCSDIR}/libcurl/ |
210 |
${MKDIR} ${DOCSDIR}/ ${DOCSDIR}/libcurl/ |
218 |
cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}/ |
211 |
cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}/ |
219 |
cd ${WRKSRC}/docs/libcurl/ && ${INSTALL_DATA} ABI *.html *.pdf *.m4 ${DOCSDIR}/libcurl/ |
212 |
cd ${WRKSRC}/docs/libcurl/ && ${INSTALL_DATA} ABI *.html *.pdf *.m4 ${DOCSDIR}/libcurl/ |
220 |
.endif |
213 |
.endif |
221 |
.if !defined(NOPORTEXAMPLES) |
214 |
.if ${PORT_OPTIONS:MEXAMPLES} |
222 |
${MKDIR} ${EXAMPLESDIR}/ |
215 |
${MKDIR} ${EXAMPLESDIR}/ |
223 |
cd ${WRKSRC}/docs/examples/ && ${INSTALL_DATA} README Makefile.example makefile* *.c *.cc ${EXAMPLESDIR}/ |
216 |
cd ${WRKSRC}/docs/examples/ && ${INSTALL_DATA} README Makefile.example makefile* *.c *.cpp ${EXAMPLESDIR}/ |
224 |
.endif |
217 |
.endif |
225 |
.endif |
218 |
.endif |
226 |
|
219 |
|
227 |
# Setting LC_ALL=C is a kludge; maybe curl/libcurl shouldn't actually use |
220 |
# Setting LC_ALL=C is a kludge; maybe curl/libcurl shouldn't actually use |
228 |
# the user's locale when dates are sent to the server. |
221 |
# the user's locale when dates are sent to the server. |
229 |
test: build |
222 |
regression-test: build |
230 |
.if defined(WITHOUT_PROXY) |
223 |
.if empty(PORT_OPTIONS:MPROXY) |
231 |
@${ECHO_MSG} "******************************************" |
224 |
@${ECHO_MSG} "******************************************" |
232 |
@${ECHO_MSG} "* You have disabled curl proxy support. *" |
225 |
@${ECHO_MSG} "* You have disabled curl proxy support. *" |
233 |
@${ECHO_MSG} "* Some tests SHALL FAIL! *" |
226 |
@${ECHO_MSG} "* Some tests SHALL FAIL! *" |
234 |
@${ECHO_MSG} "* This is being addressed. *" |
227 |
@${ECHO_MSG} "* This is being addressed. *" |
235 |
@${ECHO_MSG} "******************************************" |
228 |
@${ECHO_MSG} "******************************************" |
236 |
.endif |
229 |
.endif |
237 |
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} LC_ALL=C ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test |
230 |
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} LC_ALL=C ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test |
238 |
|
231 |
|
239 |
.include <bsd.port.mk> |
232 |
.include <bsd.port.mk> |