Makefile 984 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Copyright (C) 2013-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:=lua-mosquitto
  9. PKG_VERSION:=0.2
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=MIT
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_URL:=https://github.com/flukso/lua-mosquitto.git
  17. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/$(PKG_NAME)
  20. SUBMENU:=Lua
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=Lua-mosquitto
  24. DEPENDS:=+libmosquitto +lua
  25. MAINTAINER:=Karl Palsson <karlp@remake.is>
  26. endef
  27. define Package/$(PKG_NAME)/description
  28. Lua bindings to libmosquitto
  29. endef
  30. define Package/$(PKG_NAME)/install
  31. $(INSTALL_DIR) $(1)/usr/lib/lua
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mosquitto.so $(1)/usr/lib/lua
  33. endef
  34. $(eval $(call BuildPackage,$(PKG_NAME)))