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.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.1.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:=f00ff419881dc2a05d0686c8467cd89b4882677fc56f31c0e2cc81c134cbb0c0
  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 +liblz4
  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))