contrib: fix rebuild triggering by assembling PKG_CONFIG_DEPENDS before including...
[project/luci.git] / contrib / package / luci / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_BRANCH:=trunk
4
5 ifeq ($(DUMP),)
6 USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null && echo 1)
7 endif
8
9 PKG_NAME:=luci
10 PKG_RELEASE:=1
11
12 PKG_BUILD_PARALLEL:=0
13
14 ifeq ($(USELOCAL),1)
15 PKG_VERSION:=0.10+svn
16 else
17 PKG_SOURCE_URL:=http://svn.luci.subsignal.org/luci/$(PKG_BRANCH)
18 ifeq ($(DUMP),)
19 PKG_REV:=$(shell LC_ALL=C svn info $(CURDIR) | sed -ne's/^Revision: //p')
20 PKG_VERSION:=0.10+svn$(PKG_REV)
21 endif
22 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
23 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
24 PKG_SOURCE_PROTO:=svn
25 PKG_SOURCE_VERSION:=$(PKG_REV)
26 endif
27
28 PKG_BUILD_DEPENDS:=$(if $(STAGING_DIR_ROOT),lua/host)
29 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
30 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
31
32 LUA_TARGET:=source
33 LUCI_CFLAGS:=
34 LUCI_BUILD_PACKAGES:=
35 LUCI_SELECTED_MODULES:=
36
37 ifeq ($(BOARD),brcm-2.4)
38 MAKE_FLAGS += CRAP="1"
39 endif
40
41
42 ### Templates ###
43 define Package/luci/install/template
44 $(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
45 $(CP) -a $(PKG_BUILD_DIR)/$(2)/ipkg/* $(1)/CONTROL/ 2>/dev/null || true
46 endef
47
48
49 ### Core package ###
50 define Package/luci-lib-core
51 SECTION:=luci
52 CATEGORY:=LuCI
53 TITLE:=LuCI - Lua Configuration Interface
54 URL:=http://luci.subsignal.org/
55 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
56 SUBMENU:=Libraries
57 DEPENDS:=+lua +libuci-lua
58 TITLE:=LuCI core libraries
59 endef
60
61 define Package/luci-lib-core/install
62 $(call Package/luci/install/template,$(1),libs/core)
63 $(PKG_BUILD_DIR)/build/mkversion.sh $(1)/usr/lib/lua/luci/version.lua \
64 "OpenWrt Firmware" \
65 "$(OPENWRTVERSION)" \
66 "$(PKG_BRANCH)" \
67 "$(PKG_VERSION)"
68 endef
69
70 define Package/luci-lib-core/config
71 choice
72 prompt "Build Target"
73 default PACKAGE_luci-lib-core_source
74
75 config PACKAGE_luci-lib-core_compile
76 bool "Precompiled"
77
78 config PACKAGE_luci-lib-core_stripped
79 bool "Stripped"
80
81 config PACKAGE_luci-lib-core_srcdiet
82 bool "Compressed Source"
83
84 config PACKAGE_luci-lib-core_source
85 bool "Full Source"
86
87 endchoice
88 endef
89
90 ifneq ($(CONFIG_PACKAGE_luci-lib-core_compile),)
91 LUA_TARGET:=compile
92 endif
93
94 ifneq ($(CONFIG_PACKAGE_luci-lib-core_stripped),)
95 LUA_TARGET:=strip
96 endif
97
98 ifneq ($(CONFIG_PACKAGE_luci-lib-core_srcdiet),)
99 LUA_TARGET:=diet
100 endif
101
102 ifneq ($(CONFIG_PACKAGE_luci-lib-core),)
103 LUCI_SELECTED_MODULES+=libs/core
104 endif
105
106 LUCI_BUILD_PACKAGES += luci-lib-core
107
108
109 ### Libraries ###
110 define library
111 define Package/luci-lib-$(1)
112 SECTION:=luci
113 CATEGORY:=LuCI
114 TITLE:=LuCI - Lua Configuration Interface
115 URL:=http://luci.subsignal.org/
116 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
117 SUBMENU:=Libraries
118 TITLE:=$(if $(2),$(2),LuCI $(1) library)
119 $(if $(3),DEPENDS:=+luci-lib-core $(3))
120 endef
121
122 define Package/luci-lib-$(1)/install
123 $(call Package/luci/install/template,$$(1),libs/$(1))
124 $(call Package/luci-lib-$(1)/extra-install)
125 endef
126
127 ifneq ($(CONFIG_PACKAGE_luci-lib-$(1)),)
128 LUCI_SELECTED_MODULES+=libs/$(1)
129 endif
130
131 LUCI_BUILD_PACKAGES += luci-lib-$(1)
132 endef
133
134 define Package/luci-lib-web/conffiles
135 /etc/config/luci
136 endef
137
138 define Package/luci-lib-nixio/config
139 choice
140 prompt "TLS Provider"
141 default PACKAGE_luci-lib-nixio_notls
142
143 config PACKAGE_luci-lib-nixio_notls
144 bool "Disabled"
145
146 config PACKAGE_luci-lib-nixio_axtls
147 bool "Builtin (axTLS)"
148
149 config PACKAGE_luci-lib-nixio_cyassl
150 bool "CyaSSL"
151 select PACKAGE_libcyassl
152
153 config PACKAGE_luci-lib-nixio_openssl
154 bool "OpenSSL"
155 select PACKAGE_libopenssl
156 endchoice
157 endef
158
159
160 NIXIO_TLS:=
161
162 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_axtls),)
163 NIXIO_TLS:=axtls
164 endif
165
166 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_openssl),)
167 NIXIO_TLS:=openssl
168 endif
169
170 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_cyassl),)
171 NIXIO_TLS:=cyassl
172 LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
173 endif
174
175
176 $(eval $(call library,fastindex,Fastindex indexing module))
177 $(eval $(call library,httpclient,HTTP(S) client library,+luci-lib-web +luci-lib-nixio))
178 $(eval $(call library,ipkg,LuCI IPKG/OPKG call abstraction library))
179 $(eval $(call library,json,LuCI JSON library))
180 $(eval $(call library,lmo,LuCI LMO I18N library))
181 $(eval $(call library,lucid,LuCId Full-Stack Webserver,+luci-lib-nixio +luci-lib-web +luci-lib-px5g))
182 $(eval $(call library,lucid-http,LuCId HTTP Backend,+luci-lib-lucid))
183 $(eval $(call library,lucid-rpc,LuCId RPC Backend,+luci-lib-lucid))
184 $(eval $(call library,nixio,NIXIO POSIX library,+PACKAGE_luci-lib-nixio_openssl:libopenssl +PACKAGE_luci-lib-nixio_cyassl:libcyassl))
185 $(eval $(call library,px5g,RSA/X.509 Key Generator (required for LuCId SSL support),+luci-lib-nixio))
186 $(eval $(call library,sys,LuCI Linux/POSIX system library))
187 $(eval $(call library,web,MVC Webframework,+luci-lib-sys +luci-lib-nixio +luci-lib-core +luci-sgi-cgi +luci-lib-lmo))
188
189
190 ### Community Packages ###
191 define Package/luci-mod-freifunk-community
192 SECTION:=luci
193 CATEGORY:=LuCI
194 TITLE:=LuCI - Lua Configuration Interface
195 URL:=http://luci.subsignal.org/
196 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
197 SUBMENU:=Freifunk
198 TITLE:=Freifunk Community Meta-Package
199 DEPENDS+= \
200 +luci-lib-web +luci-app-splash \
201 +luci-app-ffwizard \
202 +luci-i18n-german \
203 +PACKAGE_luci-mod-freifunk-community:olsrd +PACKAGE_luci-mod-freifunk-community:olsrd-mod-dyn-gw-plain \
204 +PACKAGE_luci-mod-freifunk-community:olsrd-mod-txtinfo +PACKAGE_luci-mod-freifunk-community:olsrd-mod-nameservice \
205 +PACKAGE_luci-mod-freifunk-community:olsrd-mod-watchdog +PACKAGE_luci-mod-freifunk-community:kmod-tun \
206 +PACKAGE_luci-mod-freifunk-community:ip +PACKAGE_luci-mod-freifunk-community:freifunk-watchdog +luci-app-olsr +luci-app-olsr-services
207 endef
208
209 define Package/luci-mod-freifunk-community/install
210 $(call Package/luci/install/template,$(1),applications/freifunk-community)
211 endef
212
213 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk-community),)
214 LUCI_SELECTED_MODULES+=applications/freifunk-community
215 endif
216
217 LUCI_BUILD_PACKAGES += luci-mod-freifunk-community
218
219
220 ### Modules ###
221 define module
222 define Package/luci-mod-$(1)
223 SECTION:=luci
224 CATEGORY:=LuCI
225 TITLE:=LuCI - Lua Configuration Interface
226 URL:=http://luci.subsignal.org/
227 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
228 SUBMENU:=Modules
229 TITLE:=$(if $(2),$(2),LuCI $(1) module)
230 $(if $(3),DEPENDS+=$(3))
231 endef
232
233 define Package/luci-mod-$(1)/install
234 $(call Package/luci/install/template,$$(1),modules/$(1))
235 $(call Package/luci-mod-$(1)/extra-install)
236 endef
237
238 ifneq ($(CONFIG_PACKAGE_luci-mod-$(1)),)
239 LUCI_SELECTED_MODULES+=modules/$(1)
240 endif
241
242 LUCI_BUILD_PACKAGES += luci-mod-$(1)
243 endef
244
245
246 define Package/luci-mod-admin-core/extra-install
247 touch $(1)/etc/init.d/luci_fixtime || true
248 endef
249
250 define Package/luci-mod-freifunk/conffiles
251 /etc/config/freifunk
252 endef
253
254 $(eval $(call module,admin-core,Web UI Core module,+luci-lib-web +luci-i18n-english))
255 $(eval $(call module,admin-mini,LuCI Essentials - stripped down and user-friendly,+luci-mod-admin-core @BROKEN))
256 $(eval $(call module,admin-full,LuCI Administration - full-featured for full control,+luci-mod-admin-core +luci-lib-ipkg))
257 $(eval $(call module,rpc,LuCI RPC - JSON-RPC API,+luci-lib-json))
258 $(eval $(call module,freifunk,LuCI Freifunk module,+luci-mod-admin-full +luci-lib-json +PACKAGE_luci-mod-freifunk:freifunk-firewall))
259 $(eval $(call module,niu,NIU - Next Generation Interface,+luci-mod-admin-core @BROKEN))
260
261
262 ### Applications ###
263 define application
264 define Package/luci-app-$(1)
265 SECTION:=luci
266 CATEGORY:=LuCI
267 TITLE:=LuCI - Lua Configuration Interface
268 URL:=http://luci.subsignal.org/
269 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
270 SUBMENU:=Applications
271 TITLE:=$(if $(2),$(2),LuCI $(1) application)
272 DEPENDS:=+luci-mod-admin-core $(3)
273 endef
274
275 define Package/luci-app-$(1)/install
276 $(call Package/luci/install/template,$$(1),applications/luci-$(1))
277 endef
278
279 ifneq ($(CONFIG_PACKAGE_luci-app-$(1)),)
280 LUCI_SELECTED_MODULES+=applications/luci-$(1)
281 endif
282
283 LUCI_BUILD_PACKAGES += luci-app-$(1)
284 endef
285
286 define Package/luci-app-splash/conffiles
287 /etc/config/luci_splash
288 /usr/lib/luci-splash/splashtext.html
289 endef
290
291 define Package/luci-app-statistics/conffiles
292 /etc/config/luci_statistics
293 endef
294
295 define Package/luci-app-diag-devinfo/conffiles
296 /etc/config/luci_devinfo
297 endef
298
299
300 $(eval $(call application,ffwizard,Freifunk configuration wizard,\
301 +luci-mod-freifunk))
302
303 $(eval $(call application,siitwizard,SIIT IPv4-over-IPv6 configuration wizard,\
304 +PACKAGE_luci-app-siitwizard:kmod-siit))
305
306 $(eval $(call application,firewall,Firmware and Portforwarding application,\
307 +PACKAGE_luci-app-firewall:firewall))
308
309 $(eval $(call application,olsr,OLSR configuration and status module,\
310 +luci-mod-admin-full +PACKAGE_luci-app-olsr:olsrd +PACKAGE_luci-app-olsr:olsrd-mod-txtinfo))
311
312 $(eval $(call application,olsr-viz,OLSR Visualisation,\
313 +PACKAGE_luci-app-olsr-viz:luci-app-olsr +PACKAGE_luci-app-olsr-viz:olsrd-mod-txtinfo))
314
315 $(eval $(call application,olsr-services,Show services announced with the nameservice plugin,\
316 +PACKAGE_luci-app-olsr-services:olsrd-mod-nameservice +luci-mod-freifunk +PACKAGE_luci-app-olsr-services:luci-app-olsr))
317
318 $(eval $(call application,qos,Quality of Service configuration module,\
319 +PACKAGE_luci-app-qos:qos-scripts))
320
321 $(eval $(call application,splash,Freifunk DHCP-Splash application,\
322 +luci-lib-nixio +PACKAGE_luci-app-splash:tc \
323 +PACKAGE_luci-app-splash:kmod-sched +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
324 +PACKAGE_luci-app-splash:iptables-mod-ipopt))
325
326 $(eval $(call application,statistics,LuCI Statistics Application,\
327 +luci-mod-admin-full +PACKAGE_luci-app-statistics:collectd \
328 +PACKAGE_luci-app-statistics:rrdtool1 \
329 +PACKAGE_luci-app-statistics:collectd-mod-rrdtool \
330 +PACKAGE_luci-app-statistics:collectd-mod-wireless \
331 +PACKAGE_luci-app-statistics:collectd-mod-interface \
332 +PACKAGE_luci-app-statistics:collectd-mod-load))
333
334
335 $(eval $(call application,diag-core,LuCI Diagnostics Tools (Core)))
336
337 $(eval $(call application,diag-devinfo,LuCI Diagnostics Tools (Device Info),\
338 +luci-app-diag-core \
339 +PACKAGE_luci-app-diag-devinfo:smap \
340 +PACKAGE_luci-app-diag-devinfo:netdiscover \
341 +PACKAGE_luci-app-diag-devinfo:mac-to-devinfo \
342 +PACKAGE_luci-app-diag-devinfo:httping \
343 +PACKAGE_luci-app-diag-devinfo:smap-to-devinfo \
344 +PACKAGE_luci-app-diag-devinfo:netdiscover-to-devinfo))
345
346 $(eval $(call application,voice-core,LuCI Voice Software (Core)))
347
348 $(eval $(call application,voice-diag,LuCI Voice Software (Diagnostics),\
349 +luci-app-voice-core +luci-app-diag-devinfo))
350
351 $(eval $(call application,upnp,Universal Plug & Play configuration module,\
352 +PACKAGE_luci-app-upnp:miniupnpd))
353
354 $(eval $(call application,ntpc,NTP time synchronisation configuration module,\
355 +PACKAGE_luci-app-ntpc:ntpclient))
356
357 $(eval $(call application,ddns,Dynamic DNS configuration module,\
358 +PACKAGE_luci-app-ddns:ddns-scripts))
359
360 $(eval $(call application,samba,Network Shares - Samba SMB/CIFS module,\
361 +luci-mod-admin-full +PACKAGE_luci-app-samba:samba3))
362
363 $(eval $(call application,mmc-over-gpio,MMC-over-GPIO configuration module,\
364 +luci-mod-admin-full +PACKAGE_luci-app-mmc-over-gpio:kmod-mmc-over-gpio))
365
366 $(eval $(call application,p910nd,p910nd - Printer server module,\
367 +luci-mod-admin-full +PACKAGE_luci-app-p910nd:p910nd))
368
369 $(eval $(call application,ushare,uShare - UPnP A/V & DLNA Media Server,\
370 +luci-mod-admin-full +PACKAGE_luci-app-ushare:ushare))
371
372 $(eval $(call application,hd-idle,Hard Disk Idle Spin-Down module,\
373 +luci-mod-admin-full +PACKAGE_luci-app-hd-idle:hd-idle))
374
375 $(eval $(call application,tinyproxy,Tinyproxy - HTTP(S)-Proxy configuration,\
376 +luci-mod-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy))
377
378 $(eval $(call application,initmgr,LuCI Initscript Management,\
379 +luci-mod-admin-full))
380
381 $(eval $(call application,polipo,LuCI Support for the Polipo Proxy,\
382 +PACKAGE_luci-app-polipo:polipo))
383
384 $(eval $(call application,openvpn,LuCI Support for OpenVPN,\
385 +PACKAGE_luci-app-openvpn:openvpn))
386
387 $(eval $(call application,p2pblock,LuCI Support for the Freifunk P2P-Block addon,\
388 +luci-app-firewall +PACKAGE_luci-app-p2pblock:freifunk-p2pblock))
389
390 $(eval $(call application,multiwan,LuCI Support for the OpenWrt MultiWAN agent,\
391 +luci-app-firewall +PACKAGE_luci-app-multiwan:multiwan))
392
393 $(eval $(call application,wol,LuCI Support for Wake-on-LAN,\
394 +PACKAGE_luci-app-wol:etherwake))
395
396 $(eval $(call application,vnstat,LuCI Support for VnStat,\
397 +PACKAGE_luci-app-vnstat:vnstat \
398 +PACKAGE_luci-app-vnstat:vnstati))
399
400 $(eval $(call application,radvd,LuCI Support for Radvd,\
401 +luci-mod-admin-full +PACKAGE_luci-app-radvd:radvd))
402
403 $(eval $(call application,lqtapifoss,Lantiq voip))
404
405 ### Server Gateway Interfaces ###
406 define sgi
407 define Package/luci-sgi-$(1)
408 SECTION:=luci
409 CATEGORY:=LuCI
410 TITLE:=LuCI - Lua Configuration Interface
411 URL:=http://luci.subsignal.org/
412 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
413 SUBMENU:=Server Interfaces
414 TITLE:=$(if $(2),$(2),LuCI $(1) server gateway interface)
415 $(if $(3),DEPENDS:=$(3))
416 endef
417
418 define Package/luci-sgi-$(1)/install
419 $(call Package/luci/install/template,$$(1),libs/sgi-$(1))
420 endef
421
422 ifneq ($(CONFIG_PACKAGE_luci-sgi-$(1)),)
423 LUCI_SELECTED_MODULES+=libs/sgi-$(1)
424 endif
425
426 LUCI_BUILD_PACKAGES += luci-sgi-$(1)
427 endef
428
429 $(eval $(call sgi,cgi,CGI Gateway behind existing Webserver))
430 $(eval $(call sgi,uhttpd,Binding for the uHTTPd server,+uhttpd +uhttpd-mod-lua))
431
432
433 ### Themes ###
434 define theme
435 define Package/luci-theme-$(1)
436 SECTION:=luci
437 CATEGORY:=LuCI
438 TITLE:=LuCI - Lua Configuration Interface
439 URL:=http://luci.subsignal.org/
440 SUBMENU:=Themes
441 TITLE:=$(if $(2),$(2),LuCI $(1) theme)
442 MAINTAINER:=$(if $(3),$(3),LuCI Development Team <luci@lists.subsignal.org>)
443 DEPENDS:=$(if $(filter-out base,$(1)),+luci-theme-base) $(4)
444 $(if $(5),DEFAULT:=PACKAGE_luci-lib-core)
445 endef
446
447 define Package/luci-theme-$(1)/install
448 $(call Package/luci/install/template,$$(1),themes/$(1))
449 endef
450
451 ifneq ($(CONFIG_PACKAGE_luci-theme-$(1)),)
452 LUCI_SELECTED_MODULES+=themes/$(1)
453 endif
454
455 LUCI_BUILD_PACKAGES += luci-theme-$(1)
456 endef
457
458 $(eval $(call theme,base,Common base for all themes,,+luci-lib-web))
459 $(eval $(call theme,openwrt,OpenWrt.org (default),,,1))
460 $(eval $(call theme,fledermaus,Fledermaus Theme))
461
462 $(eval $(call theme,freifunk,alternative Freifunk Theme,\
463 Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>))
464
465 $(eval $(call theme,freifunk-bno,Freifunk Berlin Nordost Theme,\
466 Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>))
467
468 $(eval $(call theme,freifunk-hannover,Freifunk Hannover Theme,\
469 Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>))
470
471 $(eval $(call theme,freifunk-generic,Freifunk Generic Theme,\
472 Manuel Munz <freifunk-at-somakoma-dot-de>))
473
474 ### Translations ###
475 define translation
476 define Package/luci-i18n-$(1)
477 SECTION:=luci
478 CATEGORY:=LuCI
479 TITLE:=LuCI - Lua Configuration Interface
480 URL:=http://luci.subsignal.org/
481 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
482 SUBMENU:=Translations
483 TITLE:=$(if $(2),$(2),$(1))
484 endef
485
486 define Package/luci-i18n-$(1)/install
487 $(call Package/luci/install/template,$$(1),i18n/$(1))
488 endef
489
490 ifneq ($(CONFIG_PACKAGE_luci-i18n-$(1)),)
491 LUCI_SELECTED_MODULES+=i18n/$(1)
492 endif
493
494 LUCI_BUILD_PACKAGES += luci-i18n-$(1)
495 endef
496
497 $(eval $(call translation,german,German))
498 $(eval $(call translation,english,English))
499 $(eval $(call translation,french,French (by Florian Fainelli)))
500 $(eval $(call translation,italian,Italian (by Matteo Croce)))
501 $(eval $(call translation,russian,Russian (by Skryabin Dmitry)))
502 $(eval $(call translation,portuguese_brazilian,Portuguese (Brazilian) (by Carlos Cesario)))
503 $(eval $(call translation,japanese,Japanese (by Tsukasa Hamano)))
504 $(eval $(call translation,greek,Greek (by Vasilis Tsiligiannis)))
505 $(eval $(call translation,catalan,Catalan (by Eduard Duran)))
506 $(eval $(call translation,portuguese,Portuguese (by Jose Monteiro)))
507 $(eval $(call translation,spanish,Spanish (by Guillermo Javier Nardoni)))
508 $(eval $(call translation,vietnamese,Vietnamese (by Hong Phuc Dang)))
509 $(eval $(call translation,malay,Malay (by Teow Wai Chet)))
510 $(eval $(call translation,norwegian,Norwegian (by Lars Hardy)))
511
512
513 ### Collections ###
514 define collection
515 define Package/luci$(if $(1),-$(1))
516 SECTION:=luci
517 CATEGORY:=LuCI
518 TITLE:=LuCI - Lua Configuration Interface
519 URL:=http://luci.subsignal.org/
520 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
521 SUBMENU:=Collections
522 TITLE:=$(if $(2),$(2),LuCI $(if $(1),$(1),general) collection)
523 $(if $(3),DEPENDS:=$(3))
524 endef
525
526 define Package/luci$(if $(1),-$(1))/install
527 true
528 endef
529
530 LUCI_BUILD_PACKAGES += luci$(if $(1),-$(1))
531 endef
532
533 $(eval $(call collection,,\
534 Standard OpenWrt set including full and mini admin and the standard theme,\
535 +uhttpd +luci-mod-admin-full +luci-theme-openwrt +luci-app-firewall \
536 +luci-app-initmgr +libiwinfo))
537
538 $(eval $(call collection,ssl,\
539 Standard OpenWrt set with HTTPS support,\
540 +uhttpd +uhttpd-mod-tls +px5g +luci-mod-admin-full +luci-theme-openwrt \
541 +luci-app-firewall +luci-app-initmgr +libiwinfo))
542
543 $(eval $(call collection,light,\
544 Minimum package set using only admin mini and the standard theme,\
545 +uhttpd +luci-mod-admin-mini +luci-theme-openwrt @BROKEN))
546
547
548 ### Compile ###
549 PKG_CONFIG_DEPENDS=$(patsubst %,CONFIG_PACKAGE_%,$(LUCI_BUILD_PACKAGES))
550
551 include $(INCLUDE_DIR)/package.mk
552
553 ifeq ($(USELOCAL),1)
554 define Build/Prepare
555 mkdir -p $(PKG_BUILD_DIR)
556 $(TAR) c -C ../../../ . \
557 --exclude=.pc --exclude=.svn --exclude=.git \
558 --exclude='boa-0*' --exclude='*.o' --exclude='*.so' \
559 --exclude=dist | \
560 tar x -C $(PKG_BUILD_DIR)/
561 endef
562 endif
563
564 define Build/Configure
565 endef
566
567 MAKE_FLAGS += \
568 MODULES="$(LUCI_SELECTED_MODULES)" \
569 LUA_TARGET="$(LUA_TARGET)" \
570 LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
571 CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
572 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
573 NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
574
575
576 $(foreach b,$(LUCI_BUILD_PACKAGES),$(eval $(call BuildPackage,$(b))))