Files
Arch-R/packages/web/curl/package.mk

85 lines
3.5 KiB
Makefile
Raw Normal View History

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)
PKG_NAME="curl"
PKG_VERSION="7.83.1"
PKG_SHA256="2cb9c2356e7263a1272fd1435ef7cdebf2cd21400ec287b068396deb705c22c4"
PKG_LICENSE="MIT"
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"
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 \
--enable-proxy \
--disable-dict \
--disable-telnet \
--disable-tftp \
--disable-pop3 \
--disable-imap \
2016-01-28 00:54:31 +01:00
--disable-smb \
--disable-smtp \
2016-01-28 00:54:31 +01:00
--disable-gopher \
--disable-mqtt \
--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 \
--disable-soname-bump \
--with-gnu-ld \
--without-krb4 \
--without-spnego \
--without-gssapi \
--with-zlib \
--without-brotli \
--without-zstd \
--without-egd-socket \
--enable-thread \
--with-random=/dev/urandom \
2021-03-06 10:05:52 +01:00
--without-gnutls \
--with-ssl \
--without-mbedtls \
--without-nss \
--with-ca-bundle=/run/libreelec/cacert.pem \
--without-ca-path \
2016-01-28 00:54:31 +01:00
--without-libpsl \
--without-libssh2 \
--with-librtmp \
--with-libidn2 \
2019-03-07 08:24:08 -05:00
--with-nghttp2"
2022-01-07 14:41:32 +00:00
post_configure_target() {
libtool_remove_rpath libtool
}
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/share/zsh
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
}