You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=nghttp2
  3. PKG_VERSION:=1.43.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:=f7d54fa6f8aed29f695ca44612136fa2359013547394d5dffeffca9e01a26b0f
  8. PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_BUILD_PARALLEL:=1
  12. include $(INCLUDE_DIR)/package.mk
  13. include $(INCLUDE_DIR)/cmake.mk
  14. define Package/libnghttp2
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. TITLE:=Library implementing the framing layer of HTTP/2
  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. $(call Build/InstallDev/cmake,$(1))
  27. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libnghttp2.pc
  28. $(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libnghttp2.pc
  29. endef
  30. define Package/libnghttp2/install
  31. $(INSTALL_DIR) $(1)/usr/lib
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnghttp2.so.* $(1)/usr/lib
  33. endef
  34. $(eval $(call BuildPackage,libnghttp2))