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.

48 lines
1.1 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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=lzmq
  9. PKG_VERSION:=0.4.2
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
  12. PKG_LICENSE:=MIT
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://codeload.github.com/zeromq/lzmq/tar.gz/v0.4.2?
  15. PKG_MD5SUM:=ec9e15bd1495f4c87959fe22a368523d
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/lzmq
  19. SUBMENU:=Lua
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=Lua ZeroMQ binding
  23. URL:=https://github.com/moteus/lzmq/
  24. DEPENDS:= +lua +libzmq
  25. endef
  26. define Package/lzmq/description
  27. LZMQ is a Lua binding to ZeroMQ.
  28. endef
  29. CMAKE_OPTIONS += \
  30. -DUSE_LUA=ON
  31. define Package/lzmq/install
  32. $(INSTALL_DIR) $(1)/usr/lib/lua
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/lzmq.so $(1)/usr/lib/lua/
  34. $(INSTALL_DIR) $(1)/usr/lib/lua/lzmq
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/lzmq/timer.so $(1)/usr/lib/lua/lzmq
  36. $(CP) -R $(PKG_BUILD_DIR)/src/lua/lzmq/* $(1)/usr/lib/lua/lzmq
  37. endef
  38. $(eval $(call BuildPackage,lzmq))