Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=nghttp2
  3. PKG_VERSION:=1.57.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:=9210b0113109f43be526ac5835d58a701411821a4d39e155c40d67c40f47a958
  8. PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=COPYING
  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. ABI_VERSION:=14
  18. endef
  19. define Package/libnghttp2/description
  20. 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
  21. endef
  22. CMAKE_OPTIONS += \
  23. -DENABLE_LIB_ONLY=ON
  24. define Build/InstallDev
  25. $(call Build/InstallDev/cmake,$(1))
  26. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libnghttp2.pc
  27. $(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libnghttp2.pc
  28. endef
  29. define Package/libnghttp2/install
  30. $(INSTALL_DIR) $(1)/usr/lib
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnghttp2.so.* $(1)/usr/lib
  32. endef
  33. $(eval $(call BuildPackage,libnghttp2))