Makefile 936 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=nghttp3
  3. PKG_VERSION:=1.1.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/ngtcp2/nghttp3/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=b3ffb23a90442a0eafe8bfbefbc8b4ffb5179d68a7c0b8a416a34cf04b28d7c5
  8. PKG_LICENSE:=MIT
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
  11. CMAKE_INSTALL:=1
  12. include $(INCLUDE_DIR)/package.mk
  13. include $(INCLUDE_DIR)/cmake.mk
  14. define Package/libnghttp3
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. TITLE:=HTTP/3 library written in C
  18. URL:=https://nghttp2.org/nghttp3
  19. endef
  20. define Package/libnghttp3/description
  21. nghttp3 is a thin HTTP/3 layer over an underlying QUIC stack.
  22. endef
  23. CMAKE_OPTIONS += -DENABLE_LIB_ONLY=ON
  24. define Package/libnghttp3/install
  25. $(INSTALL_DIR) $(1)/usr/lib
  26. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnghttp3.so* $(1)/usr/lib
  27. endef
  28. $(eval $(call BuildPackage,libnghttp3))