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.

79 lines
1.9 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.0.5
  12. PKG_RELEASE:=2
  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. # add make variable overrides here
  49. MAKE_FLAGS +=
  50. define Build/InstallDev
  51. $(INSTALL_DIR) $(1)/usr/include
  52. $(CP) $(PKG_INSTALL_DIR)/usr/include/zmq.h $(1)/usr/include
  53. $(CP) $(PKG_INSTALL_DIR)/usr/include/zmq_utils.h $(1)/usr/include
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.{a,so*} $(1)/usr/lib/
  56. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libzmq.pc $(1)/usr/lib/pkgconfig/
  58. endef
  59. define Package/libzmq/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.so.* $(1)/usr/lib/
  62. endef
  63. $(eval $(call BuildPackage,libzmq))