Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.3
  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_MD5SUM:=c4e51a60a5a26987bdce59e45d674a9e
  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))