Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ngtcp2
  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/ngtcp2/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=987d784643edea4f2859c405f7dfbc53871a9f7ae5fcddf5fb12ec5dfce1ef22
  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/libngtcp2
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. TITLE:=Implementation of QUIC protocol
  18. URL:=https://nghttp2.org/ngtcp2
  19. DEPENDS:=+libnghttp3 +libopenssl
  20. endef
  21. define Package/libngtcp2/description
  22. ngtcp2 project is an effort to implement QUIC protocol which is now being
  23. discussed in IETF QUICWG for its standardization.
  24. endef
  25. CMAKE_OPTIONS += -DENABLE_LIB_ONLY=ON
  26. define Package/libngtcp2/install
  27. $(INSTALL_DIR) $(1)/usr/lib
  28. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libngtcp2*.so* $(1)/usr/lib
  29. endef
  30. $(eval $(call BuildPackage,libngtcp2))