88db9d51ce4addf813b3e40b7893c2fa0d08f124
[feed/routing.git] / luci-app-bmx6 / Makefile
1 # Copyright (C) 2011 Pau Escrich <pau@dabax.net>
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License along
14 # with this program; if not, write to the Free Software Foundation, Inc.,
15 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 #
17 # The full GNU General Public License is included in this distribution in
18 # the file called "COPYING".
19
20 include $(TOPDIR)/rules.mk
21
22 PKG_NAME:=luci-app-bmx6
23 PKG_RELEASE:=4
24
25 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
26 PKG_LICENSE:=GPL-2.0+
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/luci-app-bmx6
31 SECTION:=luci
32 CATEGORY:=LuCI
33 SUBMENU:=3. Applications
34 TITLE:= bmx6 configuration, status and visualization module
35 DEPENDS:=+luci-lib-json +luci-mod-admin-full +luci-lib-httpclient +bmx6 +luci-lib-jquery-1-4 +luci-lib-dracula
36 MAINTAINER:= Pau Escrich <p4u@dabax.net>
37 endef
38
39 define Package/luci-lib-jquery-1-4
40 SECTION:=luci
41 CATEGORY:=LuCI
42 TITLE:=LuCI - Lua Configuration Interface
43 MAINTAINER:=Gui Iribarren <gui@altermundi.net>
44 SUBMENU:=6. Libraries
45 TITLE:=jQuery 1.4 javascript library
46 endef
47
48 define Package/luci-lib-dracula
49 SECTION:=luci
50 CATEGORY:=LuCI
51 TITLE:=LuCI - Lua Configuration Interface
52 MAINTAINER:=Pau Escrich <p4u@dabax.net>
53 SUBMENU:=6. Libraries
54 TITLE:=dracula graph javascript library
55 endef
56
57 define Package/luci-app-bmx6/description
58 bmx6 web application (status and configuration) for LuCi web interface
59 endef
60
61 define Package/luci-lib-jquery-1-4/description
62 minified javascript jQuery 1.4 library
63 endef
64
65 define Package/luci-lib-dracula-graph/description
66 minified dracula javascript graph library
67 endef
68
69 define Package/luci-app-bmx6/conffiles
70 /etc/config/luci-bmx6
71 endef
72
73 define Build/Prepare
74 endef
75
76 define Build/Configure
77 endef
78
79 define Build/Compile
80 endef
81
82 define Package/luci-app-bmx6/install
83 $(CP) ./bmx6/* $(1)/
84 chmod 755 $(1)/www/cgi-bin/bmx6-info
85 endef
86
87 define Package/luci-lib-jquery-1-4/install
88 $(INSTALL_DIR) $(1)/www/luci-static/resources/jquery/
89 $(CP) ./jquery/* $(1)/www/luci-static/resources/jquery/
90 endef
91
92 define Package/luci-lib-dracula/install
93 $(INSTALL_DIR) $(1)/www/luci-static/resources/dracula
94 $(CP) ./dracula/* $(1)/www/luci-static/resources/dracula/
95 endef
96
97 $(eval $(call BuildPackage,luci-app-bmx6))
98 $(eval $(call BuildPackage,luci-lib-jquery-1-4))
99 $(eval $(call BuildPackage,luci-lib-dracula))