Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=nghttp2
  3. PKG_VERSION:=1.34.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:=ecb0c013141495e24bd6deca022b5a92097a7848a0c17c4e5af1243a97fa622e
  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. 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. $(INSTALL_DIR) $(1)/usr/include/nghttp2
  26. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/nghttp2/*.h $(1)/usr/include/nghttp2/
  27. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  28. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig/
  29. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnghttp2.so* $(1)/usr/lib/
  30. endef
  31. define Package/libnghttp2/install
  32. $(INSTALL_DIR) $(1)/usr/lib
  33. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnghttp2.so* $(1)/usr/lib
  34. endef
  35. $(eval $(call BuildPackage,libnghttp2))