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.

64 lines
1.8 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:=2
  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_INSTALL:=1
  16. PKG_FIXUP:=autoreconf
  17. PKG_LICENSE:=MPLv2
  18. PKG_LICENSE_FILES:=LICENSE
  19. PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
  20. PKG_ABI_VERSION:=4
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/autotools.mk
  23. define Package/czmq
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=CZMQ High-level C binding for ZeroMQ
  27. URL:=http://czmq.zeromq.org
  28. ABI_VERSION:=$(PKG_ABI_VERSION)
  29. DEPENDS:=+libzmq +libuuid +libpcre +libmicrohttpd +liblz4 +libcurl
  30. endef
  31. define Package/czmq/description
  32. High-level C binding for ZeroMQ which is high-performance asynchronous messaging
  33. library, aimed at use in distributed or concurrent applications.
  34. endef
  35. TARGET_CFLAGS += --std=c99
  36. CONFIGURE_ARGS += --without-docs
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  40. $(INSTALL_DIR) $(1)/usr/include
  41. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  43. endef
  44. define Package/czmq/install
  45. $(INSTALL_DIR) $(1)/usr/bin
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/zmakecert $(1)/usr/bin/zmakecert
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libczmq.so.$(PKG_VERSION) $(1)/usr/lib/
  49. $(LN) /usr/lib/libczmq.so.$(PKG_VERSION) $(1)/usr/lib/libczmq.so
  50. $(LN) /usr/lib/libczmq.so.$(PKG_VERSION) $(1)/usr/lib/libczmq.so.$(PKG_ABI_VERSION)
  51. endef
  52. $(eval $(call BuildPackage,czmq))