Skip to content

Commit 9d66aee

Browse files
committed
curl retrportado
1 parent c55ed7e commit 9d66aee

File tree

5 files changed

+533
-0
lines changed

5 files changed

+533
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# $OpenBSD: Makefile,v 1.141 2019/02/11 20:34:39 naddy Exp $
2+
3+
COMMENT= get files from FTP, Gopher, HTTP or HTTPS servers
4+
5+
DISTNAME= curl-7.64.0
6+
SHARED_LIBS= curl 25.20 # 9.0
7+
CATEGORIES= net
8+
HOMEPAGE= https://curl.haxx.se/
9+
10+
MAINTAINER= Christian Weisgerber <[email protected]>
11+
12+
# MIT
13+
PERMIT_PACKAGE_CDROM= Yes
14+
15+
MASTER_SITES= https://curl.haxx.se/download/
16+
EXTRACT_SUFX= .tar.xz
17+
18+
LIB_DEPENDS= www/nghttp2
19+
WANTLIB= c crypto pthread nghttp2 ssl z
20+
21+
AUTOCONF_VERSION=2.69
22+
CONFIGURE_STYLE=autoconf
23+
# Beware of circular dependency curl -> brotli -> cmake -> curl
24+
CONFIGURE_ARGS= --with-ca-bundle=/etc/ssl/cert.pem \
25+
--without-brotli \
26+
--without-libidn2 \
27+
--without-libpsl \
28+
--without-libssh \
29+
--without-libssh2
30+
CONFIGURE_ENV= ac_cv_path_NROFF="/usr/bin/mandoc -Tascii"
31+
32+
# speed up some time-consuming configure tests
33+
CONFIGURE_ENV+= \
34+
curl_cv_func_select_args="int,fd_set *,struct timeval *,int" \
35+
curl_cv_func_recv_args="int,void *,size_t,int,ssize_t" \
36+
curl_cv_func_send_args="int,const void *,size_t,int,ssize_t"
37+
38+
# Note:
39+
# use ulimit -p 256 for test
40+
41+
# runsshserver: sshserver.pl --user=$USER
42+
TEST_ENV= USER=$$USER
43+
44+
.include <bsd.port.mk>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SHA256 (curl-7.64.0.tar.xz) = Ly8T+jTUSqKctEQHetfcTcbRiVhK1VLgqusG5givYAE=
2+
SIZE (curl-7.64.0.tar.xz) = 2398904
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
$OpenBSD: patch-m4_curl-compilers_m4,v 1.1 2019/02/11 20:34:39 naddy Exp $
2+
3+
The curl configure script wants to take control of the compiler
4+
flags for optimization and debugging. The actual interactions are
5+
more complex, but the gist is that the flags are stripped from
6+
CFLAGS, and if --enable-optimize or --enable-debug are specified,
7+
an approved optimization or debugging flag is added.
8+
9+
Do not strip debugging flags (-g).
10+
11+
Do not override optimization flags in CFLAGS.
12+
13+
Index: m4/curl-compilers.m4
14+
--- m4/curl-compilers.m4.orig
15+
+++ m4/curl-compilers.m4
16+
@@ -737,8 +737,8 @@ AC_DEFUN([CURL_SET_COMPILER_DEBUG_OPTS], [
17+
tmp_options=""
18+
tmp_CFLAGS="$CFLAGS"
19+
tmp_CPPFLAGS="$CPPFLAGS"
20+
- CURL_VAR_STRIP([tmp_CFLAGS],[$flags_dbg_all])
21+
- CURL_VAR_STRIP([tmp_CPPFLAGS],[$flags_dbg_all])
22+
+# CURL_VAR_STRIP([tmp_CFLAGS],[$flags_dbg_all])
23+
+# CURL_VAR_STRIP([tmp_CPPFLAGS],[$flags_dbg_all])
24+
#
25+
if test "$want_debug" = "yes"; then
26+
AC_MSG_CHECKING([if compiler accepts debug enabling options])
27+
@@ -791,7 +791,7 @@ AC_DEFUN([CURL_SET_COMPILER_OPTIMIZE_OPTS], [
28+
tmp_options=""
29+
tmp_CFLAGS="$CFLAGS"
30+
tmp_CPPFLAGS="$CPPFLAGS"
31+
- honor_optimize_option="yes"
32+
+ honor_optimize_option="no"
33+
#
34+
dnl If optimization request setting has not been explicitly specified,
35+
dnl it has been derived from the debug setting and initially assumed.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
curl is a command line tool for transferring data with URL syntax,
2+
supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS,
3+
POP3, POP3S, RTSP, SMB, SMBS, SMTP, SMTPS, Telnet and TFTP. curl
4+
supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP
5+
form based upload, proxies, cookies, user+password authentication
6+
(Basic, Digest, NTLM, Negotiate, ...), file transfer resume, proxy
7+
tunneling and a busload of other useful tricks.

0 commit comments

Comments
 (0)