No Description

Makefile 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Copyright (C) 2014 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:=luai2c
  9. PKG_VERSION:=1.0.0
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Frank Edelhaeuser <fedel@users.sourceforge.net>
  12. PKG_SOURCE_NAME:=i2c-lua
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=@SF/$(PKG_SOURCE_NAME)
  16. PKG_MD5SUM:=7098577f101410b201cd43a7467e408d
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/luai2c
  19. SUBMENU:=Lua
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=Lua I2C binding
  23. URL:=http://sourceforge.net/projects/i2c-lua/
  24. DEPENDS:=+liblua +kmod-i2c-core
  25. MAINTAINER:=Frank Edelhaeuser <fedel@users.sourceforge.net>
  26. endef
  27. define Package/luai2c/description
  28. This is the Lua binding for I2C. It provides access to I2C slaves supported by the kernel.
  29. endef
  30. define Package/luai2c/install
  31. $(INSTALL_DIR) $(1)/usr/lib/lua
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/i2c.so $(1)/usr/lib/lua
  33. $(INSTALL_DIR) $(1)/usr/lib/lua/i2c
  34. $(INSTALL_DATA) $(PKG_BUILD_DIR)/examples/* $(1)/usr/lib/lua/i2c
  35. endef
  36. $(eval $(call BuildPackage,luai2c))