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.

57 lines
1.5 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:=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:=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. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/autotools.mk
  22. define Package/czmq
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=CZMQ
  26. DEPENDS:=+libzmq +libuuid +libpcre +libmicrohttpd +liblz4 +libcurl
  27. endef
  28. define Package/czmq/description
  29. High-level C binding for ØMQ
  30. endef
  31. TARGET_CFLAGS += --std=c99
  32. CONFIGURE_ARGS += --without-docs
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  36. $(INSTALL_DIR) $(1)/usr/include
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  39. endef
  40. define Package/czmq/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/zmakecert $(1)/usr/bin/zmakecert
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libczmq.so* $(1)/usr/lib/
  45. endef
  46. $(eval $(call BuildPackage,czmq))