1
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #
  2. # Copyright (C) 2022 Jo-Philipp Wich <jo@mein.io>
  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 runtime
  11. LUCI_DEPENDS:=\
  12. +rpcd \
  13. +rpcd-mod-file \
  14. +rpcd-mod-luci \
  15. +rpcd-mod-ucode \
  16. +cgi-io \
  17. +ucode \
  18. +ucode-mod-fs \
  19. +ucode-mod-uci \
  20. +ucode-mod-ubus \
  21. +ucode-mod-math \
  22. +ucode-mod-html \
  23. +liblucihttp-ucode
  24. PKG_LICENSE:=MIT
  25. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)
  26. include $(INCLUDE_DIR)/host-build.mk
  27. define Package/luci-base/conffiles
  28. /etc/luci-uploads
  29. /etc/config/luci
  30. /etc/config/ucitrack
  31. endef
  32. define Package/luci-base/postinst
  33. #!/bin/sh
  34. if [ -z "$${PKG_INSTROOT}" ] && [ -f /etc/config/uhttpd ]; then
  35. if ! uci -q get uhttpd.main.ucode_prefix | grep -sq /cgi-bin/luci; then
  36. uci add_list uhttpd.main.ucode_prefix='/cgi-bin/luci=/usr/share/ucode/luci/uhttpd.uc'
  37. uci commit uhttpd
  38. service uhttpd reload
  39. fi
  40. fi
  41. exit 0
  42. endef
  43. include ../../luci.mk
  44. define Host/Configure
  45. endef
  46. define Host/Compile
  47. $(MAKE) -C src/ clean po2lmo
  48. endef
  49. define Host/Install
  50. $(INSTALL_DIR) $(1)/bin
  51. $(INSTALL_BIN) src/po2lmo $(1)/bin/po2lmo
  52. endef
  53. $(eval $(call HostBuild))
  54. # call BuildPackage - libreCMC buildroot signature