Merge pull request #2394 from gyr0tron/privoxy_hindi
[project/luci.git] / modules / luci-base / Makefile
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
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=luci-base
10
11 LUCI_TYPE:=mod
12 LUCI_BASENAME:=base
13
14 LUCI_TITLE:=LuCI core libraries
15 LUCI_DEPENDS:=+lua +luci-lib-nixio +luci-lib-ip +rpcd +libubus-lua +luci-lib-jsonc +liblucihttp-lua
16
17 LUCI_LUASRCDIET_VERSION:=1.0.0
18
19 PKG_SOURCE_URL:=https://github.com/jirutka/luasrcdiet.git
20 PKG_SOURCE_VERSION:=f138fc9359821d9201cd6b57cfa2fcbed5b9af97
21 PKG_SOURCE_SUBDIR:=luasrcdiet-$(LUCI_LUASRCDIET_VERSION)
22 PKG_SOURCE_PROTO:=git
23 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
24 PKG_MIRROR_HASH:=a5c9d098549fbef618e6022b701e66c8c6fb16c910e63219adad3a4e71341f72
25 PKG_LICENSE:=MIT
26
27 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_SOURCE_SUBDIR)
28
29 include $(INCLUDE_DIR)/host-build.mk
30
31 define Package/luci-base/conffiles
32 /etc/luci-uploads
33 /etc/config/luci
34 /etc/config/ucitrack
35 endef
36
37 include ../../luci.mk
38
39 define Host/Configure
40 endef
41
42 define Host/Compile
43 $(MAKE) -C src/ clean po2lmo jsmin
44 endef
45
46 define Host/Install
47 $(INSTALL_DIR) $(1)/bin
48 $(INSTALL_DIR) $(1)/lib/lua/5.1
49 $(INSTALL_BIN) src/po2lmo $(1)/bin/po2lmo
50 $(INSTALL_BIN) src/jsmin $(1)/bin/jsmin
51 $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/luasrcdiet $(1)/bin/luasrcdiet
52 $(CP) $(HOST_BUILD_DIR)/luasrcdiet $(1)/lib/lua/5.1/
53 endef
54
55 $(eval $(call HostBuild))
56
57 # call BuildPackage - OpenWrt buildroot signature