2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2018-09-15 02:25:26 +01:00
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2013-12-23 22:14:08 +01:00
|
|
|
|
|
|
|
|
PKG_NAME="curl"
|
2022-05-11 11:11:55 +00:00
|
|
|
PKG_VERSION="7.83.1"
|
|
|
|
|
PKG_SHA256="2cb9c2356e7263a1272fd1435ef7cdebf2cd21400ec287b068396deb705c22c4"
|
2013-12-23 22:14:08 +01:00
|
|
|
PKG_LICENSE="MIT"
|
2021-02-03 12:28:04 +00:00
|
|
|
PKG_SITE="https://curl.haxx.se"
|
|
|
|
|
PKG_URL="https://curl.haxx.se/download/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2021-03-06 10:05:52 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain zlib openssl rtmpdump libidn2 nghttp2"
|
2018-10-22 15:06:12 +02:00
|
|
|
PKG_LONGDESC="Client and library for (HTTP, HTTPS, FTP, ...) transfers."
|
2017-10-24 23:44:02 +02:00
|
|
|
PKG_TOOLCHAIN="configure"
|
2013-12-23 22:14:08 +01:00
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="ac_cv_lib_rtmp_RTMP_Init=yes \
|
|
|
|
|
ac_cv_header_librtmp_rtmp_h=yes \
|
|
|
|
|
--disable-debug \
|
|
|
|
|
--enable-optimize \
|
|
|
|
|
--enable-warnings \
|
|
|
|
|
--disable-curldebug \
|
|
|
|
|
--disable-ares \
|
|
|
|
|
--enable-largefile \
|
|
|
|
|
--enable-http \
|
|
|
|
|
--enable-ftp \
|
|
|
|
|
--enable-file \
|
|
|
|
|
--disable-ldap \
|
|
|
|
|
--disable-ldaps \
|
2014-03-19 22:21:59 +02:00
|
|
|
--enable-rtsp \
|
2013-12-23 22:14:08 +01:00
|
|
|
--enable-proxy \
|
|
|
|
|
--disable-dict \
|
|
|
|
|
--disable-telnet \
|
|
|
|
|
--disable-tftp \
|
|
|
|
|
--disable-pop3 \
|
|
|
|
|
--disable-imap \
|
2016-01-28 00:54:31 +01:00
|
|
|
--disable-smb \
|
2013-12-23 22:14:08 +01:00
|
|
|
--disable-smtp \
|
2016-01-28 00:54:31 +01:00
|
|
|
--disable-gopher \
|
2020-06-19 00:46:23 +00:00
|
|
|
--disable-mqtt \
|
2013-12-23 22:14:08 +01:00
|
|
|
--disable-manual \
|
|
|
|
|
--enable-libgcc \
|
|
|
|
|
--enable-ipv6 \
|
|
|
|
|
--enable-versioned-symbols \
|
|
|
|
|
--enable-nonblocking \
|
|
|
|
|
--enable-threaded-resolver \
|
|
|
|
|
--enable-verbose \
|
|
|
|
|
--disable-sspi \
|
|
|
|
|
--enable-crypto-auth \
|
|
|
|
|
--enable-cookies \
|
2016-01-28 00:54:31 +01:00
|
|
|
--enable-symbol-hiding \
|
2013-12-23 22:14:08 +01:00
|
|
|
--disable-soname-bump \
|
|
|
|
|
--with-gnu-ld \
|
|
|
|
|
--without-krb4 \
|
|
|
|
|
--without-spnego \
|
|
|
|
|
--without-gssapi \
|
|
|
|
|
--with-zlib \
|
2020-10-12 19:01:27 +00:00
|
|
|
--without-brotli \
|
|
|
|
|
--without-zstd \
|
2013-12-23 22:14:08 +01:00
|
|
|
--without-egd-socket \
|
|
|
|
|
--enable-thread \
|
|
|
|
|
--with-random=/dev/urandom \
|
2021-03-06 10:05:52 +01:00
|
|
|
--without-gnutls \
|
|
|
|
|
--with-ssl \
|
2019-07-18 18:01:00 +00:00
|
|
|
--without-mbedtls \
|
2013-12-23 22:14:08 +01:00
|
|
|
--without-nss \
|
2018-07-13 13:02:47 +01:00
|
|
|
--with-ca-bundle=/run/libreelec/cacert.pem \
|
2013-12-23 22:14:08 +01:00
|
|
|
--without-ca-path \
|
2016-01-28 00:54:31 +01:00
|
|
|
--without-libpsl \
|
2013-12-23 22:14:08 +01:00
|
|
|
--without-libssh2 \
|
2019-07-18 18:01:00 +00:00
|
|
|
--with-librtmp \
|
|
|
|
|
--with-libidn2 \
|
2019-03-07 08:24:08 -05:00
|
|
|
--with-nghttp2"
|
2013-12-23 22:14:08 +01:00
|
|
|
|
2022-01-07 14:41:32 +00:00
|
|
|
post_configure_target() {
|
|
|
|
|
libtool_remove_rpath libtool
|
|
|
|
|
}
|
|
|
|
|
|
2013-12-23 22:14:08 +01:00
|
|
|
post_makeinstall_target() {
|
2021-01-19 19:34:21 +00:00
|
|
|
rm -rf ${INSTALL}/usr/share/zsh
|
2013-12-23 22:14:08 +01:00
|
|
|
|
2021-07-01 23:43:14 +02:00
|
|
|
rm -rf ${INSTALL}/usr/bin/${PKG_NAME}-config
|
|
|
|
|
cp ${PKG_NAME}-config ${TOOLCHAIN}/bin
|
|
|
|
|
sed -e "s:\(['= ]\)/usr:\\1${PKG_ORIG_SYSROOT_PREFIX}/usr:g" -i ${TOOLCHAIN}/bin/${PKG_NAME}-config
|
|
|
|
|
chmod +x ${TOOLCHAIN}/bin/${PKG_NAME}-config
|
2013-12-23 22:14:08 +01:00
|
|
|
}
|