root/luci/trunk/contrib/package/luci/Makefile @ 3634

Revision 3634, 22.2 KB (checked in by jow, 5 years ago)

* luci: replace all "OpenWRT" occurences with "OpenWrt?"

Line 
1include $(TOPDIR)/rules.mk
2
3PKG_BRANCH:=trunk
4
5ifeq ($(DUMP),)
6  USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null && echo 1)
7endif
8
9PKG_NAME:=luci
10PKG_RELEASE:=1
11
12ifeq ($(USELOCAL),1)
13  PKG_VERSION:=0.9+svn
14else
15  PKG_SOURCE_URL:=http://svn.luci.subsignal.org/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.9+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)
24endif
25
26PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
27PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
28
29PKG_BUILD_DEPENDS:=libnotimpl
30LUA_TARGET:=source
31PKG_SELECTED_MODULES:=
32
33
34include $(INCLUDE_DIR)/package.mk
35
36ifeq ($(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
45endif
46
47define Build/Configure
48endef
49
50### Templates ###
51
52define 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
60endef
61
62define Package/luci/fftemplate
63  $(call Package/luci/libtemplate)
64  SUBMENU:=LuCI Freifunk Support (GERMAN ONLY)
65  DEPENDS:=+luci-mod-freifunk
66endef
67
68define Package/luci/httpdtemplate
69  $(call Package/luci/libtemplate)
70  SUBMENU:=LuCI Non-Forking HTTP-Daemon (EXPERIMENTAL)
71  DEPENDS:=+luci-httpd
72endef
73
74define Package/luci/i18ntemplate
75  $(call Package/luci/libtemplate)
76  SUBMENU:=LuCI Translations
77  DEPENDS:=+luci-web
78endef
79
80define Package/luci/thtemplate
81  $(call Package/luci/libtemplate)
82  SUBMENU:=LuCI Themes
83  DEPENDS:=+luci-web
84endef
85
86define Package/luci/webtemplate
87  $(call Package/luci/libtemplate)
88  SUBMENU:=LuCI Components
89endef
90
91
92define 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
95endef
96
97
98
99### Core package ###
100
101define Package/luci-core
102  $(call Package/luci/libtemplate)
103  DEPENDS:=+lua
104  TITLE:=LuCI core libraries
105endef
106
107define Package/luci-core/install
108    $(call Package/luci/install/template,$(1),libs/core)
109endef
110
111define 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
126endef
127
128ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
129  LUA_TARGET:=compile
130endif
131
132ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
133  LUA_TARGET:=strip
134endif
135
136
137### Libraries ###
138define Package/luci-cbi
139  $(call Package/luci/libtemplate)
140  DEPENDS+=+luci-web +luci-uvl +luci-uci
141  TITLE:=Configuration Binding Interface
142endef
143
144define Package/luci-cbi/install
145    $(call Package/luci/install/template,$(1),libs/cbi)
146endef
147
148
149define Package/luci-uci
150  $(call Package/luci/libtemplate)
151  DEPENDS+=+libuci-lua
152  TITLE:=High-Level UCI API
153endef
154
155define Package/luci-uci/install
156    $(call Package/luci/install/template,$(1),libs/uci)
157endef
158
159
160define Package/luci-fastindex
161  $(call Package/luci/libtemplate)
162  TITLE:=Fastindex indexing module
163endef
164
165define Package/luci-fastindex/install
166    $(call Package/luci/install/template,$(1),libs/fastindex)
167endef
168
169
170define Package/luci-http
171  $(call Package/luci/libtemplate)
172  TITLE:=HTTP Protocol implementation
173endef
174
175define Package/luci-http/install
176    $(call Package/luci/install/template,$(1),libs/http)
177endef
178
179
180define Package/luci-ipkg
181  $(call Package/luci/libtemplate)
182  TITLE:=LuCI IPKG/OPKG call abstraction library
183endef
184
185define Package/luci-ipkg/install
186    $(call Package/luci/install/template,$(1),libs/ipkg)
187endef
188
189
190define Package/luci-json
191  $(call Package/luci/libtemplate)
192  TITLE:=LuCI JSON Library
193endef
194
195define Package/luci-json/install
196    $(call Package/luci/install/template,$(1),libs/json)
197endef
198
199
200define Package/luci-sys
201  $(call Package/luci/libtemplate)
202  TITLE:=LuCI Linux/POSIX system library
203endef
204
205define Package/luci-sys/install
206    $(call Package/luci/install/template,$(1),libs/sys)
207endef
208
209
210define Package/luci-web
211  $(call Package/luci/libtemplate)
212  DEPENDS+=+luci-http +luci-sys +luci-uci +luci-sgi-cgi
213  TITLE:=MVC Webframework
214endef
215
216define Package/luci-web/conffiles
217/etc/config/luci
218endef
219
220define Package/luci-web/install
221    $(call Package/luci/install/template,$(1),libs/web)
222endef
223
224
225define Package/luci-uvl
226  $(call Package/luci/libtemplate)
227  DEPENDS+=+luci-sys +luci-uci +luci-core
228  TITLE:=UVL - UCI Validation Layer
229endef
230
231define Package/luci-uvl/install
232    $(call Package/luci/install/template,$(1),libs/uvl)
233endef
234
235
236
237### HTTPD ###
238
239define Package/luci-httpd
240  $(call Package/luci/httpdtemplate)
241  DEPENDS:=+luci-http +luasocket
242  TITLE:=Server Core
243endef
244
245define Package/luci-httpd/install
246    $(call Package/luci/install/template,$(1),libs/httpd)
247endef
248
249
250
251### Community Packages ###
252
253define Package/luci-freifunk-community
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-luci +olsrd-luci-mod-dyn-gw +olsrd-luci-mod-txtinfo +olsrd-luci-mod-nameservice \
261   +kmod-tun +ip
262  TITLE:=Freifunk Community Meta-Package
263endef
264
265define Package/luci-freifunk-community/install
266    $(call Package/luci/install/template,$(1),applications/freifunk-community)
267endef
268
269### Modules ###
270
271define Package/luci-admin-core
272  $(call Package/luci/webtemplate)
273  DEPENDS+=+luci-web +luci-cbi +luci-theme-openwrt +luci-i18n-english
274  TITLE:=Web UI Core Module
275endef
276
277define Package/luci-admin-core/conffiles
278/etc/config/luci_hosts
279/etc/config/luci_ethers
280endef
281
282define Package/luci-admin-core/install
283    $(call Package/luci/install/template,$(1),modules/admin-core)
284endef
285
286
287define Package/luci-admin-mini
288  $(call Package/luci/webtemplate)
289  DEPENDS+=+luci-admin-core
290  TITLE:=LuCI Essentials - stripped down and user-friendly
291endef
292
293define Package/luci-admin-mini/install
294    $(call Package/luci/install/template,$(1),modules/admin-mini)
295endef
296
297
298define Package/luci-admin-full
299  $(call Package/luci/webtemplate)
300  DEPENDS+=+luci-admin-core +luci-ipkg
301  TITLE:=LuCI Administration - full-featured for full control
302endef
303
304define Package/luci-admin-full/install
305    $(call Package/luci/install/template,$(1),modules/admin-full)
306endef
307
308
309define Package/luci-admin-rpc
310  $(call Package/luci/webtemplate)
311  DEPENDS+=+luci-json
312  TITLE:=LuCI RPC - JSON-RPC API
313endef
314
315define Package/luci-admin-rpc/install
316    $(call Package/luci/install/template,$(1),modules/rpc)
317endef
318
319
320define Package/luci-mod-freifunk
321  $(call Package/luci/fftemplate)
322  DEPENDS:=+luci-admin-full
323  TITLE:=LuCI Freifunk module
324endef
325
326define Package/luci-mod-freifunk/conffiles
327/etc/config/freifunk
328endef
329
330define Package/luci-mod-freifunk/install
331    $(call Package/luci/install/template,$(1),modules/freifunk)
332endef
333
334
335
336### Applications ###
337
338define Package/luci-app-ffwizard-leipzig
339  $(call Package/luci/fftemplate)
340  TITLE:=Freifunk Leipzig configuration wizard
341endef
342
343define Package/luci-app-ffwizard-leipzig/install
344    $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
345endef
346
347
348define Package/luci-app-firewall
349  $(call Package/luci/webtemplate)
350  DEPENDS+=+luci-admin-core
351  TITLE:=Firewall and Portforwarding application
352endef
353
354define Package/luci-app-firewall/install
355    $(call Package/luci/install/template,$(1),applications/luci-fw)
356endef
357
358
359define Package/luci-app-olsr
360  $(call Package/luci/webtemplate)
361  DEPENDS+=+luci-admin-full +olsrd-luci +olsrd-luci-mod-txtinfo
362  TITLE:=OLSR configuration and status module
363endef
364
365define Package/luci-app-olsr/install
366    $(call Package/luci/install/template,$(1),applications/luci-olsr)
367endef
368
369
370define Package/luci-app-qos
371  $(call Package/luci/webtemplate)
372  DEPENDS+=+luci-admin-core +qos-scripts
373  TITLE:=Quality of Service configuration module
374endef
375
376define Package/luci-app-qos/install
377    $(call Package/luci/install/template,$(1),applications/luci-qos)
378endef
379
380
381define Package/luci-app-splash
382  $(call Package/luci/fftemplate)
383  DEPENDS+=+luasocket
384  TITLE:=Freifunk DHCP-Splash application
385endef
386
387define Package/luci-app-splash/conffiles
388/etc/config/luci_splash
389endef
390
391define Package/luci-app-splash/install
392    $(call Package/luci/install/template,$(1),applications/luci-splash)
393endef
394
395
396define Package/luci-app-statistics
397  $(call Package/luci/webtemplate)
398  DEPENDS+=+luci-admin-full +collectd +collectd-mod-rrdtool1 +rrdtool1
399  TITLE:=LuCI Statistics Application
400endef
401
402define Package/luci-app-statistics/conffiles
403/etc/config/luci_statistics
404endef
405
406define Package/luci-app-statistics/install
407    $(call Package/luci/install/template,$(1),applications/luci-statistics)
408endef
409
410
411define Package/luci-app-upnp
412  $(call Package/luci/webtemplate)
413  DEPENDS+=+luci-admin-core +miniupnpd
414  TITLE:=Universal Plug & Play configuration module
415endef
416
417define Package/luci-app-upnp/install
418    $(call Package/luci/install/template,$(1),applications/luci-upnp)
419endef
420
421
422define Package/luci-app-ntpc
423  $(call Package/luci/webtemplate)
424  DEPENDS+=+luci-admin-core +ntpclient
425  TITLE:=NTP time synchronisation client configuration module
426endef
427
428define Package/luci-app-ntpc/install
429    $(call Package/luci/install/template,$(1),applications/luci-ntpc)
430endef
431
432
433define Package/luci-app-ddns
434  $(call Package/luci/webtemplate)
435  DEPENDS+=+luci-admin-core +ddns-scripts
436  TITLE:=Dynamic DNS configuration module
437endef
438
439define Package/luci-app-ddns/install
440    $(call Package/luci/install/template,$(1),applications/luci-ddns)
441endef
442
443
444define Package/luci-app-samba
445  $(call Package/luci/webtemplate)
446  DEPENDS+=+luci-admin-full +samba3
447  TITLE:=Network Shares - Samba SMB/CIFS module
448endef
449
450define Package/luci-app-samba/install
451    $(call Package/luci/install/template,$(1),applications/luci-samba)
452endef
453
454
455define Package/luci-app-uvc_streamer
456  $(call Package/luci/webtemplate)
457  DEPENDS+=+luci-admin-full +uvc-streamer
458  TITLE:=Webcam Streaming - UVC-Streamer module
459endef
460
461define Package/luci-app-uvc_streamer/install
462        $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
463endef
464
465
466define Package/luci-app-p910nd
467  $(call Package/luci/webtemplate)
468  DEPENDS+=+luci-admin-full +p910nd
469  TITLE:=p910nd - Printer server module
470endef
471
472define Package/luci-app-p910nd/install
473        $(call Package/luci/install/template,$(1),applications/luci-p910nd)
474endef
475
476
477define Package/luci-app-ushare
478  $(call Package/luci/webtemplate)
479  DEPENDS+=+luci-admin-full +ushare
480  TITLE:=ushare - UPnP A/V & DLNA Media Server
481endef
482
483define Package/luci-app-ushare/install
484        $(call Package/luci/install/template,$(1),applications/luci-ushare)
485endef
486
487define Package/luci-app-hd_idle
488  $(call Package/luci/webtemplate)
489  DEPENDS+=+luci-admin-full +hd-idle
490  TITLE:=hd-idle
491endef
492
493define Package/luci-app-hd_idle/install
494        $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
495endef
496
497define Package/luci-app-tinyproxy
498  $(call Package/luci/webtemplate)
499  DEPENDS+=+luci-admin-full +tinyproxy
500  TITLE:=Tinyproxy - HTTP(S)-Proxy
501endef
502
503define Package/luci-app-tinyproxy/install
504        $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
505endef
506
507define Package/luci-app-initmgr
508  $(call Package/luci/webtemplate)
509  DEPENDS+=+luci-admin-full
510  TITLE:=LuCI Initscript Management
511endef
512
513define Package/luci-app-initmgr/install
514        $(call Package/luci/install/template,$(1),applications/luci-initmgr)
515endef
516
517define Package/luci-app-livestats
518  $(call Package/luci/webtemplate)
519  DEPENDS+=+luci-admin-full +luci-admin-rpc
520  TITLE:=LuCI Realtime Statistics (Experimental)
521endef
522
523define Package/luci-app-livestats/install
524        $(call Package/luci/install/template,$(1),applications/luci-livestats)
525endef
526
527define Package/luci-app-asterisk
528  $(call Package/luci/webtemplate)
529  TITLE:=LuCI Support for Asterisk PBX (Incomplete)
530endef
531
532define Package/luci-app-asterisk/install
533        $(call Package/luci/install/template,$(1),applications/luci-asterisk)
534endef
535
536
537### Server Gateway Interfaces ###
538
539define Package/luci-sgi-cgi
540  $(call Package/luci/libtemplate)
541  TITLE:=SGI for CGI
542endef
543
544define Package/luci-sgi-cgi/install
545    $(call Package/luci/install/template,$(1),libs/sgi-cgi)
546endef
547
548define Package/luci-sgi-luci
549  $(call Package/luci/libtemplate)
550  DEPENDS+=+luci-httpd
551  TITLE:=SGI for LuCI HTTPD
552endef
553
554define Package/luci-sgi-luci/install
555    $(call Package/luci/install/template,$(1),libs/sgi-luci)
556endef
557
558define Package/luci-sgi-webuci
559  $(call Package/luci/libtemplate)
560  TITLE:=SGI for Webuci
561endef
562
563define Package/luci-sgi-webuci/install
564    $(call Package/luci/install/template,$(1),libs/sgi-webuci)
565endef
566
567### Themes ###
568define Package/luci-theme-base
569  $(call Package/luci/thtemplate)
570  DEPENDS:=+luci-web
571  TITLE:=Common base for all themes
572endef
573
574define Package/luci-theme-base/install
575    $(call Package/luci/install/template,$(1),themes/base)
576endef
577
578define Package/luci-theme-fledermaus
579  $(call Package/luci/fftemplate)
580  DEPENDS:=+luci-web
581  TITLE:=Fledermaus Theme
582endef
583
584define Package/luci-theme-fledermaus/install
585    $(call Package/luci/install/template,$(1),themes/fledermaus)
586endef
587
588define Package/luci-theme-freifunk
589  $(call Package/luci/thtemplate)
590  DEPENDS:=+luci-web
591  MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
592  TITLE:=alternative Freifunk Theme
593endef
594
595define Package/luci-theme-freifunk/install
596        $(call Package/luci/install/template,$(1),themes/freifunk)
597endef
598
599define Package/luci-theme-freifunk-bno
600  $(call Package/luci/thtemplate)
601  DEPENDS:=+luci-web
602  MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
603  TITLE:=Freifunk Berlin Nordost Theme
604endef
605
606define Package/luci-theme-freifunk-bno/install
607    $(call Package/luci/install/template,$(1),themes/freifunk-bno)
608endef
609
610define Package/luci-theme-openwrt
611  $(call Package/luci/thtemplate)
612  TITLE:=OpenWrt.org (default)
613  DEPENDS:=+luci-theme-base
614endef
615
616define Package/luci-theme-openwrt/install
617    $(call Package/luci/install/template,$(1),themes/openwrt.org)
618endef
619
620define Package/luci-theme-openwrtlight
621  $(call Package/luci/thtemplate)
622  TITLE:=OpenWrt.org - light variant without images
623  DEPENDS:=+luci-theme-base
624endef
625
626define Package/luci-theme-openwrtlight/install
627    $(call Package/luci/install/template,$(1),themes/openwrt-light)
628endef
629
630
631### Translations ###
632define Package/luci-i18n-german
633  $(call Package/luci/i18ntemplate)
634  TITLE:=German
635endef
636
637define Package/luci-i18n-german/install
638    $(call Package/luci/install/template,$(1),i18n/german)
639endef
640
641
642define Package/luci-i18n-english
643  $(call Package/luci/i18ntemplate)
644  TITLE:=English
645endef
646
647define Package/luci-i18n-english/install
648    $(call Package/luci/install/template,$(1),i18n/english)
649endef
650
651
652define Package/luci-i18n-french
653  $(call Package/luci/i18ntemplate)
654  TITLE:=French (by Florian Fainelli)
655endef
656
657define Package/luci-i18n-french/install
658    $(call Package/luci/install/template,$(1),i18n/french)
659endef
660
661
662define Package/luci-i18n-russian
663  $(call Package/luci/i18ntemplate)
664  TITLE:=Russian (by Skryabin Dmitry)
665endef
666
667define Package/luci-i18n-russian/install
668    $(call Package/luci/install/template,$(1),i18n/russian)
669endef
670
671
672define Package/luci-i18n-portuguese_brazilian
673  $(call Package/luci/i18ntemplate)
674  TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
675endef
676
677define Package/luci-i18n-portuguese_brazilian/install
678    $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
679endef
680
681
682### Compile ###
683ifneq ($(CONFIG_PACKAGE_luci-core),)
684    PKG_SELECTED_MODULES+=libs/core
685endif
686ifneq ($(CONFIG_PACKAGE_luci-cbi),)
687    PKG_SELECTED_MODULES+=libs/cbi
688endif
689ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
690    PKG_SELECTED_MODULES+=libs/fastindex
691endif
692ifneq ($(CONFIG_PACKAGE_luci-http),)
693    PKG_SELECTED_MODULES+=libs/http
694endif
695ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
696    PKG_SELECTED_MODULES+=libs/ipkg
697endif
698ifneq ($(CONFIG_PACKAGE_luci-json),)
699    PKG_SELECTED_MODULES+=libs/json
700endif
701ifneq ($(CONFIG_PACKAGE_luci-uci),)
702    PKG_SELECTED_MODULES+=libs/uci
703endif
704ifneq ($(CONFIG_PACKAGE_luci-sys),)
705    PKG_SELECTED_MODULES+=libs/sys
706endif
707ifneq ($(CONFIG_PACKAGE_luci-web),)
708    PKG_SELECTED_MODULES+=libs/web
709endif
710ifneq ($(CONFIG_PACKAGE_luci-uvl),)
711    PKG_SELECTED_MODULES+=libs/uvl
712endif
713
714ifneq ($(CONFIG_PACKAGE_luci-httpd),)
715    PKG_SELECTED_MODULES+=libs/httpd
716endif
717
718ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
719    PKG_SELECTED_MODULES+=modules/admin-core
720endif
721ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
722    PKG_SELECTED_MODULES+=modules/admin-mini
723endif
724ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
725    PKG_SELECTED_MODULES+=modules/admin-full
726endif
727ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
728    PKG_SELECTED_MODULES+=modules/rpc
729endif
730ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
731    PKG_SELECTED_MODULES+=modules/freifunk
732endif
733
734ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
735    PKG_SELECTED_MODULES+=applications/freifunk-community
736endif
737
738ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
739    PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
740endif
741ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
742    PKG_SELECTED_MODULES+=applications/luci-fw
743endif
744ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
745    PKG_SELECTED_MODULES+=applications/luci-olsr
746endif
747ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
748    PKG_SELECTED_MODULES+=applications/luci-qos
749endif
750ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
751    PKG_SELECTED_MODULES+=applications/luci-splash
752endif
753ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
754    PKG_SELECTED_MODULES+=applications/luci-statistics
755endif
756ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
757    PKG_SELECTED_MODULES+=applications/luci-upnp
758endif
759ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
760    PKG_SELECTED_MODULES+=applications/luci-ntpc
761endif
762ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
763    PKG_SELECTED_MODULES+=applications/luci-ddns
764endif
765ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
766    PKG_SELECTED_MODULES+=applications/luci-samba
767endif
768ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
769    PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
770endif
771ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
772        PKG_SELECTED_MODULES+=applications/luci-p910nd
773endif
774ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
775        PKG_SELECTED_MODULES+=applications/luci-ushare
776endif
777ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
778       PKG_SELECTED_MODULES+=applications/luci-hd_idle
779endif
780ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
781       PKG_SELECTED_MODULES+=applications/luci-tinyproxy
782endif
783ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
784       PKG_SELECTED_MODULES+=applications/luci-initmgr
785endif
786ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
787       PKG_SELECTED_MODULES+=applications/luci-livestats
788endif
789ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
790       PKG_SELECTED_MODULES+=applications/luci-asterisk
791endif
792
793
794ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
795    PKG_SELECTED_MODULES+=libs/sgi-cgi
796endif
797ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
798    PKG_SELECTED_MODULES+=libs/sgi-luci
799endif
800ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
801    PKG_SELECTED_MODULES+=libs/sgi-webuci
802endif
803
804ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
805    PKG_SELECTED_MODULES+=themes/base
806endif
807ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
808    PKG_SELECTED_MODULES+=themes/fledermaus
809endif
810ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
811    PKG_SELECTED_MODULES+=themes/freifunk-bno
812endif
813ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
814    PKG_SELECTED_MODULES+=themes/freifunk
815endif
816ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
817    PKG_SELECTED_MODULES+=themes/openwrt.org
818endif
819ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
820    PKG_SELECTED_MODULES+=themes/openwrt-light
821endif
822
823ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
824    PKG_SELECTED_MODULES+=i18n/german
825endif
826ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
827    PKG_SELECTED_MODULES+=i18n/english
828endif
829ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
830    PKG_SELECTED_MODULES+=i18n/french
831endif
832ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
833    PKG_SELECTED_MODULES+=i18n/russian
834endif
835ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
836    PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
837endif
838
839
840MAKE_FLAGS += \
841    MODULES="$(PKG_SELECTED_MODULES)" \
842    LUA_TARGET="$(LUA_TARGET)" \
843    LUA_SHLIBS="-llua -lm" \
844    CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
845    LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
846    OS="Linux"
847
848
849$(eval $(call BuildPackage,luci-core))
850$(eval $(call BuildPackage,luci-cbi))
851$(eval $(call BuildPackage,luci-fastindex))
852$(eval $(call BuildPackage,luci-http))
853$(eval $(call BuildPackage,luci-ipkg))
854$(eval $(call BuildPackage,luci-json))
855$(eval $(call BuildPackage,luci-uci))
856$(eval $(call BuildPackage,luci-sys))
857$(eval $(call BuildPackage,luci-web))
858$(eval $(call BuildPackage,luci-uvl))
859
860$(eval $(call BuildPackage,luci-httpd))
861
862$(eval $(call BuildPackage,luci-admin-core))
863$(eval $(call BuildPackage,luci-admin-mini))
864$(eval $(call BuildPackage,luci-admin-full))
865$(eval $(call BuildPackage,luci-admin-rpc))
866$(eval $(call BuildPackage,luci-mod-freifunk))
867
868$(eval $(call BuildPackage,luci-freifunk-community))
869
870$(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
871$(eval $(call BuildPackage,luci-app-firewall))
872$(eval $(call BuildPackage,luci-app-olsr))
873$(eval $(call BuildPackage,luci-app-qos))
874$(eval $(call BuildPackage,luci-app-splash))
875$(eval $(call BuildPackage,luci-app-statistics))
876$(eval $(call BuildPackage,luci-app-upnp))
877$(eval $(call BuildPackage,luci-app-ntpc))
878$(eval $(call BuildPackage,luci-app-ddns))
879$(eval $(call BuildPackage,luci-app-samba))
880$(eval $(call BuildPackage,luci-app-uvc_streamer))
881$(eval $(call BuildPackage,luci-app-p910nd))
882$(eval $(call BuildPackage,luci-app-ushare))
883$(eval $(call BuildPackage,luci-app-hd_idle))
884$(eval $(call BuildPackage,luci-app-tinyproxy))
885$(eval $(call BuildPackage,luci-app-initmgr))
886$(eval $(call BuildPackage,luci-app-livestats))
887$(eval $(call BuildPackage,luci-app-asterisk))
888
889$(eval $(call BuildPackage,luci-sgi-cgi))
890$(eval $(call BuildPackage,luci-sgi-luci))
891$(eval $(call BuildPackage,luci-sgi-webuci))
892
893$(eval $(call BuildPackage,luci-theme-base))
894$(eval $(call BuildPackage,luci-theme-fledermaus))
895$(eval $(call BuildPackage,luci-theme-freifunk))
896$(eval $(call BuildPackage,luci-theme-freifunk-bno))
897$(eval $(call BuildPackage,luci-theme-openwrt))
898$(eval $(call BuildPackage,luci-theme-openwrtlight))
899
900$(eval $(call BuildPackage,luci-i18n-german))
901$(eval $(call BuildPackage,luci-i18n-english))
902$(eval $(call BuildPackage,luci-i18n-french))
903$(eval $(call BuildPackage,luci-i18n-russian))
904$(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
Note: See TracBrowser for help on using the browser.