2017-10-06 08:53:50 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nghttp2
|
2020-06-06 12:00:37 +00:00
|
|
|
PKG_VERSION:=1.41.0
|
2019-11-23 20:25:13 +00:00
|
|
|
PKG_RELEASE:=1
|
2017-10-31 17:25:14 +00:00
|
|
|
|
2019-11-03 02:54:04 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2017-10-31 17:25:14 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/nghttp2/nghttp2/releases/download/v$(PKG_VERSION)
|
2020-06-06 12:00:37 +00:00
|
|
|
PKG_HASH:=abc25b8dc601f5b3fefe084ce50fcbdc63e3385621bee0cbfa7b57f9ec3e67c2
|
2017-10-31 17:25:14 +00:00
|
|
|
|
2017-10-06 08:53:50 +00:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
|
|
|
|
define Package/libnghttp2
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Library implementing the framing layer of HTTP/2
|
|
|
|
MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
|
2019-01-22 18:17:32 +00:00
|
|
|
ABI_VERSION:=14
|
2017-10-06 08:53:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libnghttp2/description
|
|
|
|
C library implementing the framing layer of the HTTP/2 protocol. It can be used to build a HTTP/2-capable HTTP client or server
|
|
|
|
endef
|
|
|
|
|
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DENABLE_LIB_ONLY=ON
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2019-11-03 02:54:04 +00:00
|
|
|
$(call Build/InstallDev/cmake,$(1))
|
|
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libnghttp2.pc
|
|
|
|
$(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libnghttp2.pc
|
2017-10-06 08:53:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libnghttp2/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-06-12 09:10:09 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnghttp2.so.* $(1)/usr/lib
|
2017-10-06 08:53:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libnghttp2))
|