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.

81 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:=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/Default
  26. TITLE:=ZeroMQ - Code Connected
  27. URL:=http://www.zeromq.org/
  28. endef
  29. define Package/libzmq/Default/description
  30. A replacment for raw socket developing library
  31. endef
  32. define Package/libzmq
  33. $(call Package/libzmq/Default)
  34. SECTION:=libs
  35. CATEGORY:=Libraries
  36. DEPENDS:=+libuuid +libpthread +librt $(CXX_DEPENDS)
  37. TITLE+= (library)
  38. URL:=
  39. endef
  40. define Package/libzmq/description
  41. $(call Package/libzmq/Default/description)
  42. This package contains the ZeroMQ shared library, used by other
  43. programs.
  44. endef
  45. # add extra configure flags here
  46. CONFIGURE_ARGS += \
  47. --enable-static \
  48. --enable-shared
  49. # add make variable overrides here
  50. MAKE_FLAGS +=
  51. define Build/InstallDev
  52. $(INSTALL_DIR) $(1)/usr/include
  53. $(CP) $(PKG_INSTALL_DIR)/usr/include/zmq.h $(1)/usr/include
  54. $(CP) $(PKG_INSTALL_DIR)/usr/include/zmq_utils.h $(1)/usr/include
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.{a,so*} $(1)/usr/lib/
  57. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libzmq.pc $(1)/usr/lib/pkgconfig/
  59. endef
  60. define Package/libzmq/install
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.so.* $(1)/usr/lib/
  63. endef
  64. $(eval $(call BuildPackage,libzmq))