Files
packages/libs/ngtcp2/Makefile
T
Alexandru Ardelean a68f79411e ngtcp2: update to 1.22.1
Changelog:
- Add Generic Segmentation Offload (GSO) packet aggregation via
  ngtcp2_conn_write_aggregate_pkt
- Fix CVE-2026-40170 (v1.22.1)
- Refine BBR congestion control and header protection cipher
- Improve error handling across the codebase

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-05-05 08:54:20 +03:00

48 lines
1.3 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=ngtcp2
PKG_VERSION:=1.22.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/ngtcp2/ngtcp2/releases/download/v$(PKG_VERSION)/
PKG_HASH:=dfd2c68bd64b89847c611425b9487105c46e8447b5c21e6aeb00642c8fbe2ca8
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libngtcp2
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Implementation of QUIC protocol
URL:=https://nghttp2.org/ngtcp2
DEPENDS:=+libopenssl
endef
define Package/libngtcp2/description
ngtcp2 project is an effort to implement IETF QUIC protocol
endef
CMAKE_OPTIONS += -DENABLE_LIB_ONLY=ON
define Build/InstallDev
$(call Build/InstallDev/cmake,$(1))
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libngtcp2.pc
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libngtcp2.pc
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libngtcp2_crypto_ossl.pc
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libngtcp2_crypto_ossl.pc
endef
define Package/libngtcp2/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libngtcp2*.so* $(1)/usr/lib
endef
$(eval $(call BuildPackage,libngtcp2))