Merge pull request #3357 from islipfd19/nghttp2-M

Add nghttp2 support
This commit is contained in:
MilhouseVH 2019-05-01 20:22:45 +01:00 committed by GitHub
commit 196843945b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 2 deletions

View File

@ -16,7 +16,7 @@ PKG_SHA256="2f2f13fa34d44aa29cb444077ad7dc4dc6d189584ad552e0aaeb06e608af6001"
PKG_LICENSE="MIT"
PKG_SITE="http://curl.haxx.se"
PKG_URL="http://curl.haxx.se/download/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain zlib openssl rtmpdump"
PKG_DEPENDS_TARGET="toolchain zlib openssl rtmpdump nghttp2"
PKG_LONGDESC="Client and library for (HTTP, HTTPS, FTP, ...) transfers."
PKG_TOOLCHAIN="configure"
@ -73,7 +73,9 @@ PKG_CONFIGURE_OPTS_TARGET="ac_cv_lib_rtmp_RTMP_Init=yes \
--without-libmetalink \
--without-libssh2 \
--with-librtmp=$SYSROOT_PREFIX/usr \
--without-libidn"
--without-libidn \
--without-libidn2 \
--with-nghttp2"
pre_configure_target() {
# link against librt because of undefined reference to 'clock_gettime'

View File

@ -0,0 +1,18 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="nghttp2"
PKG_VERSION="1.36.0"
PKG_SHA256="e9bb86157b88eda5a6844a232e039febbb52c1aa44b640acbbfabe729b8287fc"
PKG_LICENSE="MIT"
PKG_SITE="http://www.linuxfromscratch.org/blfs/view/cvs/basicnet/nghttp2.html"
PKG_URL="https://github.com/nghttp2/nghttp2/releases/download/v$PKG_VERSION/nghttp2-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="nghttp2 is an implementation of HTTP/2 and its header compression algorithm, HPACK."
PKG_TOOLCHAIN="configure"
PKG_CONFIGURE_OPTS_TARGET="--enable-lib-only"
post_makeinstall_target() {
rm -r "${INSTALL}/usr/share"
}