curl: build with cmake

versioned symbols are not available with cmake builds
all 93 exported symbols are available in the cmake libcurl.so
  nm -D curl-8.5.0/usr/lib/libcurl.so  | grep " T " | wc -l

cmake compiled curl -V matches configure compiled

$ curl-8.5.0/usr/bin/curl -V
curl 8.5.0 (Linux) libcurl/8.5.0 OpenSSL/3.0.10 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh/0.10.6/openssl/zlib nghttp2/1.58.0 librtmp/2.3 OpenLDAP/2.6.6
Release-Date: 2023-12-06
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd
This commit is contained in:
Rudi Heitbaum 2024-01-21 05:04:14 +00:00
parent 488e64e09c
commit dd92e05bbc

View File

@ -10,61 +10,50 @@ PKG_SITE="https://curl.haxx.se"
PKG_URL="https://curl.haxx.se/download/${PKG_NAME}-${PKG_VERSION}.tar.xz" PKG_URL="https://curl.haxx.se/download/${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain zlib openssl rtmpdump libidn2 nghttp2" PKG_DEPENDS_TARGET="toolchain zlib openssl rtmpdump libidn2 nghttp2"
PKG_LONGDESC="Client and library for (HTTP, HTTPS, FTP, ...) transfers." PKG_LONGDESC="Client and library for (HTTP, HTTPS, FTP, ...) transfers."
PKG_TOOLCHAIN="configure"
PKG_CONFIGURE_OPTS_TARGET="ac_cv_lib_rtmp_RTMP_Init=yes \ PKG_CMAKE_OPTS_TARGET="-DENABLE_DEBUG=OFF \
ac_cv_header_librtmp_rtmp_h=yes \ -DCURL_LTO=ON \
--disable-debug \ -DCURL_WERROR=ON \
--enable-optimize \ -DENABLE_CURLDEBUG=OFF \
--enable-warnings \ -DENABLE_ARES=OFF \
--disable-curldebug \ -DCURL_DISABLE_HTTP=OFF \
--disable-ares \ -DCURL_DISABLE_FTP=OFF \
--enable-largefile \ -DCURL_DISABLE_FILE=OFF \
--enable-http \ -DCURL_DISABLE_LDAP=ON \
--enable-ftp \ -DCURL_DISABLE_LDAPS=ON \
--enable-file \ -DCURL_DISABLE_RTSP=OFF \
--disable-ldap \ -DCURL_DISABLE_PROXY=OFF \
--disable-ldaps \ -DCURL_DISABLE_DICT=ON \
--enable-rtsp \ -DCURL_DISABLE_TELNET=ON \
--enable-proxy \ -DCURL_DISABLE_TFTP=ON \
--disable-dict \ -DCURL_DISABLE_POP3=ON \
--disable-telnet \ -DCURL_DISABLE_IMAP=ON \
--disable-tftp \ -DCURL_DISABLE_SMB=ON \
--disable-pop3 \ -DCURL_DISABLE_SMTP=ON \
--disable-imap \ -DCURL_DISABLE_GOPHER=ON \
--disable-smb \ -DCURL_DISABLE_MQTT=ON \
--disable-smtp \ -DENABLE_CURL_MANUAL=OFF \
--disable-gopher \ -DENABLE_IPV6=ON \
--disable-mqtt \ -DENABLE_THREADED_RESOLVER=ON \
--disable-manual \ -DCURL_DISABLE_VERBOSE_STRINGS=OFF \
--enable-libgcc \ -DCURL_WINDOWS_SSPI=OFF \
--enable-ipv6 \ -DCURL_DISABLE_COOKIES=OFF \
--enable-versioned-symbols \ -DCURL_HIDDEN_SYMBOLS=ON \
--enable-threaded-resolver \ -DCURL_USE_GSSAPI=OFF \
--enable-verbose \ -DUSE_ZLIB=ON \
--disable-sspi \ -DCURL_BROTLI=OFF \
--enable-cookies \ -DCURL_ZSTD=OFF \
--enable-symbol-hiding \ -DRANDOM_FILE=/dev/urandom \
--with-gnu-ld \ -DCURL_USE_GNUTLS=OFF \
--without-gssapi \ -DCURL_ENABLE_SSL=ON \
--with-zlib \ -DCURL_USE_MBEDTLS=OFF \
--without-brotli \ -DCURL_CA_BUNDLE=/run/libreelec/cacert.pem \
--without-zstd \ -DCURL_CA_PATH=none \
--with-random=/dev/urandom \ -DCURL_USE_LIBPSL=OFF \
--without-gnutls \ -DCURL_USE_LIBSSH2=OFF \
--with-ssl \ -DUSE_LIBRTMP=ON \
--without-mbedtls \ -DUSE_LIBIDN2=ON \
--with-ca-bundle=/run/libreelec/cacert.pem \ -DUSE_NGHTTP2=ON"
--without-ca-path \
--without-libpsl \
--without-libssh2 \
--with-librtmp \
--with-libidn2 \
--with-nghttp2"
post_configure_target() {
libtool_remove_rpath libtool
}
post_makeinstall_target() { post_makeinstall_target() {
rm -rf ${INSTALL}/usr/share/zsh rm -rf ${INSTALL}/usr/share/zsh