1
0

Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 +libuci-lua +luci-lib-nixio +luci-lib-ip +rpcd +libubus-lua +luci-lib-jsonc
  12. PKG_SOURCE:=LuaSrcDiet-0.12.1.tar.bz2
  13. PKG_SOURCE_URL:=https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/luasrcdiet
  14. PKG_MD5SUM:=ed7680f2896269ae8633756e7edcf09050812f78c8f49e280e63c30d14f35aea
  15. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/LuaSrcDiet-0.12.1
  16. include $(INCLUDE_DIR)/host-build.mk
  17. define Package/luci-base/conffiles
  18. /etc/luci-uploads
  19. /etc/config/luci
  20. endef
  21. include ../../luci.mk
  22. define Host/Configure
  23. endef
  24. define Host/Compile
  25. $(MAKE) -C src/ clean po2lmo
  26. $(MAKE) -C $(HOST_BUILD_DIR) bin/LuaSrcDiet.lua
  27. endef
  28. define Host/Install
  29. $(INSTALL_DIR) $(1)/bin
  30. $(INSTALL_BIN) src/po2lmo $(1)/bin/po2lmo
  31. $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/LuaSrcDiet.lua $(1)/bin/LuaSrcDiet
  32. endef
  33. $(eval $(call HostBuild))
  34. # call BuildPackage - OpenWrt buildroot signature