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.2 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.4
  10. PKG_RELEASE:=1
  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/v$(PKG_VERSION)?
  15. PKG_HASH:=cf70200045b8bcb0e929c338ad421b6a291cf1038053532888dc201af3224d8b
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../devel/ninja/ninja-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/zeromq/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))