-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
533 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# $OpenBSD: Makefile,v 1.141 2019/02/11 20:34:39 naddy Exp $ | ||
|
||
COMMENT= get files from FTP, Gopher, HTTP or HTTPS servers | ||
|
||
DISTNAME= curl-7.64.0 | ||
SHARED_LIBS= curl 25.20 # 9.0 | ||
CATEGORIES= net | ||
HOMEPAGE= https://curl.haxx.se/ | ||
|
||
MAINTAINER= Christian Weisgerber <naddy@openbsd.org> | ||
|
||
# MIT | ||
PERMIT_PACKAGE_CDROM= Yes | ||
|
||
MASTER_SITES= https://curl.haxx.se/download/ | ||
EXTRACT_SUFX= .tar.xz | ||
|
||
LIB_DEPENDS= www/nghttp2 | ||
WANTLIB= c crypto pthread nghttp2 ssl z | ||
|
||
AUTOCONF_VERSION=2.69 | ||
CONFIGURE_STYLE=autoconf | ||
# Beware of circular dependency curl -> brotli -> cmake -> curl | ||
CONFIGURE_ARGS= --with-ca-bundle=/etc/ssl/cert.pem \ | ||
--without-brotli \ | ||
--without-libidn2 \ | ||
--without-libpsl \ | ||
--without-libssh \ | ||
--without-libssh2 | ||
CONFIGURE_ENV= ac_cv_path_NROFF="/usr/bin/mandoc -Tascii" | ||
|
||
# speed up some time-consuming configure tests | ||
CONFIGURE_ENV+= \ | ||
curl_cv_func_select_args="int,fd_set *,struct timeval *,int" \ | ||
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" | ||
|
||
# Note: | ||
# use ulimit -p 256 for test | ||
|
||
# runsshserver: sshserver.pl --user=$USER | ||
TEST_ENV= USER=$$USER | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SHA256 (curl-7.64.0.tar.xz) = Ly8T+jTUSqKctEQHetfcTcbRiVhK1VLgqusG5givYAE= | ||
SIZE (curl-7.64.0.tar.xz) = 2398904 |
35 changes: 35 additions & 0 deletions
35
arboldes/usr/ports/mystuff/net/curl/patches/patch-m4_curl-compilers_m4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
$OpenBSD: patch-m4_curl-compilers_m4,v 1.1 2019/02/11 20:34:39 naddy Exp $ | ||
|
||
The curl configure script wants to take control of the compiler | ||
flags for optimization and debugging. The actual interactions are | ||
more complex, but the gist is that the flags are stripped from | ||
CFLAGS, and if --enable-optimize or --enable-debug are specified, | ||
an approved optimization or debugging flag is added. | ||
|
||
Do not strip debugging flags (-g). | ||
|
||
Do not override optimization flags in CFLAGS. | ||
|
||
Index: m4/curl-compilers.m4 | ||
--- m4/curl-compilers.m4.orig | ||
+++ m4/curl-compilers.m4 | ||
@@ -737,8 +737,8 @@ AC_DEFUN([CURL_SET_COMPILER_DEBUG_OPTS], [ | ||
tmp_options="" | ||
tmp_CFLAGS="$CFLAGS" | ||
tmp_CPPFLAGS="$CPPFLAGS" | ||
- CURL_VAR_STRIP([tmp_CFLAGS],[$flags_dbg_all]) | ||
- CURL_VAR_STRIP([tmp_CPPFLAGS],[$flags_dbg_all]) | ||
+# CURL_VAR_STRIP([tmp_CFLAGS],[$flags_dbg_all]) | ||
+# CURL_VAR_STRIP([tmp_CPPFLAGS],[$flags_dbg_all]) | ||
# | ||
if test "$want_debug" = "yes"; then | ||
AC_MSG_CHECKING([if compiler accepts debug enabling options]) | ||
@@ -791,7 +791,7 @@ AC_DEFUN([CURL_SET_COMPILER_OPTIMIZE_OPTS], [ | ||
tmp_options="" | ||
tmp_CFLAGS="$CFLAGS" | ||
tmp_CPPFLAGS="$CPPFLAGS" | ||
- honor_optimize_option="yes" | ||
+ honor_optimize_option="no" | ||
# | ||
dnl If optimization request setting has not been explicitly specified, | ||
dnl it has been derived from the debug setting and initially assumed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
curl is a command line tool for transferring data with URL syntax, | ||
supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, | ||
POP3, POP3S, RTSP, SMB, SMBS, SMTP, SMTPS, Telnet and TFTP. curl | ||
supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP | ||
form based upload, proxies, cookies, user+password authentication | ||
(Basic, Digest, NTLM, Negotiate, ...), file transfer resume, proxy | ||
tunneling and a busload of other useful tricks. |
Oops, something went wrong.