Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Copyright (C) [2011-2012] [TheClashingRocks.org]
  2. #
  3. # Author: Jiva Nath Bagale <jnbagale@gmail.com>
  4. # author: Victor Perron <victor@iso3103.net>
  5. #
  6. # This is free software, licensed under the GNU General Public License v2.
  7. # See /LICENSE for more information.
  8. #
  9. #
  10. include $(TOPDIR)/rules.mk
  11. PKG_NAME:=zeromq
  12. PKG_VERSION:=master
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://github.com/zeromq/libzmq.git
  15. PKG_SOURCE:=$(PKG_NAME).tar.gz
  16. PKG_SOURCE_VERSION:=HEAD
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/zeromq
  22. MAINTAINER:=victor@iso3103.net
  23. TITLE:=zeromq
  24. SECTION:=libs
  25. DEPENDS:=+libstdcpp +libpthread +librt +libsodium
  26. CATEGORY:=Libraries
  27. URL:=http://www.zeromq.org/
  28. endef
  29. define Package/zeromq/description
  30. The library provides light weight messaging services using an intelligent transport layer.
  31. It can carry messages across inproc, IPC, TCP and multicast and is faster than TCP for
  32. clustered products and supercomputing.
  33. endef
  34. define Build/Configure
  35. ( cd $(PKG_BUILD_DIR); ./autogen.sh );
  36. $(call Build/Configure/Default)
  37. endef
  38. TARGET_CPPFLAGS:=$(filter-out -Werror, $(TARGET_CFLAGS))
  39. define Build/InstallDev
  40. $(INSTALL_DIR) \
  41. $(1)/usr/lib \
  42. $(1)/usr/include \
  43. $(1)/usr/lib/pkgconfig
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/* \
  46. $(1)/usr/lib/
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/include/* \
  49. $(1)/usr/include/
  50. $(CP) \
  51. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
  52. $(1)/usr/lib/
  53. endef
  54. define Package/zeromq/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  57. endef
  58. $(eval $(call BuildPackage,zeromq))