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