nghttp2: bump to 1.39.1
[librecmc/librecmc.git] / package / libs / nghttp2 / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=nghttp2
4 PKG_VERSION:=1.39.1
5 PKG_RELEASE:=1
6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
7
8 PKG_SOURCE_URL:=https://github.com/nghttp2/nghttp2/releases/download/v$(PKG_VERSION)
9 PKG_HASH:=679160766401f474731fd60c3aca095f88451e3cc4709b72306e4c34cf981448
10
11 PKG_LICENSE:=MIT
12 PKG_LICENSE_FILES:=COPYING
13 CMAKE_INSTALL:=1
14
15 include $(INCLUDE_DIR)/package.mk
16 include $(INCLUDE_DIR)/cmake.mk
17
18 define Package/libnghttp2
19   SECTION:=libs
20   CATEGORY:=Libraries
21   TITLE:=Library implementing the framing layer of HTTP/2
22   MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
23   ABI_VERSION:=14
24 endef
25
26 define Package/libnghttp2/description
27  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
28 endef
29
30 CMAKE_OPTIONS += \
31         -DENABLE_LIB_ONLY=ON
32
33 define Build/InstallDev
34         $(INSTALL_DIR) $(1)/usr/include/nghttp2
35         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/nghttp2/*.h $(1)/usr/include/nghttp2/
36         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
37         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig/
38         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnghttp2.so* $(1)/usr/lib/
39 endef
40
41 define Package/libnghttp2/install
42         $(INSTALL_DIR) $(1)/usr/lib
43         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnghttp2.so.* $(1)/usr/lib
44 endef
45
46 $(eval $(call BuildPackage,libnghttp2))