2023-10-18 17:39:55 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nghttp3
|
2024-03-25 10:28:24 +01:00
|
|
|
PKG_VERSION:=1.2.0
|
2024-04-12 18:09:59 +02:00
|
|
|
PKG_RELEASE:=1
|
2023-10-18 17:39:55 +02:00
|
|
|
|
2024-05-03 02:00:02 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://github.com/ngtcp2/nghttp3/releases/download/v$(PKG_VERSION)/
|
|
|
|
PKG_HASH:=0cc9b943f61a135e08b80bdcc4c1181f695df18fbb5fa93509a58d7d971dca75
|
2023-10-18 17:39:55 +02:00
|
|
|
|
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2024-05-03 02:00:02 +02:00
|
|
|
PKG_MAINTAINER:=
|
2023-10-18 17:39:55 +02:00
|
|
|
|
|
|
|
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
|
2023-11-27 18:39:36 +01:00
|
|
|
nghttp3 is a thin HTTP/3 layer over an underlying QUIC stack.
|
2023-10-18 17:39:55 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
CMAKE_OPTIONS += -DENABLE_LIB_ONLY=ON
|
|
|
|
|
2024-02-21 21:46:46 +01:00
|
|
|
define Build/InstallDev
|
|
|
|
$(call Build/InstallDev/cmake,$(1))
|
|
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libnghttp3.pc
|
|
|
|
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libnghttp3.pc
|
|
|
|
endef
|
|
|
|
|
2023-10-18 17:39:55 +02:00
|
|
|
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))
|