diff options
author | Stan Grishin <stangri@melmac.ca> | 2023-10-18 15:39:55 +0000 |
---|---|---|
committer | Stan Grishin <stangri@melmac.ca> | 2023-10-23 14:10:54 +0000 |
commit | b1d4241cdf27dbf2ea4f2c78de6bbb3b7e876652 (patch) | |
tree | 451a364e987472bd5e7ecd3309a2f0710452cd6e /libs/nghttp3 | |
parent | 5f4405112fc0137380b28bb1a98f7048f6a02be8 (diff) |
nghttp3: add new package
* add new package to allow building of curl with HTTP/3 support
* switch to using cmake
Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'libs/nghttp3')
-rw-r--r-- | libs/nghttp3/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libs/nghttp3/Makefile b/libs/nghttp3/Makefile new file mode 100644 index 000000000..9505f2e0d --- /dev/null +++ b/libs/nghttp3/Makefile @@ -0,0 +1,38 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=nghttp3 +PKG_VERSION:=1.0.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/ngtcp2/nghttp3/releases/download/v$(PKG_VERSION)/ +PKG_HASH:=2e5b5a39415b9a0d160bbcb90b37bef7d8aee44ae504e8c0ddcb31aa92435988 + +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=COPYING +PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca> + +CMAKE_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +define Package/libnghttp3 + SECTION:=libs + CATEGORY:=Libraries + TITLE:=HTTP/3 library written in C + URL:=https://nghttp2.org/nghttp3 +endef + +define Package/libnghttp3/description + nghttp3 is a thin HTTP/3 layer over an underlying QUIC stack. +endef + +CMAKE_OPTIONS += -DENABLE_LIB_ONLY=ON + +define Package/libnghttp3/install + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnghttp3.so* $(1)/usr/lib +endef + +$(eval $(call BuildPackage,libnghttp3)) |