1
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. PKG_LICENSE:=Apache-2.0
  16. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/LuaSrcDiet-0.12.1
  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. $(MAKE) -C $(HOST_BUILD_DIR) bin/LuaSrcDiet.lua
  29. endef
  30. define Host/Install
  31. $(INSTALL_DIR) $(1)/bin
  32. $(INSTALL_BIN) src/po2lmo $(1)/bin/po2lmo
  33. $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/LuaSrcDiet.lua $(1)/bin/LuaSrcDiet
  34. endef
  35. $(eval $(call HostBuild))
  36. # call BuildPackage - OpenWrt buildroot signature