git: 8ec683f2a9d3 - main - ftp/curl: Add STATIC option

Po-Chuan Hsieh sunpoet at FreeBSD.org
Wed Jul 21 18:15:10 UTC 2021


The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8ec683f2a9d3cac9b7721a295ee64683c257d0cb

commit 8ec683f2a9d3cac9b7721a295ee64683c257d0cb
Author:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-07-21 17:51:19 +0000
Commit:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-07-21 18:12:11 +0000

    ftp/curl: Add STATIC option
    
    PR:             254622
    Reported by:    Daniel Engberg <daniel.engberg.lists at pyret.net>
---
 ftp/curl/Makefile  | 6 ++++--
 ftp/curl/pkg-plist | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ftp/curl/Makefile b/ftp/curl/Makefile
index fecff1337762..80d051b6bc4b 100644
--- a/ftp/curl/Makefile
+++ b/ftp/curl/Makefile
@@ -30,7 +30,7 @@ CPE_VENDOR=	haxx
 
 SHEBANG_FILES=	*/*.pl
 
-OPTIONS_DEFINE=	ALTSVC BROTLI CA_BUNDLE COOKIES CURL_DEBUG DEBUG DOCS EXAMPLES IDN IPV6 METALINK NTLM PROXY PSL TLS_SRP ZSTD
+OPTIONS_DEFINE=	ALTSVC BROTLI CA_BUNDLE COOKIES CURL_DEBUG DEBUG DOCS EXAMPLES IDN IPV6 METALINK NTLM PROXY PSL STATIC TLS_SRP ZSTD
 OPTIONS_GROUP=	PROTOCOL
 OPTIONS_RADIO=	SSL
 OPTIONS_SINGLE=	GSSAPI RESOLV
@@ -38,7 +38,8 @@ OPTIONS_GROUP_PROTOCOL=	DICT FTP GOPHER HTTP HTTP2 IMAP LDAP LDAPS LIBSSH2 POP3
 OPTIONS_RADIO_SSL=	GNUTLS NSS OPENSSL WOLFSSL
 OPTIONS_SINGLE_GSSAPI=	GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT GSSAPI_NONE
 OPTIONS_SINGLE_RESOLV=	CARES THREADED_RESOLVER
-OPTIONS_DEFAULT=ALTSVC CA_BUNDLE COOKIES GSSAPI_${${SSL_DEFAULT} == base :?BASE :NONE} DICT FTP GOPHER HTTP HTTP2 IMAP LIBSSH2 NTLM OPENSSL POP3 PROXY RTSP SMTP TELNET TFTP THREADED_RESOLVER TLS_SRP
+OPTIONS_DEFAULT=ALTSVC CA_BUNDLE COOKIES GSSAPI_${${SSL_DEFAULT} == base :?BASE :NONE} DICT FTP GOPHER HTTP HTTP2 IMAP LIBSSH2 NTLM OPENSSL POP3 PROXY RTSP SMTP STATIC TELNET TFTP THREADED_RESOLVER TLS_SRP
+OPTIONS_SUB=	yes
 ALTSVC_DESC=	HTTP Alternative Services support
 CA_BUNDLE_DESC=	Enable CA bundle for OpenSSL/GnuTLS/mbedTLS
 COOKIES_DESC=	Cookies support
@@ -128,6 +129,7 @@ RTMP_USES=		pkgconfig
 RTSP_CONFIGURE_ENABLE=	rtsp
 SMB_CONFIGURE_ENABLE=	smb
 SMTP_CONFIGURE_ENABLE=	smtp
+STATIC_CONFIGURE_ENABLE=static
 TELNET_CONFIGURE_ENABLE=telnet
 TFTP_CONFIGURE_ENABLE=	tftp
 THREADED_RESOLVER_CONFIGURE_ENABLE=	pthreads threaded-resolver
diff --git a/ftp/curl/pkg-plist b/ftp/curl/pkg-plist
index f5c190800c75..6147cd1e6461 100644
--- a/ftp/curl/pkg-plist
+++ b/ftp/curl/pkg-plist
@@ -10,7 +10,7 @@ include/curl/stdcheaders.h
 include/curl/system.h
 include/curl/typecheck-gcc.h
 include/curl/urlapi.h
-lib/libcurl.a
+%%STATIC%%lib/libcurl.a
 lib/libcurl.so
 lib/libcurl.so.4
 lib/libcurl.so.4.7.0


More information about the dev-commits-ports-main mailing list