Added UVC-Streamer application
[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 ifeq ($(USELOCAL),1)
13 PKG_VERSION:=0.7+svn
14 else
15 PKG_SOURCE_URL:=http://dev.leipzig.freifunk.net/svn/ff-luci/$(PKG_BRANCH)
16 ifeq ($(DUMP),)
17 PKG_REV:=$(shell LC_ALL=C svn info ${PKG_SOURCE_URL} | sed -ne's/^Last Changed Rev: //p')
18 PKG_VERSION:=0.7+svn$(PKG_REV)
19 endif
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
22 PKG_SOURCE_PROTO:=svn
23 PKG_SOURCE_VERSION:=$(PKG_REV)
24 endif
25
26 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
27 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
28
29 PKG_BUILD_DEPENDS:=libnotimpl
30 LUA_TARGET:=source
31 PKG_SELECTED_MODULES:=
32
33
34 include $(INCLUDE_DIR)/package.mk
35
36 ifeq ($(USELOCAL),1)
37 define Build/Prepare
38 mkdir -p $(PKG_BUILD_DIR)
39 $(TAR) c -C ../../../ . \
40 --exclude=.pc --exclude=.svn --exclude=.git \
41 --exclude='boa-0*' --exclude='*.o' --exclude='*.so' \
42 --exclude=dist | \
43 tar x -C $(PKG_BUILD_DIR)/
44 endef
45 endif
46
47 define Build/Configure
48 endef
49
50 ### Templates ###
51
52 define Package/luci/libtemplate
53 SECTION:=admin
54 CATEGORY:=Administration
55 TITLE:=LuCI - Lua Configuration Interface
56 URL:=http://luci.freifunk-halle.net/
57 MAINTAINER:=Steven Barth <steven-at-midlink-dot-org>
58 SUBMENU:=LuCI Libraries
59 DEPENDS:=+luci-core
60 endef
61
62 define Package/luci/fftemplate
63 $(call Package/luci/libtemplate)
64 SUBMENU:=LuCI Freifunk Support (PARTLY BROKEN)
65 DEPENDS:=+luci-mod-freifunk @BROKEN
66 endef
67
68 define Package/luci/httpdtemplate
69 $(call Package/luci/libtemplate)
70 SUBMENU:=LuCI Non-Forking HTTP-Daemon (EXPERIMENTAL)
71 DEPENDS:=+luci-httpd
72 endef
73
74 define Package/luci/i18ntemplate
75 $(call Package/luci/libtemplate)
76 SUBMENU:=LuCI Translations
77 DEPENDS:=+luci-web
78 endef
79
80 define Package/luci/thtemplate
81 $(call Package/luci/libtemplate)
82 SUBMENU:=LuCI Themes
83 DEPENDS:=+luci-web
84 endef
85
86 define Package/luci/webtemplate
87 $(call Package/luci/libtemplate)
88 SUBMENU:=LuCI Components
89 endef
90
91
92 define Package/luci/install/template
93 $(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
94 $(CP) -a $(PKG_BUILD_DIR)/$(2)/ipkg/* $(1)/CONTROL/ 2>/dev/null || true
95 endef
96
97
98
99 ### Core package ###
100
101 define Package/luci-core
102 $(call Package/luci/libtemplate)
103 DEPENDS:=+lua +luaposix +bitlib
104 TITLE:=LuCI core libraries
105 endef
106
107 define Package/luci-core/install
108 $(call Package/luci/install/template,$(1),libs/core)
109 endef
110
111 define Package/luci-core/config
112 choice
113 prompt "Build Target"
114 default PACKAGE_luci-core_source
115
116 config PACKAGE_luci-core_compile
117 bool "Precompiled"
118
119 config PACKAGE_luci-core_stripped
120 bool "Stripped"
121
122 config PACKAGE_luci-core_source
123 bool "Full Source"
124
125 endchoice
126 endef
127
128 ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
129 LUA_TARGET:=compile
130 endif
131
132 ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
133 LUA_TARGET:=strip
134 endif
135
136
137 ### Libraries ###
138 define Package/luci-cbi
139 $(call Package/luci/libtemplate)
140 DEPENDS+=+luci-web +luci-uvl +luci-uci
141 TITLE:=Configuration Binding Interface
142 endef
143
144 define Package/luci-cbi/install
145 $(call Package/luci/install/template,$(1),libs/cbi)
146 endef
147
148
149 define Package/luci-uci
150 $(call Package/luci/libtemplate)
151 DEPENDS+=+libuci-lua
152 TITLE:=High-Level UCI API
153 endef
154
155 define Package/luci-uci/install
156 $(call Package/luci/install/template,$(1),libs/uci)
157 endef
158
159
160 define Package/luci-fastindex
161 $(call Package/luci/libtemplate)
162 TITLE:=Fastindex indexing module
163 endef
164
165 define Package/luci-fastindex/install
166 $(call Package/luci/install/template,$(1),libs/fastindex)
167 endef
168
169
170 define Package/luci-http
171 $(call Package/luci/libtemplate)
172 TITLE:=HTTP Protocol implementation
173 endef
174
175 define Package/luci-http/install
176 $(call Package/luci/install/template,$(1),libs/http)
177 endef
178
179
180 define Package/luci-ipkg
181 $(call Package/luci/libtemplate)
182 TITLE:=LuCI IPKG/OPKG call abstraction library
183 endef
184
185 define Package/luci-ipkg/install
186 $(call Package/luci/install/template,$(1),libs/ipkg)
187 endef
188
189
190 define Package/luci-json
191 $(call Package/luci/libtemplate)
192 TITLE:=LuCI JSON Library
193 endef
194
195 define Package/luci-json/install
196 $(call Package/luci/install/template,$(1),libs/json)
197 endef
198
199
200 define Package/luci-sys
201 $(call Package/luci/libtemplate)
202 TITLE:=LuCI Linux/POSIX system library
203 endef
204
205 define Package/luci-sys/install
206 $(call Package/luci/install/template,$(1),libs/sys)
207 endef
208
209
210 define Package/luci-web
211 $(call Package/luci/libtemplate)
212 DEPENDS+=+luci-http +luci-sys +luci-addons +luci-uci +luci-sgi-cgi
213 TITLE:=MVC Webframework
214 endef
215
216 define Package/luci-web/conffiles
217 /etc/config/luci
218 endef
219
220 define Package/luci-web/install
221 $(call Package/luci/install/template,$(1),libs/web)
222 endef
223
224
225 define Package/luci-uvl
226 $(call Package/luci/libtemplate)
227 DEPENDS+=+luci-sys +luci-uci +luci-core
228 TITLE:=UVL - UCI Validation Layer
229 endef
230
231 define Package/luci-uvl/install
232 $(call Package/luci/install/template,$(1),libs/uvl)
233 endef
234
235
236
237 ### HTTPD ###
238
239 define Package/luci-httpd
240 $(call Package/luci/httpdtemplate)
241 DEPENDS:=+luci-http +luasocket
242 TITLE:=Server Core
243 endef
244
245 define Package/luci-httpd/install
246 $(call Package/luci/install/template,$(1),libs/httpd)
247 endef
248
249
250
251 ### Community Packages ###
252
253 define Package/luci-ff-halle
254 $(call Package/luci/fftemplate)
255 DEPENDS+= \
256 +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
257 +luci-app-ffwizard-leipzig \
258 +luci-theme-fledermaus \
259 +luci-i18n-german \
260 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
261 +kmod-tun +ip
262 TITLE:=Freifunk Halle Community Meta-Package
263 endef
264
265 define Package/luci-ff-halle/install
266 $(call Package/luci/install/template,$(1),applications/community-halle)
267 endef
268
269
270 define Package/luci-ff-leipzig
271 $(call Package/luci/fftemplate)
272 DEPENDS+= \
273 +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
274 +luci-app-ffwizard-leipzig \
275 +luci-theme-fledermaus \
276 +luci-i18n-german \
277 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
278 +kmod-tun +ip
279 TITLE:=Freifunk Leipzig Community Meta-Package
280 endef
281
282 define Package/luci-ff-leipzig/install
283 $(call Package/luci/install/template,$(1),applications/community-leipzig)
284 endef
285
286
287 define Package/luci-ff-hannover
288 $(call Package/luci/fftemplate)
289 DEPENDS+= \
290 +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
291 +luci-theme-fledermaus \
292 +luci-i18n-german \
293 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
294 TITLE:=Freifunk Hannover Community Meta-Package
295 URL:=http://www.freifunk-hannover.de/
296 MAINTAINER:=Mickey Knox <mickey-at-netfreaks-dot-org>
297 endef
298
299 define Package/luci-ff-hannover/install
300 $(call Package/luci/install/template,$(1),applications/community-hannover)
301 endef
302
303
304 define Package/luci-ff-berlin
305 $(call Package/luci/fftemplate)
306 DEPENDS+= \
307 +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
308 +luci-theme-fledermaus \
309 +luci-i18n-german \
310 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
311 TITLE:=Freifunk Berlin Community Meta-Package
312 endef
313
314 define Package/luci-ff-berlin/install
315 $(call Package/luci/install/template,$(1),applications/community-berlin)
316 endef
317
318 define Package/luci-ff-augsburg
319 $(call Package/luci/fftemplate)
320 DEPENDS+= \
321 +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
322 +luci-theme-fledermaus \
323 +luci-i18n-german \
324 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
325 TITLE:=Freifunk Augsburg Community Meta-Package
326 endef
327
328 define Package/luci-ff-augsburg/install
329 $(call Package/luci/install/template,$(1),applications/community-augsburg)
330 endef
331
332 ### Modules ###
333
334 define Package/luci-admin-core
335 $(call Package/luci/webtemplate)
336 DEPENDS+=+luci-web +luci-cbi +luci-theme-openwrt +luci-i18n-english
337 TITLE:=Web UI Core Module
338 endef
339
340 define Package/luci-admin-core/install
341 $(call Package/luci/install/template,$(1),modules/admin-core)
342 endef
343
344
345 define Package/luci-admin-mini
346 $(call Package/luci/webtemplate)
347 DEPENDS+=+luci-admin-core
348 TITLE:=LuCI Essentials - stripped down and user-friendly
349 endef
350
351 define Package/luci-admin-mini/install
352 $(call Package/luci/install/template,$(1),modules/admin-mini)
353 endef
354
355
356 define Package/luci-admin-full
357 $(call Package/luci/webtemplate)
358 DEPENDS+=+luci-admin-core +luci-ipkg
359 TITLE:=LuCI Administration - full-featured for full control
360 endef
361
362 define Package/luci-admin-full/install
363 $(call Package/luci/install/template,$(1),modules/admin-full)
364 endef
365
366
367 define Package/luci-admin-rpc
368 $(call Package/luci/webtemplate)
369 DEPENDS+=+luci-json
370 TITLE:=LuCI RPC - JSON-RPC API
371 endef
372
373 define Package/luci-admin-rpc/install
374 $(call Package/luci/install/template,$(1),modules/rpc)
375 endef
376
377
378 define Package/luci-mod-freifunk
379 $(call Package/luci/fftemplate)
380 DEPENDS:=+luci-admin-full
381 TITLE:=LuCI Freifunk module
382 endef
383
384 define Package/luci-mod-freifunk/conffiles
385 /etc/config/freifunk
386 endef
387
388 define Package/luci-mod-freifunk/install
389 $(call Package/luci/install/template,$(1),modules/freifunk)
390 endef
391
392
393
394 ### Applications ###
395
396 define Package/luci-app-ffwizard-leipzig
397 $(call Package/luci/fftemplate)
398 TITLE:=Freifunk Leipzig configuration wizard
399 endef
400
401 define Package/luci-app-ffwizard-leipzig/install
402 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
403 endef
404
405
406 define Package/luci-app-firewall
407 $(call Package/luci/webtemplate)
408 DEPENDS+=+luci-admin-core
409 TITLE:=Firewall and Portforwarding application
410 endef
411
412 define Package/luci-app-firewall/install
413 $(call Package/luci/install/template,$(1),applications/luci-fw)
414 endef
415
416
417 define Package/luci-app-olsr
418 $(call Package/luci/webtemplate)
419 DEPENDS+=+luci-admin-full +olsrd +olsrd-mod-txtinfo
420 TITLE:=OLSR configuration and status module
421 endef
422
423 define Package/luci-app-olsr/install
424 $(call Package/luci/install/template,$(1),applications/luci-olsr)
425 endef
426
427
428 define Package/luci-app-qos
429 $(call Package/luci/webtemplate)
430 DEPENDS+=+luci-admin-core +qos-scripts
431 TITLE:=Quality of Service configuration module
432 endef
433
434 define Package/luci-app-qos/install
435 $(call Package/luci/install/template,$(1),applications/luci-qos)
436 endef
437
438
439 define Package/luci-app-splash
440 $(call Package/luci/fftemplate)
441 DEPENDS+=+luasocket
442 TITLE:=Freifunk DHCP-Splash application
443 endef
444
445 define Package/luci-app-splash/conffiles
446 /etc/config/luci_splash
447 endef
448
449 define Package/luci-app-splash/install
450 $(call Package/luci/install/template,$(1),applications/luci-splash)
451 endef
452
453
454 define Package/luci-app-statistics
455 $(call Package/luci/webtemplate)
456 DEPENDS+=+luci-admin-full +collectd +collectd-mod-rrdtool1 +rrdtool1
457 TITLE:=LuCI Statistics Application
458 endef
459
460 define Package/luci-app-statistics/conffiles
461 /etc/config/luci_statistics
462 endef
463
464 define Package/luci-app-statistics/install
465 $(call Package/luci/install/template,$(1),applications/luci-statistics)
466 endef
467
468
469 define Package/luci-app-upnp
470 $(call Package/luci/webtemplate)
471 DEPENDS+=+luci-admin-core +miniupnpd
472 TITLE:=Universal Plug & Play configuration module
473 endef
474
475 define Package/luci-app-upnp/install
476 $(call Package/luci/install/template,$(1),applications/luci-upnp)
477 endef
478
479
480 define Package/luci-app-ntpc
481 $(call Package/luci/webtemplate)
482 DEPENDS+=+luci-admin-core +ntpclient
483 TITLE:=NTP time synchronisation client configuration module
484 endef
485
486 define Package/luci-app-ntpc/install
487 $(call Package/luci/install/template,$(1),applications/luci-ntpc)
488 endef
489
490
491 define Package/luci-app-ddns
492 $(call Package/luci/webtemplate)
493 DEPENDS+=+luci-admin-core +ddns-scripts
494 TITLE:=Dynamic DNS configuration module
495 endef
496
497 define Package/luci-app-ddns/install
498 $(call Package/luci/install/template,$(1),applications/luci-ddns)
499 endef
500
501
502 define Package/luci-app-samba
503 $(call Package/luci/webtemplate)
504 DEPENDS+=+luci-admin-full +samba3
505 TITLE:=Network Shares - Samba SMB/CIFS module
506 endef
507
508 define Package/luci-app-samba/install
509 $(call Package/luci/install/template,$(1),applications/luci-samba)
510 endef
511
512
513 define Package/luci-app-uvc_streamer
514 $(call Package/luci/webtemplate)
515 DEPENDS+=+luci-admin-full +uvc-streamer
516 TITLE:=Webcam Streaming - UVC-Streamer module
517 endef
518
519 define Package/luci-app-uvc_streamer/install
520 $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
521 endef
522
523
524
525 ### Server Gateway Interfaces ###
526
527 define Package/luci-sgi-cgi
528 $(call Package/luci/libtemplate)
529 TITLE:=SGI for CGI
530 endef
531
532 define Package/luci-sgi-cgi/install
533 $(call Package/luci/install/template,$(1),libs/sgi-cgi)
534 endef
535
536 define Package/luci-sgi-luci
537 $(call Package/luci/libtemplate)
538 DEPENDS+=+luci-httpd
539 TITLE:=SGI for LuCI HTTPD
540 endef
541
542 define Package/luci-sgi-luci/install
543 $(call Package/luci/install/template,$(1),libs/sgi-luci)
544 endef
545
546 define Package/luci-sgi-webuci
547 $(call Package/luci/libtemplate)
548 TITLE:=SGI for Webuci
549 endef
550
551 define Package/luci-sgi-webuci/install
552 $(call Package/luci/install/template,$(1),libs/sgi-webuci)
553 endef
554
555 ### Themes ###
556 define Package/luci-theme-fledermaus
557 $(call Package/luci/fftemplate)
558 DEPENDS:=+luci-web
559 TITLE:=Fledermaus Theme
560 endef
561
562 define Package/luci-theme-fledermaus/install
563 $(call Package/luci/install/template,$(1),themes/fledermaus)
564 endef
565
566 define Package/luci-theme-openwrt
567 $(call Package/luci/thtemplate)
568 TITLE:=OpenWRT.org (default)
569 endef
570
571 define Package/luci-theme-openwrt/install
572 $(call Package/luci/install/template,$(1),themes/openwrt.org)
573 endef
574
575 define Package/luci-theme-openwrtlight
576 $(call Package/luci/thtemplate)
577 TITLE:=OpenWRT.org - light variant without images
578 endef
579
580 define Package/luci-theme-openwrtlight/install
581 $(call Package/luci/install/template,$(1),themes/openwrt-light)
582 endef
583
584
585 ### Translations ###
586 define Package/luci-i18n-german
587 $(call Package/luci/i18ntemplate)
588 TITLE:=German
589 endef
590
591 define Package/luci-i18n-german/install
592 $(call Package/luci/install/template,$(1),i18n/german)
593 endef
594
595
596 define Package/luci-i18n-english
597 $(call Package/luci/i18ntemplate)
598 TITLE:=English
599 endef
600
601 define Package/luci-i18n-english/install
602 $(call Package/luci/install/template,$(1),i18n/english)
603 endef
604
605
606 define Package/luci-i18n-french
607 $(call Package/luci/i18ntemplate)
608 TITLE:=French (by Florian Fainelli)
609 endef
610
611 define Package/luci-i18n-french/install
612 $(call Package/luci/install/template,$(1),i18n/french)
613 endef
614
615
616 define Package/luci-i18n-russian
617 $(call Package/luci/i18ntemplate)
618 TITLE:=Russian (by Skryabin Dmitry)
619 endef
620
621 define Package/luci-i18n-russian/install
622 $(call Package/luci/install/template,$(1),i18n/russian)
623 endef
624
625
626
627 ### Compile ###
628 ifneq ($(CONFIG_PACKAGE_luci-core),)
629 PKG_SELECTED_MODULES+=libs/core
630 endif
631 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
632 PKG_SELECTED_MODULES+=libs/cbi
633 endif
634 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
635 PKG_SELECTED_MODULES+=libs/fastindex
636 endif
637 ifneq ($(CONFIG_PACKAGE_luci-http),)
638 PKG_SELECTED_MODULES+=libs/http
639 endif
640 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
641 PKG_SELECTED_MODULES+=libs/ipkg
642 endif
643 ifneq ($(CONFIG_PACKAGE_luci-json),)
644 PKG_SELECTED_MODULES+=libs/json
645 endif
646 ifneq ($(CONFIG_PACKAGE_luci-uci),)
647 PKG_SELECTED_MODULES+=libs/uci
648 endif
649 ifneq ($(CONFIG_PACKAGE_luci-sys),)
650 PKG_SELECTED_MODULES+=libs/sys
651 endif
652 ifneq ($(CONFIG_PACKAGE_luci-web),)
653 PKG_SELECTED_MODULES+=libs/web
654 endif
655 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
656 PKG_SELECTED_MODULES+=libs/uvl
657 endif
658
659 ifneq ($(CONFIG_PACKAGE_luci-httpd),)
660 PKG_SELECTED_MODULES+=libs/httpd
661 endif
662
663 ifneq ($(CONFIG_PACKAGE_luci-ff-halle),)
664 PKG_SELECTED_MODULES+=applications/community-halle
665 endif
666 ifneq ($(CONFIG_PACKAGE_luci-ff-leipzig),)
667 PKG_SELECTED_MODULES+=applications/community-leipzig
668 endif
669 ifneq ($(CONFIG_PACKAGE_luci-ff-hannover),)
670 PKG_SELECTED_MODULES+=applications/community-hannover
671 endif
672 ifneq ($(CONFIG_PACKAGE_luci-ff-berlin),)
673 PKG_SELECTED_MODULES+=applications/community-berlin
674 endif
675 ifneq ($(CONFIG_PACKAGE_luci-ff-augsburg),)
676 PKG_SELECTED_MODULES+=applications/community-augsburg
677 endif
678
679 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
680 PKG_SELECTED_MODULES+=modules/admin-core
681 endif
682 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
683 PKG_SELECTED_MODULES+=modules/admin-mini
684 endif
685 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
686 PKG_SELECTED_MODULES+=modules/admin-full
687 endif
688 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
689 PKG_SELECTED_MODULES+=modules/rpc
690 endif
691 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
692 PKG_SELECTED_MODULES+=modules/freifunk
693 endif
694
695 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
696 PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
697 endif
698 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
699 PKG_SELECTED_MODULES+=applications/luci-fw
700 endif
701 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
702 PKG_SELECTED_MODULES+=applications/luci-olsr
703 endif
704 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
705 PKG_SELECTED_MODULES+=applications/luci-qos
706 endif
707 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
708 PKG_SELECTED_MODULES+=applications/luci-splash
709 endif
710 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
711 PKG_SELECTED_MODULES+=applications/luci-statistics
712 endif
713 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
714 PKG_SELECTED_MODULES+=applications/luci-upnp
715 endif
716 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
717 PKG_SELECTED_MODULES+=applications/luci-ntpc
718 endif
719 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
720 PKG_SELECTED_MODULES+=applications/luci-ddns
721 endif
722 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
723 PKG_SELECTED_MODULES+=applications/luci-samba
724 endif
725 ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
726 PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
727 endif
728
729
730 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
731 PKG_SELECTED_MODULES+=libs/sgi-cgi
732 endif
733 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
734 PKG_SELECTED_MODULES+=libs/sgi-luci
735 endif
736 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
737 PKG_SELECTED_MODULES+=libs/sgi-webuci
738 endif
739
740 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
741 PKG_SELECTED_MODULES+=themes/fledermaus
742 endif
743 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
744 PKG_SELECTED_MODULES+=themes/openwrt.org
745 endif
746 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
747 PKG_SELECTED_MODULES+=themes/openwrt-light
748 endif
749
750 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
751 PKG_SELECTED_MODULES+=i18n/german
752 endif
753 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
754 PKG_SELECTED_MODULES+=i18n/english
755 endif
756 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
757 PKG_SELECTED_MODULES+=i18n/french
758 endif
759 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
760 PKG_SELECTED_MODULES+=i18n/russian
761 endif
762
763
764 MAKE_FLAGS += \
765 MODULES="$(PKG_SELECTED_MODULES)" \
766 LUA_TARGET="$(LUA_TARGET)" \
767 LUA_SHLIBS="-llua -lm" \
768 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
769 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
770 OS="Linux"
771
772
773 $(eval $(call BuildPackage,luci-core))
774 $(eval $(call BuildPackage,luci-cbi))
775 $(eval $(call BuildPackage,luci-fastindex))
776 $(eval $(call BuildPackage,luci-http))
777 $(eval $(call BuildPackage,luci-ipkg))
778 $(eval $(call BuildPackage,luci-json))
779 $(eval $(call BuildPackage,luci-uci))
780 $(eval $(call BuildPackage,luci-sys))
781 $(eval $(call BuildPackage,luci-web))
782 $(eval $(call BuildPackage,luci-uvl))
783
784 $(eval $(call BuildPackage,luci-httpd))
785
786 $(eval $(call BuildPackage,luci-ff-halle))
787 $(eval $(call BuildPackage,luci-ff-leipzig))
788 $(eval $(call BuildPackage,luci-ff-hannover))
789 $(eval $(call BuildPackage,luci-ff-berlin))
790 $(eval $(call BuildPackage,luci-ff-augsburg))
791
792 $(eval $(call BuildPackage,luci-admin-core))
793 $(eval $(call BuildPackage,luci-admin-mini))
794 $(eval $(call BuildPackage,luci-admin-full))
795 $(eval $(call BuildPackage,luci-admin-rpc))
796 $(eval $(call BuildPackage,luci-mod-freifunk))
797
798 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
799 $(eval $(call BuildPackage,luci-app-firewall))
800 $(eval $(call BuildPackage,luci-app-olsr))
801 $(eval $(call BuildPackage,luci-app-qos))
802 $(eval $(call BuildPackage,luci-app-splash))
803 $(eval $(call BuildPackage,luci-app-statistics))
804 $(eval $(call BuildPackage,luci-app-upnp))
805 $(eval $(call BuildPackage,luci-app-ntpc))
806 $(eval $(call BuildPackage,luci-app-ddns))
807 $(eval $(call BuildPackage,luci-app-samba))
808 $(eval $(call BuildPackage,luci-app-uvc_streamer))
809
810 $(eval $(call BuildPackage,luci-sgi-cgi))
811 $(eval $(call BuildPackage,luci-sgi-luci))
812 $(eval $(call BuildPackage,luci-sgi-webuci))
813
814 $(eval $(call BuildPackage,luci-theme-fledermaus))
815 $(eval $(call BuildPackage,luci-theme-openwrt))
816 $(eval $(call BuildPackage,luci-theme-openwrtlight))
817
818 $(eval $(call BuildPackage,luci-i18n-german))
819 $(eval $(call BuildPackage,luci-i18n-english))
820 $(eval $(call BuildPackage,luci-i18n-french))
821 $(eval $(call BuildPackage,luci-i18n-russian))