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.

85 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # This Makefile for ZeroMQ
  8. #
  9. include $(TOPDIR)/rules.mk
  10. PKG_NAME:=zeromq
  11. PKG_VERSION:=4.1.1
  12. PKG_RELEASE:=1
  13. PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
  14. PKG_LICENSE:=GPL-3.0+
  15. PKG_LICENSE_FILES:=LICENCE.txt
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  17. PKG_SOURCE_URL:= http://download.zeromq.org
  18. PKG_MD5SUM:=73c39f5eb01b9d7eaf74a5d899f1d03d
  19. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  20. PKG_BUILD_DEPENDS:=libuuid
  21. PKG_FIXUP:=autoreconf
  22. PKG_INSTALL:=1
  23. include $(INCLUDE_DIR)/uclibc++.mk
  24. include $(INCLUDE_DIR)/package.mk
  25. define Package/libzmq
  26. TITLE:=ZeroMQ - Message Queue engine
  27. URL:=http://www.zeromq.org/
  28. SECTION:=libs
  29. CATEGORY:=Libraries
  30. DEPENDS:=+libuuid +libpthread +librt +PACKAGE_libsodium:libsodium $(CXX_DEPENDS)
  31. MENU:=1
  32. endef
  33. define Package/libzmq/config
  34. config LIBZMQ_CURVEZMQ
  35. bool "Include support for CurveZMQ security"
  36. depends on PACKAGE_libzmq
  37. default y
  38. select PACKAGE_libsodium
  39. endef
  40. define Package/libzmq/description
  41. This package contains the ZeroMQ messaging engine shared library.
  42. CurveZMQ security protocols are optional using libsodium.
  43. endef
  44. # add extra configure flags here
  45. CONFIGURE_ARGS += \
  46. --enable-static \
  47. --enable-shared
  48. ifneq ($(CONFIG_PACKAGE_libsodium),)
  49. CONFIGURE_ARGS+= --with-libsodium
  50. else
  51. CONFIGURE_ARGS+= --without-libsodium
  52. endif
  53. # add make variable overrides here
  54. MAKE_FLAGS +=
  55. define Build/InstallDev
  56. $(INSTALL_DIR) $(1)/usr/include
  57. $(CP) $(PKG_INSTALL_DIR)/usr/include/zmq.h $(1)/usr/include
  58. $(CP) $(PKG_INSTALL_DIR)/usr/include/zmq_utils.h $(1)/usr/include
  59. $(INSTALL_DIR) $(1)/usr/lib
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.{a,so*} $(1)/usr/lib/
  61. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libzmq.pc $(1)/usr/lib/pkgconfig/
  63. endef
  64. define Package/libzmq/install
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.so.* $(1)/usr/lib/
  67. endef
  68. $(eval $(call BuildPackage,libzmq))