1
0

Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Copyright (C) 2008-2015 The LuCI Team <luci@lists.subsignal.org>
  3. #
  4. # This is free software, licensed under the Apache License, Version 2.0 .
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=luci-base
  8. LUCI_TYPE:=mod
  9. LUCI_BASENAME:=base
  10. LUCI_TITLE:=LuCI core libraries
  11. LUCI_DEPENDS:=+lua +luci-lib-nixio +luci-lib-ip +rpcd +libubus-lua +luci-lib-jsonc +liblucihttp-lua
  12. PKG_SOURCE:=v1.0.0.tar.gz
  13. PKG_SOURCE_URL:=https://github.com/jirutka/luasrcdiet/archive/
  14. PKG_HASH:=48162e63e77d009f5848f18a5cabffbdfc867d0e5e73c6d407f6af5d6880151b
  15. PKG_LICENSE:=MIT
  16. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/luasrcdiet-1.0.0
  17. include $(INCLUDE_DIR)/host-build.mk
  18. define Package/luci-base/conffiles
  19. /etc/luci-uploads
  20. /etc/config/luci
  21. /etc/config/ucitrack
  22. endef
  23. include ../../luci.mk
  24. define Host/Configure
  25. endef
  26. define Host/Compile
  27. $(MAKE) -C src/ clean po2lmo
  28. endef
  29. define Host/Install
  30. $(INSTALL_DIR) $(1)/bin
  31. $(INSTALL_DIR) $(1)/lib/lua/5.1
  32. $(INSTALL_BIN) src/po2lmo $(1)/bin/po2lmo
  33. $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/luasrcdiet $(1)/bin/luasrcdiet
  34. $(CP) $(HOST_BUILD_DIR)/luasrcdiet $(1)/lib/lua/5.1/
  35. endef
  36. $(eval $(call HostBuild))
  37. # call BuildPackage - OpenWrt buildroot signature