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.

55 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2019 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.0
  11. PKG_RELEASE:=3
  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:=cfab29c2b3cc8a845749758a51e1dd5f5160c1ef57e2a41ea96e4c2dcc8feceb
  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. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/czmq
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=CZMQ High-level C binding for ZeroMQ
  26. URL:=http://czmq.zeromq.org
  27. ABI_VERSION:=4
  28. DEPENDS:=+libzmq +libuuid +libpcre +libmicrohttpd +liblz4 +libcurl
  29. endef
  30. define Package/czmq/description
  31. High-level C binding for ZeroMQ which is high-performance asynchronous messaging
  32. library, aimed at use in distributed or concurrent applications.
  33. endef
  34. CMAKE_OPTIONS += \
  35. -DBUILD_TESTING=OFF \
  36. -DCMAKECONFIG_INSTALL_DIR=lib/cmake/czmq \
  37. -DCMAKE_SKIP_INSTALL_RPATH=ON \
  38. -DENABLE_DRAFTS=OFF
  39. define Package/czmq/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/zmakecert $(1)/usr/bin/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libczmq.so.* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,czmq))