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.

54 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2019-2021 CZ.NIC z.s.p.o. (http://www.nic.cz/)
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=czmq
  10. PKG_VERSION:=4.2.1
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://github.com/zeromq/czmq/releases/download/v$(PKG_VERSION)/
  14. PKG_HASH:=5d720a204c2a58645d6f7643af15d563a712dad98c9d32c1ed913377daa6ac39
  15. PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
  16. PKG_LICENSE:=MPL-2.0
  17. PKG_LICENSE_FILES:=LICENSE
  18. CMAKE_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/czmq
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=CZMQ High-level C binding for ZeroMQ
  25. URL:=http://czmq.zeromq.org
  26. ABI_VERSION:=4
  27. DEPENDS:=+libzmq +libuuid +libpcre +libmicrohttpd +liblz4 +libcurl
  28. endef
  29. define Package/czmq/description
  30. High-level C binding for ZeroMQ which is high-performance asynchronous messaging
  31. library, aimed at use in distributed or concurrent applications.
  32. endef
  33. CMAKE_OPTIONS += \
  34. -DBUILD_TESTING=OFF \
  35. -DCMAKECONFIG_INSTALL_DIR=lib/cmake/czmq \
  36. -DCMAKE_SKIP_INSTALL_RPATH=ON \
  37. -DENABLE_DRAFTS=OFF
  38. define Package/czmq/install
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/zmakecert $(1)/usr/bin/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libczmq.so.* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,czmq))