Makefile 1.3 KB

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