Add PKG_LICENSE variable to the most of the packages.
[feed/telephony.git] / net / freeswitch / Makefile
1 #
2 # Copyright (C) 2009-2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 #
8 include $(TOPDIR)/rules.mk
9
10
11 PKG_NAME:=freeswitch
12 PKG_SOURCE_PROTO:=git
13 PKG_DISTNAME:=$(PKG_NAME)_$(PKG_SOURCE_PROTO)
14 PKG_VERSION:=1.5.15b
15
16
17 #
18 # The latest FS git hash in PKG_SOURCE_VERSION can be obtained from
19 # http://fisheye.freeswitch.org
20 #
21 FS_WITH_DEFAULT_HEAD:=12b6940644a68ea444c0e430412d419ae368d4a8
22 PKG_SOURCE_URL:=https://stash.$(PKG_NAME).org/scm/fs/$(PKG_NAME).git
23 PKG_SOURCE_VERSION:=$(if $(CONFIG_FS_WITH_LATEST_HEAD),$(shell git ls-remote $(PKG_SOURCE_URL) HEAD|cut -f1),$(FS_WITH_DEFAULT_HEAD))
24 FS_WITH_DEFAULT_HEAD_SHORT:=$(shell echo $(FS_WITH_DEFAULT_HEAD)|cut -b -7)
25 PKG_SOURCE_VERSION_SHORT:=$(shell echo $(PKG_SOURCE_VERSION)|cut -b -7)
26 PKG_RELEASE:=$(PKG_SOURCE_VERSION_SHORT)
27 PKG_SOURCE_SUBDIR:=$(PKG_DISTNAME)
28 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR)-$(if $(CONFIG_FS_WITH_LOCAL_SOURCE),$(FS_WITH_DEFAULT_HEAD_SHORT).tar.xz,$(PKG_SOURCE_VERSION_SHORT).tar.bz2)
29 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
30
31
32 PKG_FIXUP:=libtool autoreconf
33 PKG_BUILD_PARALLEL:=0
34
35 PKG_LICENSE:=MPL-1.1
36 PKG_LICENSE_FILES:=COPYING
37
38 ifeq ($(CONFIG_DEVEL),y)
39         export QUILT=1
40 endif
41
42
43 PKG_BUILD_DEPENDS:= \
44         FS_WITH_CORE_LIBEDIT_SUPPORT:libedit \
45         FS_WITH_MYSQL:libmysqlclient \
46         FS_WITH_POSTGRESQL:libpq \
47         FS_WITH_SQLITE3:libsqlite3 \
48         FS_WITH_APR_SCTP:sctp \
49
50
51 TAR_OPTIONS+= --strip-components=1 -C $(PKG_BUILD_DIR)
52
53
54 FS_MOD_AVAILABLE:= \
55         abstraction \
56         alsa \
57         amr \
58         amrwb \
59         avmd \
60         basic \
61         bert \
62         blacklist \
63         bv \
64         callcenter \
65         cdr-csv \
66         cdr-mongodb \
67         cdr-pg-csv \
68         cdr-sqlite \
69         celt \
70         cepstral \
71         cidlookup \
72         cluechoo \
73         codec2 \
74         commands \
75         conference \
76         console \
77         curl \
78         dahdi-codec \
79         db \
80         dialplan-asterisk \
81         dialplan-directory \
82         dialplan-xml \
83         dingaling \
84         directory \
85         distributor \
86         dptools \
87         easyroute \
88         enum \
89         erlang-event \
90         esf \
91         event-multicast \
92         event-socket \
93         event-zmq \
94         expr \
95         fifo \
96         file-string \
97         flite \
98         format-cdr \
99         freetdm \
100         fsk \
101         fsv \
102         g723-1 \
103         g729 \
104         gsmopen \
105         h26x \
106         h323 \
107         hash \
108         html5 \
109         httapi \
110         http-cache \
111         ilbc \
112         isac \
113         java \
114         json-cdr \
115         lcr \
116         ldap \
117         local-stream \
118         logfile \
119         loopback \
120         lua \
121         managed \
122         memcache \
123         mongo \
124         mp4 \
125         mp4v \
126         native-file \
127         nibblebill \
128         opus \
129         oreka \
130         perl \
131         portaudio \
132         portaudio-stream \
133         posix-timer \
134         python \
135         radius-cdr \
136         rayo \
137         redis \
138         rss \
139         rtc \
140         rtmp \
141         sangoma-codec \
142         say-de \
143         say-en \
144         say-es \
145         say-fa \
146         say-fr \
147         say-hu \
148         say-it \
149         say-nl \
150         say-pt \
151         say-ru \
152         say-th \
153         say-zh \
154         shell-stream \
155         silk \
156         siren \
157         skel \
158         skinny \
159         skypopen \
160         sms \
161         snapshot \
162         snipe-hunt \
163         sndfile \
164         snmp \
165         snom \
166         sofia \
167         sonar \
168         spandsp \
169         spidermonkey \
170         spidermonkey-core-db \
171         spidermonkey-curl \
172         spidermonkey-odbc \
173         spidermonkey-socket \
174         spidermonkey-teletone \
175         spy \
176         ssml \
177         stress \
178         syslog \
179         timerfd \
180         tone-stream \
181         tts-commandline \
182         unimrcp \
183         valet-parking \
184         verto \
185         vmd \
186         voicemail \
187         voicemail-ivr \
188         vp8 \
189         xml-cdr \
190         xml-curl \
191         xml-ldap \
192         xml-rpc \
193         xml-radius \
194         xml-scgi \
195         yaml \
196
197
198 PKG_CONFIG_DEPENDS:= \
199         CONFIG_FS_WITH_ALSA \
200         CONFIG_FS_WITH_APR_CONFIG_SWITCHES \
201         CONFIG_FS_WITH_APR_IPV6 \
202         CONFIG_FS_WITH_APR_SCTP \
203         CONFIG_FS_WITH_APR_THREADS \
204         CONFIG_FS_WITH_BUILTIN_ZRTP \
205         CONFIG_FS_WITH_CORE_LIBEDIT_SUPPORT \
206         CONFIG_FS_WITH_DEFAULT_HEAD \
207         CONFIG_FS_WITH_ERLANG \
208         CONFIG_FS_WITH_FHS \
209         CONFIG_FS_WITH_FIXED_POINT \
210         CONFIG_FS_WITH_LATEST_HEAD \
211         CONFIG_FS_WITH_LOCAL_SOURCE \
212         CONFIG_FS_WITH_LZMA \
213         CONFIG_FS_WITH_MYSQL \
214         CONFIG_FS_WITH_ODBC \
215         CONFIG_FS_WITH_OGG \
216         CONFIG_FS_WITH_OPENSSL \
217         CONFIG_FS_WITH_OPENWRT_SOURCE \
218         CONFIG_FS_WITH_OPT \
219         CONFIG_FS_WITH_POSTGRESQL \
220         CONFIG_FS_WITH_SILENT_RULES \
221         CONFIG_FS_WITH_SQLITE3 \
222         CONFIG_FS_WITH_SRTP \
223         CONFIG_FS_WITH_SRTP_GENERIC_AESICM \
224         CONFIG_FS_WITH_SRTP_KERNEL_LINUX \
225         CONFIG_FS_WITH_SRTP_OPENSSL \
226         CONFIG_FS_WITH_STUN \
227         CONFIG_FS_WITH_VISIBILITY \
228         $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-mod-%,$(FS_MOD_AVAILABLE)) \
229
230
231 include $(INCLUDE_DIR)/package.mk
232 include $(INCLUDE_DIR)/nls.mk
233
234
235 ifneq ($(CONFIG_CCACHE),)
236 TARGET_CC=$(TARGET_CC_NOCACHE)
237 TARGET_CXX=$(TARGET_CXX_NOCACHE)
238 endif
239
240
241 ifneq ($(CONFIG_CCACHE),)
242 TARGET_CC=$(TARGET_CC_NOCACHE)
243 TARGET_CXX=$(TARGET_CXX_NOCACHE)
244 endif
245
246
247 define Package/$(PKG_NAME)/Default
248   SECTION:=net
249   CATEGORY:=Network
250   SUBMENU:=Telephony
251   URL:=http://www.$(PKG_NAME).org/
252   MAINTAINER:=Mazi Lo <openwrt.mazilo@recursor.net>
253 endef
254
255
256 define Package/$(PKG_NAME)
257 $(call Package/$(PKG_NAME)/Default)
258   MENU:=1
259   TITLE:=FreeSWITCH open source telephony platform ($(PKG_SOURCE_VERSION_SHORT))
260   DEPENDS:=+FS_WITH_CORE_LIBEDIT_SUPPORT:libedit +FS_WITH_OPENSSL:libopenssl +libcurl +libdb47 +libgdbm $(ICONV_DEPENDS) $(INTL_DEPENDS) +libjpeg +libncurses +libopenldap +libpcre +libpthread +librt +libspeex +libspeexdsp +FS_WITH_SQLITE3:libsqlite3 +FS_WITH_SRTP:libsrtp +SSP_SUPPORT:libssp +libstdcpp +libuuid +PACKAGE_$(PKG_NAME)-mod-perl:perl
261 endef
262
263
264 define Package/$(PKG_NAME)/description
265   FreeSWITCH is an open source telephony platform designed to
266   facilitate the creation of voice and chat driven products 
267   scaling from a soft-phone up to a soft-switch.
268 endef
269
270
271 define Package/$(PKG_NAME)/config
272   source "$(SOURCE)/Config.in"
273 endef
274
275
276 define Package/$(PKG_NAME)-mod-spandsp/config
277     config FS_WITH_FIXED_POINT
278     depends on PACKAGE_$(PKG_NAME)-mod-spandsp
279     bool "Enable fixed point support for spandsp (may degrade performance)"
280     default n
281     help
282         Compile spandsp package with a fixed point support. ONLY enabled this
283         option when necessary, i.e. CPU doesn't support floating computation.
284 endef
285
286
287 define Package/$(PKG_NAME)-example-config
288 $(call Package/$(PKG_NAME)/Default)
289   TITLE:=FreeSWITCH example config (commented)
290   DEPENDS:= $(PKG_NAME)
291 endef
292
293
294 define Package/$(PKG_NAME)-example-config/description
295   The default configuration included with FreeSWITCH. It is not intended to be
296   a final product, and is thus moved to /usr/share/$(PKG_NAME)/examples/conf to
297   be an example of how FreeSWITCH can be configured.
298 endef
299
300
301 define Package/$(PKG_NAME)-config-upstream-defaults
302 $(call Package/$(PKG_NAME)/Default)
303   TITLE:=FreeSWITCH upstream config
304   DEPENDS:= $(PKG_NAME)
305 endef
306
307
308 define Package/$(PKG_NAME)-config-upstream-defaults/description
309   The default configuration included with FreeSWITCH. It is not intended to be
310   a final product, and but is included for those who don't want to use the
311   OpenWRT configuration and/or want to try things as prepared by upstream.
312 endef
313
314
315 define Package/$(PKG_NAME)-config-minimal
316 $(call Package/$(PKG_NAME)/Default)
317   TITLE:=FreeSWITCH minimal config
318   DEPENDS:= $(PKG_NAME)
319 endef
320
321
322 define Package/$(PKG_NAME)-config-minimal/description
323   A minimal configuration of FreeSWITCH for OpenWRT devices. Is what the UCI
324   configuration began with.
325 endef
326
327
328 define Package/$(PKG_NAME)-collection-upstream-defaults
329 $(call Package/$(PKG_NAME)/Default)
330   TITLE:=FS upstream def sample conf
331   DEPENDS:= $(PKG_NAME) \
332                 +$(PKG_NAME)-config-upstream-defaults \
333                 +$(PKG_NAME)-mod-callcenter \
334                 +$(PKG_NAME)-mod-codec2 \
335                 +$(PKG_NAME)-mod-commands \
336                 +$(PKG_NAME)-mod-conference \
337                 +$(PKG_NAME)-mod-curl \
338                 +$(PKG_NAME)-mod-dialplan-xml \
339                 +$(PKG_NAME)-mod-dingaling \
340                 +$(PKG_NAME)-mod-dptools \
341                 +$(PKG_NAME)-mod-event-socket \
342                 +$(PKG_NAME)-mod-g723-1 \
343                 +$(PKG_NAME)-mod-g729 \
344                 +$(PKG_NAME)-mod-hash \
345                 +$(PKG_NAME)-mod-http-cache \
346                 +$(PKG_NAME)-mod-ilbc \
347                 +$(PKG_NAME)-mod-local-stream \
348                 +$(PKG_NAME)-mod-lua \
349                 +$(PKG_NAME)-mod-native-file \
350                 +$(PKG_NAME)-mod-say-en \
351                 +$(PKG_NAME)-mod-sndfile \
352                 +$(PKG_NAME)-mod-sofia \
353                 +$(PKG_NAME)-mod-syslog \
354                 +$(PKG_NAME)-mod-tone-stream \
355                 +$(PKG_NAME)-mod-xml-curl \
356                 +$(PKG_NAME)-mod-xml-rpc \
357                 +$(PKG_NAME)-tools
358 endef
359
360
361 define Package/$(PKG_NAME)-collection-minimal
362 $(call Package/$(PKG_NAME)/Default)
363   TITLE:=FreeSWITCH minimal package collection
364   DEFAULT:=y
365   DEPENDS:= $(PKG_NAME) \
366                 +$(PKG_NAME)-config-minimal \
367                 +$(PKG_NAME)-mod-codec2 \
368                 +$(PKG_NAME)-mod-commands \
369                 +$(PKG_NAME)-mod-dialplan-xml \
370                 +$(PKG_NAME)-mod-dptools \
371                 +$(PKG_NAME)-mod-event-socket \
372                 +$(PKG_NAME)-mod-hash \
373                 +$(PKG_NAME)-mod-local-stream \
374                 +$(PKG_NAME)-mod-sndfile \
375                 +$(PKG_NAME)-mod-sofia \
376                 +$(PKG_NAME)-mod-syslog \
377                 +$(PKG_NAME)-mod-tone-stream \
378                 +$(PKG_NAME)-tools
379 endef
380
381
382 define Package/$(PKG_NAME)-sounds-en-08KHz
383 $(call Package/$(PKG_NAME)/Default)
384   TITLE:=FreeSWITCH 8KHz english sounds
385   DEPENDS:= $(PKG_NAME)
386 endef
387
388
389 define Package/$(PKG_NAME)-sounds-en-16KHz
390 $(call Package/$(PKG_NAME)/Default)
391   TITLE:=FreeSWITCH 16KHz english sounds
392   DEPENDS:= +$(PKG_NAME)-sounds-en-08KHz
393 endef
394
395
396 define Package/$(PKG_NAME)-sounds-en-32KHz
397 $(call Package/$(PKG_NAME)/Default)
398   TITLE:=FreeSWITCH 32KHz english sounds
399   DEPENDS:= +$(PKG_NAME)-sounds-en-16KHz
400 endef
401
402
403 define Package/$(PKG_NAME)-sounds-en-48KHz
404 $(call Package/$(PKG_NAME)/Default)
405   TITLE:=FreeSWITCH 48KHz english sounds
406   DEPENDS:= +$(PKG_NAME)-sounds-en-32KHz
407 endef
408
409
410 define Package/$(PKG_NAME)-sounds-moh-08KHz
411 $(call Package/$(PKG_NAME)/Default)
412   TITLE:=FreeSWITCH 8KHz music-on-hold sounds
413   DEPENDS:= $(PKG_NAME)
414 endef
415
416
417 define Package/$(PKG_NAME)-sounds-moh-16KHz
418 $(call Package/$(PKG_NAME)/Default)
419   TITLE:=FreeSWITCH 16KHz music-on-hold sounds
420   DEPENDS:= +$(PKG_NAME)-sounds-moh-08KHz
421 endef
422
423
424 define Package/$(PKG_NAME)-sounds-moh-32KHz
425 $(call Package/$(PKG_NAME)/Default)
426   TITLE:=FreeSWITCH 32KHz music-on-hold sounds
427   DEPENDS:= +$(PKG_NAME)-sounds-moh-16KHz
428 endef
429
430
431 define Package/$(PKG_NAME)-sounds-moh-48KHz
432 $(call Package/$(PKG_NAME)/Default)
433   TITLE:=FreeSWITCH 48KHz music-on-hold sounds
434   DEPENDS:= +$(PKG_NAME)-sounds-moh-32KHz
435 endef
436
437
438 define Package/$(PKG_NAME)-tools
439 $(call Package/$(PKG_NAME)/Default)
440   TITLE:=FreeSWITCH control tools
441   DEPENDS:= $(PKG_NAME)
442 endef
443
444
445 define Download/files
446  define Download/$(1)
447   FILE:=$(2)
448   URL:=$(if $(4),$(4),http://files.$(PKG_NAME).org)/$(5)
449   MD5SUM:=$(3)
450  endef
451  define Prepare/$(1)
452   $(LN) $(DL_DIR)/$(2) $(PKG_BUILD_DIR)/$(6)
453  endef
454  $$(eval $$(call Download,$(1)))
455 endef
456
457
458 MAKE_INSTALL_TARGETS:=install
459
460
461 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-celt),)
462  $(eval $(call Download/files,celt,celt-0.10.0.tar.gz,a656f6176e9be84027c0e51ceedd710f,,downloads/libs/,libs/))
463 endif
464
465
466 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-curl),)
467  $(eval $(call Download/files,json-cdr,json-c-0.9.tar.gz,4653b3b9c568bb9c782178abfaac128d,,downloads/libs/,libs/))
468 endif
469
470
471 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event-zmq),)
472  $(eval $(call Download/files,event-zmq,zeromq-2.1.9.tar.gz,94c5e0262a79c5f82bc0b178c1f8a33d,http://download.zeromq.org http://download.zeromq.org/historic,,libs/))
473 endif
474
475
476 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-flite),)
477  $(eval $(call Download/files,flite,flite-1.5.4-current.tar.bz2,f3a2d88b1059f6f4ff3c20a8169bc0f4,,downloads/libs/,libs/))
478 endif
479
480
481 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-mongo),)
482  $(eval $(call Download/files,mongo,mongo-c-driver-0.92.2.tar.gz,afab25a33abd3f1e0ba79c5a9da92651,,downloads/libs/,libs/))
483 endif
484
485
486 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-opus),)
487  $(eval $(call Download/files,opus,opus-1.1-p2.tar.gz,5da7cb39925bfb7dd60ea2e810f71357,,downloads/libs/,libs/))
488 endif
489
490
491 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-ldap)|$(CONFIG_PACKAGE_$(PKG_NAME)-mod-xml-ldap),)
492  $(eval $(call Download/files,ldap,openldap-2.4.19.tar.gz,4a6dab2711fcf141f19bb680bc335887,,downloads/libs/,libs/))
493 endif
494
495
496 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-08KHz),)
497  $(eval $(call Download/files,sounds-en-08KHz,$(PKG_NAME)-sounds-en-us-callie-8000-1.0.50.tar.gz,14cccba7b5c56f027fea391f1e0ee2d6,,,))
498         MAKE_INSTALL_TARGETS+= sounds-install
499 endif
500
501
502 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-16KHz),)
503  $(eval $(call Download/files,sounds-en-16KHz,$(PKG_NAME)-sounds-en-us-callie-16000-1.0.50.tar.gz,261f42e310baa97cc4dcfdc51971aff8,,,))
504         MAKE_INSTALL_TARGETS+= hd-sounds-install
505 endif
506
507
508 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-32KHz),)
509  $(eval $(call Download/files,sounds-en-32KHz,$(PKG_NAME)-sounds-en-us-callie-32000-1.0.50.tar.gz,f204512fadc49a3267ff4a5e899b77a5,,,))
510         MAKE_INSTALL_TARGETS+= uhd-sounds-install
511 endif
512
513
514 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-48KHz),)
515  $(eval $(call Download/files,sounds-en-48KHz,$(PKG_NAME)-sounds-en-us-callie-48000-1.0.50.tar.gz,8622a77a5d6dcf5e47bdf30d6a33e27c,,,))
516         MAKE_INSTALL_TARGETS+= cd-sounds-install
517 endif
518
519
520 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-08KHz),)
521  $(eval $(call Download/files,sounds-moh-08KHz,$(PKG_NAME)-sounds-music-8000-1.0.50.tar.gz,c1f62dc26360f39f8eb442d5efd0a3aa,,,))
522         MAKE_INSTALL_TARGETS+= moh-install
523 endif
524
525
526 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-16KHz),)
527  $(eval $(call Download/files,sounds-moh-16KHz,$(PKG_NAME)-sounds-music-16000-1.0.50.tar.gz,d253e26baa85e0e2e727a1cb1cca898e,,,))
528         MAKE_INSTALL_TARGETS+= hd-moh-install
529 endif
530
531
532 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-32KHz),)
533  $(eval $(call Download/files,sounds-moh-32KHz,$(PKG_NAME)-sounds-music-32000-1.0.50.tar.gz,0e3ee69cb4ba2813ed0d3f7811332b63,,,))
534         MAKE_INSTALL_TARGETS+= uhd-moh-install
535 endif
536
537
538 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-48KHz),)
539  $(eval $(call Download/files,sounds-moh-48KHz,$(PKG_NAME)-sounds-music-48000-1.0.50.tar.gz,873a62df1ab3be4191eb2488156ec2c2,,,))
540         MAKE_INSTALL_TARGETS+= cd-moh-install
541 endif
542
543
544 #
545 # XXX: -fgnu89-inline is not supported on all compiler versions, so only enable it on avr32 where it solves build issues
546 #
547 ifneq ($(CONFIG_avr32),)
548   TARGET_CFLAGS += -fgnu89-inline
549   TARGET_CXXFLAGS += -fgnu89-inline
550 endif
551
552
553 ifneq ($(CONFIG_USE_EGLIBC),)
554   ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)
555     TARGET_CFLAGS += -DNO_GETLOGIN
556   endif
557 endif
558
559
560 FS_TARGET_CFLAGS:= $(TARGET_CFLAGS) -DLUA_USE_LINUX $(FPIC) -std=gnu99 -Wno-format -Wno-unused-variable -Wno-unused-but-set-variable -Wno-implicit-function-declaration
561 FS_TARGET_CXXFLAGS:= $(TARGET_CXXFLAGS)
562 FS_TARGET_CPPFLAGS:= -I. -I./lua $(TARGET_CPPFLAGS) $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-json-cdr),-Wno-error) -I`ls -d $(PKG_BUILD_DIR)/libs/*|grep tiff`/libtiff -I$(PKG_BUILD_DIR)/libs/spandsp/src
563
564
565 #MAKE_FLAGS += \
566 #       OPT_FLAGS+="$(TARGET_CFLAGS)"
567
568
569 MAKE_VARS += \
570         AR="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ar" \
571         CC="$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)" \
572         CXX="$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX)" \
573         RANLIB="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ranlib" \
574         CC_FOR_BUILD="$(HOSTCC)" \
575
576
577 CONFIGURE_ARGS+= \
578         --host=$(GNU_TARGET_NAME) \
579         --build=$(GNU_HOST_NAME) \
580         --prefix="/usr/share/$(PKG_NAME)" \
581         --bindir="/usr/bin" \
582         --libdir="/usr/lib" \
583         --srcdir="$(PKG_BUILD_DIR)" \
584         --sysconfdir="/etc/$(PKG_NAME)" \
585         --with-modinstdir="/usr/lib/$(PKG_NAME)" \
586         --with-random="/dev/urandom" \
587         $(call autoconf_bool,CONFIG_FS_WITH_BUILTIN_ZRTP,zrtp) \
588         $(call autoconf_bool,CONFIG_FS_WITH_CORE_LIBEDIT_SUPPORT,core-libedit-support) \
589         $(call autoconf_bool,CONFIG_FS_WITH_FHS,fhs) \
590         $(call autoconf_bool,CONFIG_FS_WITH_APR_IPV6,ipv6) \
591         $(call autoconf_bool,CONFIG_FS_WITH_LZMA,lzma) \
592         $(call autoconf_bool,CONFIG_FS_WITH_ODBC,core-odbc-support) \
593         $(call autoconf_bool,CONFIG_FS_WITH_OPT,optimization) \
594         $(call autoconf_bool,CONFIG_FS_WITH_POSTGRESQL,core-pgsql-pkgconfig) \
595         $(call autoconf_bool,CONFIG_FS_WITH_POSTGRESQL,core-pgsql-support) \
596         $(call autoconf_bool,CONFIG_FS_WITH_SILENT_RULES,silent-rules) \
597         $(call autoconf_bool,CONFIG_FS_WITH_SRTP,srtp) \
598         $(call autoconf_bool,CONFIG_FS_WITH_SRTP_GENERIC_AESICM,generic-aesicm) \
599         $(call autoconf_bool,CONFIG_FS_WITH_SRTP_KERNEL_LINUX,kernel-linux) \
600         $(call autoconf_bool,CONFIG_FS_WITH_SRTP_OPENSSL,openssl) \
601         $(call autoconf_bool,CONFIG_FS_WITH_STUN,stun) \
602         $(call autoconf_bool,CONFIG_FS_WITH_APR_THREADS,threads) \
603         $(call autoconf_bool,CONFIG_FS_WITH_VISIBILITY,visibility) \
604         $(call autoconf_bool,CONFIG_PACKAGE_$(PKG_NAME)-mod-spandsp && CONFIG_FS_WITH_FIXED_POINT,fixed-point) \
605         $(call autoconf_bool,CONFIG_PACKAGE_$(PKG_NAME)-mod-spandsp,builtin-tiff) \
606         $(call autoconf_bool,CONFIG_PACKAGE_$(PKG_NAME)-mod-timerfd,timerfd-wrapper) \
607         $(if $(CONFIG_FS_WITH_ODBC),--with-odbc-lib="$(STAGING_DIR)/usr/lib") \
608         $(if $(CONFIG_FS_WITH_ODBC),--with-odbc="$(STAGING_DIR)/usr") \
609         $(if $(CONFIG_FS_WITH_OGG),--with-ogg="$(STAGING_DIR)/usr") \
610         $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-celt),--with-ogg="$(STAGING_DIR)/usr",--without-ogg) \
611         $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-erlang-event),--with-erlang="$(CONFIG_FS_WITH_ERLANG)",--without-erlang) \
612         $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-java),--with-java="$(STAGING_DIR)/usr",--without-java) \
613         $(if ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-curl)|$(CONFIG_PACKAGE_$(PKG_NAME)-mod-xml-cdr)|$(CONFIG_PACKAGE_$(PKG_NAME)-mod-xml-curl)),--with-libcurl="$(STAGING_DIR)/usr",--without-libcurl) \
614         --with$(if $(CONFIG_FS_WITH_MYSQL),,out)-mysql \
615         --with$(if $(CONFIG_FS_WITH_OPENSSL),,out)-openssl \
616         --with$(if $(CONFIG_FS_WITH_POSTGRESQL),,out)-pgsql \
617         --with$(if $(CONFIG_FS_WITH_SQLITE3),,out)-sqlite3 \
618
619
620 ifeq ($(ARCH),arm)
621         CONFIGURE_ARGS+= --enable-arm5e-asm \
622
623 endif
624
625
626 CONFIGURE_VARS+= \
627         config_TARGET_CC="$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)" \
628         config_TARGET_CXX="$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX)" \
629         config_TARGET_CFLAGS="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CFLAGS)" \
630         config_TARGET_CXXFLAGS="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CXXFLAGS)" \
631         config_TARGET_CPPFLAGS="$(FS_TARGET_CPPFLAGS)" \
632         config_TARGET_READLINE_INC="$(FS_TARGET_CPPFLAGS)" \
633         config_TARGET_READLINE_LIBS="-lreadline -lncurses" \
634         config_TARGET_LIBS="-lpthread -ldl" \
635         config_BUILD_CC="$(HOSTCC)" \
636         CC_FOR_BUILD="$(HOSTCC)" \
637         BUILDTOOL_CC="$(HOSTCC)" \
638         BUILDTOOL_CCLD="$(HOSTCC)" \
639         CC="$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)" \
640         CXX="$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX)" \
641         AR="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ar" \
642         RANLIB="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ranlib" \
643         CFLAGS="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CFLAGS)" \
644         CXXFLAGS="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CXXFLAGS)" \
645         CPPFLAGS="$(FS_TARGET_CPPFLAGS)" \
646         LDFLAGS="-L$(STAGING_DIR)/usr/lib/perl5/5.20/CORE -Wl,-rpath-link=\"$(STAGING_DIR)/usr/lib\" -Wl,-rpath-link=\"$(STAGING_DIR)/usr/lib$(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-perl),/perl5/5.20/CORE)\" -Wl,-rpath,/usr/lib -Wl,-rpath,/usr/lib$(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-perl),/perl5/5.20/CORE -lperl -lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc)" \
647         HOST_CC="/usr/bin/cc" \
648         HOST_CXX="/usr/bin/g++" \
649         CROSS_COMPILE="1" \
650         $(if $(CONFIG_FS_WITH_APR_SCTP),ac_cv_header_netinet_sctp_h="yes") \
651
652
653 define Build/Prepare
654         $(call Build/Prepare/Default)
655         $(call Prepare/celt)
656         $(call Prepare/event-zmq)
657         $(call Prepare/flite)
658         $(call Prepare/json-cdr)
659         $(call Prepare/ldap)
660         $(call Prepare/mongo)
661         $(call Prepare/opus)
662         $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-08KHz),$(call Prepare/sounds-en-08KHz))
663         $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-16KHz),$(call Prepare/sounds-en-16KHz))
664         $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-32KHz),$(call Prepare/sounds-en-32KHz))
665         $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-48KHz),$(call Prepare/sounds-en-48KHz))
666         $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-08KHz),$(call Prepare/sounds-moh-08KHz))
667         $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-16KHz),$(call Prepare/sounds-moh-16KHz))
668         $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-32KHz),$(call Prepare/sounds-moh-32KHz))
669         $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-48KHz),$(call Prepare/sounds-moh-48KHz))
670 ifeq ($(CONFIG_FS_WITH_LOCAL_SOURCE),y)
671         (cd $(PKG_BUILD_DIR); $(if $(CONFIG_FS_WITH_LATEST_HEAD),if $(QUILT_CMD) top > /dev/null 2>&1 && [ -f $(PKG_BUILD_DIR)/patches/series ]; then $(QUILT_CMD) pop -a; fi; git pull;) if $(QUILT_CMD) next > /dev/null 2>&1; then $(QUILT_CMD) push -a; fi)
672 endif
673 endef
674
675
676 define Build/Configure
677         (cd $(PKG_BUILD_DIR); $(if $(CONFIG_FS_WITH_LATEST_HEAD),if $(QUILT_CMD) top > /dev/null 2>&1 && [ -f $(PKG_BUILD_DIR)/patches/series ]; then $(QUILT_CMD) pop -a; fi; git pull;) if $(QUILT_CMD) next > /dev/null 2>&1; then $(QUILT_CMD) push -a; fi)
678         (cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./bootstrap.sh)
679         $(foreach m,$(FS_MOD_AVAILABLE),
680                 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-$(m)),
681                         $(SED) 's|^[ #]*\([^#]*/mod_$(subst -,_,$(m))\)$$$$|\1|g' $(PKG_BUILD_DIR)/modules.conf
682                 ,
683                         $(SED) 's|^\([^#]*/mod_$(subst -,_,$(m))\)$$$$|#\1|g' $(PKG_BUILD_DIR)/modules.conf
684                 )
685         )
686         $(call Build/Configure/Default)
687 endef
688
689
690 define Build/Compile
691         $(call Build/Compile/Default, \
692                 DESTDIR="$(PKG_INSTALL_DIR)" \
693                 all $(MAKE_INSTALL_TARGETS) \
694         )
695         $(SED) 's|^\([ \t]*\)\(.*\)"mod_console"\(.*\)$$$$|\1<!-- \2"mod_console"\3 -->|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
696         $(SED) 's|^\([ \t]*\)<!-- *\(.*\)"mod_syslog"\(.*\) *-->\(.*\)$$$$|\1\2"mod_syslog"\3\4|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
697 endef
698
699
700 define Build/InstallDev
701         $(INSTALL_DIR) $(1)/usr/include
702         $(INSTALL_DIR) $(1)/usr/lib
703         $(CP) $(PKG_INSTALL_DIR)/usr/include $(1)/usr
704         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).{a,so*} $(1)/usr/lib/
705 endef
706
707
708 define Package/$(PKG_NAME)/install
709         $(INSTALL_DIR) $(1)/etc/config
710         $(INSTALL_DIR) $(1)/etc/default
711         $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
712         $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)/scripts
713         $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
714         $(INSTALL_DIR) $(1)/etc/init.d
715         $(INSTALL_DIR) $(1)/usr/bin
716         $(INSTALL_DIR) $(1)/usr/include
717         $(INSTALL_DIR) $(1)/usr/lib
718         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
719         $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
720         $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
721         $(INSTALL_DATA) ./files/$(PKG_NAME).default $(1)/etc/default/$(PKG_NAME)
722         $(INSTALL_DATA) ./files/$(PKG_NAME).hotplug $(1)/etc/hotplug.d/iface/90-$(PKG_NAME)
723         $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
724         $(CP) $(PKG_INSTALL_DIR)/usr/include $(1)/usr/
725         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME)* $(1)/usr/lib/
726         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/$(PKG_NAME).pc $(1)/usr/lib/pkgconfig/
727         $(if $(1)/usr/lib/lib$(PKG_NAME).la,$(STAGING_DIR_HOST)/bin/sed -i -re 's|$(STAGING_DIR)||g;s|$(TOOLCHAIN_DIR)||g;s|$(TARGET_CROSS)|usr|g;s|$(REAL_GNU_TARGET_NAME)|usr|g;s|-L$(PKG_BUILD_DIR)(.*)libzrtp ||g;:a;s|((-[IL]/\S+\s).*)\2|\1|;ta' $(1)/usr/lib/lib$(PKG_NAME).la)
728 endef
729
730
731 define Package/$(PKG_NAME)-collection-upstream-defaults/install
732         $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
733 endef
734
735
736 define Package/$(PKG_NAME)-example-config/install
737         $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/examples/conf
738         $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/usr/share/$(PKG_NAME)/examples/conf/
739 endef
740
741
742 define Package/$(PKG_NAME)-config-upstream-defaults/install
743         $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
744         $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME) $(1)/etc
745 endef
746
747
748 define Package/$(PKG_NAME)-collection-minimal/install
749         $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
750 endef
751
752
753 define Package/$(PKG_NAME)-collection-uci-minimal/install
754         $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
755 endef
756
757
758 define Package/$(PKG_NAME)-config-minimal/install
759         $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)/autoload_configs
760
761         #
762         # Copying dialplan directory jingle_profiles sip_profiles $(PKG_NAME).xml
763         # fur_elise.ttml mime.types tetris.ttml tones.conf vars.xml
764         #
765         $(foreach f,dialplan directory jingle_profiles sip_profiles $(PKG_NAME).xml fur_elise.ttml mime.types tetris.ttml vars.xml,$(if $(PKG_BUILD_DIR)/conf/vanilla/$(f),$(CP) $(PKG_BUILD_DIR)/conf/vanilla/$(f) $(1)/etc/$(PKG_NAME);))
766
767         #
768         # Copying acl ivr modules post_load_modules switch timezones
769         #
770         $(foreach f,acl ivr modules post_load_modules switch timezones,$(if $(PKG_BUILD_DIR)/conf/vanilla/autoload_configs/$(f).conf.xml,$(CP) $(PKG_BUILD_DIR)/conf/vanilla/autoload_configs/$(f).conf.xml $(1)/etc/$(PKG_NAME)/autoload_configs;))
771 endef
772
773
774 define Package/$(PKG_NAME)-sounds-en-08KHz/install
775         #
776         # sounds-en-8KHz
777         #
778         for dir in `(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
779         do \
780                 [ -d $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/8000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/8000; \
781                 $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/8000/* $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/8000; \
782         done
783 endef
784
785
786 define Package/$(PKG_NAME)-sounds-en-16KHz/install
787         #
788         # sounds-en-16KHz
789         #
790         for dir in `(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
791         do \
792                 [ -d $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/16000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/16000; \
793                 $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/16000/* $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/16000; \
794         done
795 endef
796
797
798 define Package/$(PKG_NAME)-sounds-en-32KHz/install
799         #
800         # sounds-en-32KHz
801         #
802         for dir in `(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
803         do \
804                 [ -d $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/32000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/32000; \
805                 $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/32000/* $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/32000; \
806         done
807 endef
808
809
810 define Package/$(PKG_NAME)-sounds-en-48KHz/install
811         #
812         # sounds-en-48KHz
813         #
814         for dir in `(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
815         do \
816                 [ -d $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/48000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/48000; \
817                 $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/48000/* $(1)/usr/share/$(PKG_NAME)/sounds/en/us/callie/$$$${dir}/48000; \
818         done
819 endef
820
821
822 define Package/$(PKG_NAME)-sounds-moh-08KHz/install
823         #
824         # sounds-moh-8KHz
825         #
826         [ -d $(1)/usr/share/$(PKG_NAME)/sounds/music/8000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/music/8000;
827         $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music/8000 $(1)/usr/share/$(PKG_NAME)/sounds/music;
828 endef
829
830
831 define Package/$(PKG_NAME)-sounds-moh-16KHz/install
832         #
833         # sounds-moh-16KHz
834         #
835         [ -d $(1)/usr/share/$(PKG_NAME)/sounds/music/16000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/music/16000;
836         $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music/16000 $(1)/usr/share/$(PKG_NAME)/sounds/music;
837 endef
838
839
840 define Package/$(PKG_NAME)-sounds-moh-32KHz/install
841         #
842         # sounds-moh-32KHz
843         #
844         [ -d $(1)/usr/share/$(PKG_NAME)/sounds/music/32000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/music/32000;
845         $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music/32000 $(1)/usr/share/$(PKG_NAME)/sounds/music;
846 endef
847
848
849 define Package/$(PKG_NAME)-sounds-moh-48KHz/install
850         #
851         # sounds-moh-48KHz
852         #
853         [ -d $(1)/usr/share/$(PKG_NAME)/sounds/music/48000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/music/48000;
854         $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music/48000 $(1)/usr/share/$(PKG_NAME)/sounds/music;
855 endef
856
857
858 define Package/$(PKG_NAME)-tools/install
859         $(INSTALL_DIR) $(1)/usr/bin
860         $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_cli $(1)/usr/bin/
861         $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_encode $(1)/usr/bin/
862         $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_ivrd $(1)/usr/bin/
863         $(CP) $(PKG_INSTALL_DIR)/usr/bin/fsxs $(1)/usr/bin/
864         $(CP) $(PKG_INSTALL_DIR)/usr/bin/gentls_cert $(1)/usr/bin/
865         $(CP) $(PKG_INSTALL_DIR)/usr/bin/tone2wav $(1)/usr/bin/
866 endef
867
868
869 # 1. Name
870 # 2. Title
871 # 3. Selection on module configuration file
872 # 4. Files (module files include different names)
873 # 5. Files (supporting files include different names)
874 # 6. Inter module depends
875 # 7. Extra depends
876 #
877 define BuildPlugin
878   define Package/$(PKG_NAME)-mod-$(1)
879     $$(call Package/$(PKG_NAME)/Default)
880     TITLE:= FS $(2) module
881     DEPENDS:= $(PKG_NAME) $(foreach m,$(6),+$(PKG_NAME)-mod-$(m)) $(7)
882   endef
883
884   define Package/$(PKG_NAME)-mod-$(1)/install
885         [ -z "mod_$(subst -,_,$(1))" ] || $(INSTALL_DIR) $$(1)/usr/lib/$(PKG_NAME)
886
887         for f in $$$$(realpath $$$$(wildcard $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)/mod_$(subst -,_,$(1)).*)) $$$$(wildcard $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)/$(4)_*); \
888         do \
889                 $(CP) $$$$$$$${f} $$(1)/usr/lib/$(PKG_NAME)/; \
890         done
891
892         #
893         # mod_$(subst -,_,$(1)): $(5)
894         #
895         $(foreach f,$(5),[ -d $(dir $$(1)/usr/${f}) ] || $(INSTALL_DIR) $(dir $$(1)/usr/${f});$(CP) $$$$(wildcard $(PKG_INSTALL_DIR)/usr/${f}*) $(dir $$(1)/usr/${f});)
896
897         #
898         # mod_$(subst -,_,$(1)): Clean installed library control files from referencig to OpenWRT PATH.
899         #
900         $(STAGING_DIR_HOST)/bin/sed -i -re 's|$(STAGING_DIR)||g;s|$(TOOLCHAIN_DIR)||g;s|$(TARGET_CROSS)|usr|g;s|$(REAL_GNU_TARGET_NAME)|usr|g;s|-L$(PKG_BUILD_DIR)(.*)libzrtp ||g;s|-L$(PKG_BUILD_DIR)(.*)libtiff ||g;:a;s|((-[IL]/\S+\s).*)\2|\1|;ta' $(foreach l,`find $$(1)/usr/lib -name "*.la" -print`,$(l))
901
902         #
903         # 1. mod_$(subst -,_,$(1)) XML configuration files from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/conf/$(3)/autoload_configs/$(subst -,_,$(1)).conf.xml)))
904         #
905         $$$$(if $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/conf/$(3)/autoload_configs/$(subst -,_,$(1)).conf.xml)),[ -d $$(1)/etc/$(PKG_NAME)/autoload_configs ] || $(INSTALL_DIR) $$(1)/etc/$(PKG_NAME)/autoload_configs;$(CP) $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/conf/$(3)/autoload_configs/$(subst -,_,$(1)).conf.xml)) $$(1)/etc/$(PKG_NAME)/autoload_configs;$(SED) 's|/usr/local/lib|/usr/lib|g;s|/usr/local|/etc|g' $$(1)/etc/$(PKG_NAME)/autoload_configs/$(subst -,_,$(1)).conf.xml)
906
907         #
908         # 2. mod_$(subst -,_,$(1)) XML configuration files from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/$(3)/$(1)/*/$(subst -,_,$(1)).conf.xml)))
909         #
910         $$$$(if $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/$(3)/$(1)/*/$(subst -,_,$(1)).conf.xml)),[ -d $$(1)/etc/$(PKG_NAME)/autoload_configs ] || $(INSTALL_DIR) $$(1)/etc/$(PKG_NAME)/autoload_configs;$(CP) $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/$(3)/$(1)/*/$(subst -,_,$(1)).conf.xml)) $$(1)/etc/$(PKG_NAME)/autoload_configs;$(SED) 's|/usr/local/lib|/usr/lib|g;s|/usr/local|/etc|g' $$(1)/etc/$(PKG_NAME)/autoload_configs/$(subst -,_,$(1)).conf.xml)
911
912         #
913         # 3. mod_$(subst -,_,$(1)) XML configuration files from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/conf/autoload_configs/$(subst -,_,$(1)).conf.xml)))
914         #
915         $$$$(if $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/conf/autoload_configs/$(subst -,_,$(1)).conf.xml)),[ -d $$(1)/etc/$(PKG_NAME)/autoload_configs ] || $(INSTALL_DIR) $$(1)/etc/$(PKG_NAME)/autoload_configs;$(CP) $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/conf/autoload_configs/$(subst -,_,$(1)).conf.xml)) $$(1)/etc/$(PKG_NAME)/autoload_configs;$(SED) 's|/usr/local/lib|/usr/lib|g;s|/usr/local|/etc|g' $$(1)/etc/$(PKG_NAME)/autoload_configs/$(subst -,_,$(1)).conf.xml)
916
917         #
918         # 4. mod_$(subst -,_,$(1)) XML configuration files from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/conf*/$(subst -,_,$(1)).conf.xml)))
919         #
920         $$$$(if $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/conf*/$(subst -,_,$(1)).conf.xml)),[ -d $$(1)/etc/$(PKG_NAME)/autoload_configs ] || $(INSTALL_DIR) $$(1)/etc/$(PKG_NAME)/autoload_configs;$(CP) $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/conf*/$(subst -,_,$(1)).conf.xml)) $$(1)/etc/$(PKG_NAME)/autoload_configs;$(SED) 's|/usr/local/lib|/usr/lib|g;s|/usr/local|/etc|g' $$(1)/etc/$(PKG_NAME)/autoload_configs/$(subst -,_,$(1)).conf.xml)
921
922         #
923         # 5. mod_$(subst -,_,$(1)) XML configuration files from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/$(subst -,_,$(1)).conf.xml)))
924         #
925         $$$$(if $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/$(subst -,_,$(1)).conf.xml)),[ -d $$(1)/etc/$(PKG_NAME)/autoload_configs ] || $(INSTALL_DIR) $$(1)/etc/$(PKG_NAME)/autoload_configs;$(CP) $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/$(subst -,_,$(1)).conf.xml)) $$(1)/etc/$(PKG_NAME)/autoload_configs;$(SED) 's|/usr/local/lib|/usr/lib|g;s|/usr/local|/etc|g' $$(1)/etc/$(PKG_NAME)/autoload_configs/$(subst -,_,$(1)).conf.xml)
926
927         #
928         # 6. Additional configuration files for mod_$(subst -,_,$(1)) from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/conf/$(3)/$(1)/*.$(1))))
929         #
930         $$$$(if $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/conf/$(3)/$(1)/*.$(1))),[ -d $$(1)/etc/$(PKG_NAME)/$(1) ] || $(INSTALL_DIR) $$(1)/etc/$(PKG_NAME)/$(1);$(CP) $(PKG_BUILD_DIR)/conf/$(3)/$(1) $$(1)/etc/$(PKG_NAME))
931   endef
932
933   define Package/$(PKG_NAME)-mod-$(1)/postinst
934 #!/bin/sh
935 sed -i -e 's|^\([ \t]*\)<!-- *\(.*\)"mod_$(subst -,_,$(1))"\(.*\) *-->\(.*\)$$$$|\1\2"mod_$(subst -,_,$(1))"\3\4|' $$$${IPKG_INSTROOT}/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
936   endef
937
938   define Package/$(PKG_NAME)-mod-$(1)/prerm
939 #!/bin/sh
940 sed -i -e 's|^\([ \t]*\)\(.*\)"mod_$(subst -,_,$(1))"\(.*\)$$$$|\1<!-- \2"mod_$(subst -,_,$(1))"\3 -->|' $$$${IPKG_INSTROOT}/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
941   endef
942
943   $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
944 endef
945
946
947 $(eval $(call BuildPackage,$(PKG_NAME)))
948 $(eval $(call BuildPackage,$(PKG_NAME)-collection-upstream-defaults))
949 $(eval $(call BuildPackage,$(PKG_NAME)-collection-minimal))
950 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-en-08KHz))
951 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-en-16KHz))
952 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-en-32KHz))
953 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-en-48KHz))
954 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-moh-08KHz))
955 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-moh-16KHz))
956 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-moh-32KHz))
957 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-moh-48KHz))
958 $(eval $(call BuildPackage,$(PKG_NAME)-tools))
959 $(eval $(call BuildPackage,$(PKG_NAME)-example-config))
960 $(eval $(call BuildPackage,$(PKG_NAME)-config-upstream-defaults))
961 $(eval $(call BuildPackage,$(PKG_NAME)-config-minimal))
962
963
964 #
965 # $(eval $(call BuildPlugin,Name,Title,Selection on module Conf File,Files,Inter Depends,Extra Depends))
966 #
967 $(eval $(call BuildPlugin,abstraction,An Abstraction To API Call,vanilla,,,,))
968 $(eval $(call BuildPlugin,alsa,Alsa Endpoint,vanilla,,,,+FS_WITH_ALSA:alsa-lib @FS_WITH_ALSA))
969 $(eval $(call BuildPlugin,amr,Adaptive Multi-Rate On Bandwidth Codec,vanilla,,,,))
970 $(eval $(call BuildPlugin,amrwb,Wide Band AMR,vanilla,,,,))
971 $(eval $(call BuildPlugin,avmd,Advanced Voice Mail Detection,vanilla,,,,))
972 $(eval $(call BuildPlugin,basic,BASIC,vanilla,,,,))
973 $(eval $(call BuildPlugin,bert,Naive Bit Error Rate Tester,vanilla,,,,))
974 $(eval $(call BuildPlugin,blacklist,Blacklist,vanilla,,,,))
975 $(eval $(call BuildPlugin,bv,BroadVoice 16/32-bit Audio Codec,vanilla,,,,))
976 $(eval $(call BuildPlugin,callcenter,Call Center,vanilla,,,,))
977 $(eval $(call BuildPlugin,cdr-csv,CSV-CDR Handler,mod,,,,)) # ~/conf
978 $(eval $(call BuildPlugin,cdr-mongodb,MongoDB CDR logger,vanilla,,,,))
979 $(eval $(call BuildPlugin,cdr-pg-csv,PostgreSQL CDR Handler,vanilla,,,,+coreutils +FS_WITH_POSTGRESQL:libpq @FS_WITH_POSTGRESQL))
980 $(eval $(call BuildPlugin,cdr-sqlite,SQLite3 CDR Handler,vanilla,,,,@FS_WITH_SQLITE3))
981 $(eval $(call BuildPlugin,celt,CELT Ultra-Low Delay Codec,vanilla,,,,+libogg))
982 $(eval $(call BuildPlugin,cepstral,Cepstral Interface,vanilla,,,,@BROKEN)) # needs <swift.h>
983 $(eval $(call BuildPlugin,cidlookup,Data Query For CID->NAME Services,mod,,,,+libcurl)) # ~/conf
984 $(eval $(call BuildPlugin,cluechoo,Framework Demo,vanilla,,,,))
985 $(eval $(call BuildPlugin,codec2,CoDec 2,,,,,))
986 $(eval $(call BuildPlugin,commands,API Commands,vanilla,,,,))
987 $(eval $(call BuildPlugin,conference,Conference Room,vanilla,,,,))
988 $(eval $(call BuildPlugin,console,Console Logger,vanilla,,,,))
989 $(eval $(call BuildPlugin,curl,HTTP Request,vanilla,,,,+libcurl))
990 $(eval $(call BuildPlugin,dahdi-codec,DAHDI Codecs,vanilla,,,,))
991 $(eval $(call BuildPlugin,db,Database Backend,vanilla,,,,+libdb47))
992 $(eval $(call BuildPlugin,dialplan-asterisk,Asterisk Dialplan Parser,vanilla,,,,))
993 $(eval $(call BuildPlugin,dialplan-directory,Dialplan Directory,vanilla,,,,))
994 $(eval $(call BuildPlugin,dialplan-xml,Dialplan-XML Interface,vanilla,,,,))
995 $(eval $(call BuildPlugin,dingaling,Jabber Interface,vanilla,,,,+libopenssl))
996 $(eval $(call BuildPlugin,directory,Search By Name Directory IVR,vanilla,,,,))
997 $(eval $(call BuildPlugin,distributor,Simple Robin-Round Load,vanilla,,,,))
998 $(eval $(call BuildPlugin,dptools,Dialplan Tools,vanilla,,,,))
999 $(eval $(call BuildPlugin,easyroute,Simple DID Routing,vanilla,,,,))
1000 $(eval $(call BuildPlugin,enum,ENUM Routing,,,,,+libldns @BROKEN))
1001 $(eval $(call BuildPlugin,erlang-event,Erlang Event Handler,vanilla,,,,+erlang))
1002 $(eval $(call BuildPlugin,esf,Extra SIP Functionality,vanilla,,,,))
1003 $(eval $(call BuildPlugin,event-multicast,Multicast Event Handler,vanilla,,,,))
1004 $(eval $(call BuildPlugin,event-socket,Socket Event Handler,vanilla,,,,))
1005 $(eval $(call BuildPlugin,event-zmq,Socket Event Handler By Zero MQ,vanilla,,,,+libuuid))
1006 $(eval $(call BuildPlugin,expr,Expression Evaluation,vanilla,,,,))
1007 $(eval $(call BuildPlugin,fifo,FIFO,vanilla,,,,))
1008 $(eval $(call BuildPlugin,file-string,Streaming Multiple Sound Files Sequentially,vanilla,,,,@OBSOLETE)) # merged into dptools
1009 $(eval $(call BuildPlugin,flite,Festival TTS,vanilla,,,,@(!(armeb||avr32)||BROKEN)))
1010 $(eval $(call BuildPlugin,format-cdr,XML CDR Module to files or curl,vanilla,,,,))
1011 $(eval $(call BuildPlugin,fsk,Bell-202 1200-Baud FSK Decoder,vanilla,,,,))
1012 $(eval $(call BuildPlugin,fsv,Video Player / Recorder,vanilla,,,,))
1013 $(eval $(call BuildPlugin,g723-1,G.723.1 Codec,vanilla,,,,))
1014 $(eval $(call BuildPlugin,g729,G.729 Codec,vanilla,,,,))
1015 $(eval $(call BuildPlugin,gsmopen,GSM Modem compatible Endpoint,mod,,,alsa,+FS_WITH_ALSA:alsa-lib +FS_WITH_LZMA:liblzma @FS_WITH_ALSA @BROKEN)) # needs gsmlib
1016 $(eval $(call BuildPlugin,h26x,H26X Linear Codec,vanilla,,,,))
1017 $(eval $(call BuildPlugin,h323,H323 Endpoint,mod,,,,@BROKEN)) # Req. H323Plus v1.24.x or newer
1018 $(eval $(call BuildPlugin,hash,API For Manipulating A Hash Table,vanilla,,,,))
1019 #$(eval $(call BuildPlugin,html5,HTML5 Endpoint Module,vanilla,,,,)) # defunct?
1020 $(eval $(call BuildPlugin,httapi,HT Telephony API and HTTP Caching,mod,,,,)) # ~/conf
1021 $(eval $(call BuildPlugin,http-cache,HTTP GET With Caching,mod,,,,+libcurl)) # ~/conf
1022 $(eval $(call BuildPlugin,ilbc,ILBC Codec,vanilla,,,,))
1023 $(eval $(call BuildPlugin,isac,iSAC Codec,vanilla,,,,))
1024 $(eval $(call BuildPlugin,java,Java Language Interface,vanilla,,,,@BROKEN)) # needs java
1025 $(eval $(call BuildPlugin,json-cdr,JSon-CDR Interface,mod,,,,+libcurl))
1026 $(eval $(call BuildPlugin,ldap,LDAP interface,vanilla,,,,+libopenldap))
1027 $(eval $(call BuildPlugin,lcr,Least Cost Routing,vanilla,,,,))
1028 $(eval $(call BuildPlugin,local-stream,Multi-Channel On Same Stream,vanilla,,,,))
1029 $(eval $(call BuildPlugin,logfile,File Logger,vanilla,,,,))
1030 $(eval $(call BuildPlugin,loopback,Loopback to Dialplan Endpoint,vanilla,,,,))
1031 $(eval $(call BuildPlugin,lua,LUA Language Interface,vanilla,,,,))
1032 $(eval $(call BuildPlugin,managed,Media Switching Software Library,vanilla,,,,+glib2 @BROKEN)) # needs Mono
1033 $(eval $(call BuildPlugin,memcache,MemCached Interface,vanilla,,,,+libmemcached @BROKEN)) # Req host libmemcached
1034 $(eval $(call BuildPlugin,mongo,A Document-Oriented Database,vanilla,,,,@BROKEN))
1035 $(eval $(call BuildPlugin,mp4,MP4 File Format Support For Video,vanilla,,,,@BROKEN)) # needs host libmp4v2
1036 $(eval $(call BuildPlugin,mp4v,MP4 CoDec Support For Video,vanilla,,,,))
1037 $(eval $(call BuildPlugin,native-file,WAV Format Sound Player,vanilla,,,,))
1038 $(eval $(call BuildPlugin,nibblebill,Credit / Debit Billing,vanilla,,,,))
1039 $(eval $(call BuildPlugin,opus,Opus CoDec,vanilla,,,,))
1040 $(eval $(call BuildPlugin,oreka,Media Recording with Oreka,vanilla,,,,))
1041 $(eval $(call BuildPlugin,perl,Perl Language Interface,vanilla,,lib/perl5/5.20/$(PKG_NAME).la lib/perl5/5.20/$(PKG_NAME).pm lib/perl5/5.20/$(PKG_NAME).so,,+perl +libdb47 +libgdbm))
1042 $(eval $(call BuildPlugin,portaudio,Portaudio To Sound Card Interface,vanilla,,,alsa,+FS_WITH_ALSA:alsa-lib @FS_WITH_ALSA @BROKEN)) # needs portaudio
1043 $(eval $(call BuildPlugin,portaudio-stream,Portaudio Streaming Interface,vanilla,,,alsa,+FS_WITH_ALSA:alsa-lib @FS_WITH_ALSA @BROKEN)) # needs portaudio
1044 $(eval $(call BuildPlugin,posix-timer,POSIX Compliant Soft Timer,vanilla,,,,))
1045 $(eval $(call BuildPlugin,python,Python Language Interface,vanilla,,,,python @BROKEN))
1046 $(eval $(call BuildPlugin,radius-cdr,Radius-CDR interface,vanilla,,,,@BROKEN)) # fails in freeradius-client
1047 $(eval $(call BuildPlugin,rayo,Rayo server & node implementation,vanilla,,,,))
1048 $(eval $(call BuildPlugin,redis,Redis Limited Backend,vanilla,,,,))
1049 $(eval $(call BuildPlugin,rss,RRS Feeds via TTS,vanilla,,,,))
1050 $(eval $(call BuildPlugin,rtc,RTC endpoint,vanilla,,,,))
1051 $(eval $(call BuildPlugin,rtmp,RTMP Protocol Handler,vanilla,,,,))
1052 $(eval $(call BuildPlugin,sangoma-codec,Sangoma Codec,vanilla,,,,@BROKEN)) # Req. Sangoma CoDec source
1053 $(eval $(call BuildPlugin,say-de,German Say,vanilla,,,,))
1054 $(eval $(call BuildPlugin,say-en,English Say,vanilla,,,,))
1055 $(eval $(call BuildPlugin,say-es,Spanish Say,vanilla,,,,))
1056 $(eval $(call BuildPlugin,say-fa,Persian Say,vanilla,,,,))
1057 $(eval $(call BuildPlugin,say-fr,French Say,vanilla,,,,))
1058 $(eval $(call BuildPlugin,say-hu,Hungarian Say,vanilla,,,,))
1059 $(eval $(call BuildPlugin,say-it,Italian Say,vanilla,,,,))
1060 $(eval $(call BuildPlugin,say-nl,Dutch Say,vanilla,,,,))
1061 $(eval $(call BuildPlugin,say-pt,Portugeese Say,vanilla,,,,))
1062 $(eval $(call BuildPlugin,say-ru,Russian Say,vanilla,,,,))
1063 $(eval $(call BuildPlugin,say-th,Thai Say,vanilla,,,,))
1064 $(eval $(call BuildPlugin,say-zh,Chineese Say,vanilla,,,,))
1065 $(eval $(call BuildPlugin,shell-stream,Streaming Audio Through CLI,vanilla,,,,))
1066 $(eval $(call BuildPlugin,silk,Skype(TM) SILK Codec Module,vanilla,,,,))
1067 $(eval $(call BuildPlugin,siren,G.722.1 Codec,vanilla,,,,))
1068 $(eval $(call BuildPlugin,skel,Template For New Module,vanilla,,,,))
1069 $(eval $(call BuildPlugin,skinny,Skinny Call Control Protocol (SCCP),vanilla,,,,))
1070 $(eval $(call BuildPlugin,skypopen,Skype Compatible Endpoint,mod,,,,@FEATURE_drawing-backend_libX11))
1071 $(eval $(call BuildPlugin,sms,SMS,vanilla,,,,))
1072 $(eval $(call BuildPlugin,snapshot,Record Audio Snapshot to File,vanilla,,,,))
1073 $(eval $(call BuildPlugin,sndfile,Multi-Format Sound File,vanilla,,,,))
1074 $(eval $(call BuildPlugin,snipe-hunt,Snipe Hunt (Simple Example Module),vanilla,,,,))
1075 $(eval $(call BuildPlugin,snmp,SNMP AgentX Subagent,vanilla,,,,+libnetsnmp))
1076 $(eval $(call BuildPlugin,snom,SNOM specific features,vanilla,,,,))
1077 $(eval $(call BuildPlugin,sofia,SOFIA SIP,mod,,,,)) # ~/conf
1078 $(eval $(call BuildPlugin,sonar,Sonar Ping Timer,vanilla,,,,))
1079 $(eval $(call BuildPlugin,spandsp,Span DSP,mod,,,,+libjpeg +FS_WITH_LZMA:liblzma @FS_WITH_LZMA)) # ~/conf
1080 $(eval $(call BuildPlugin,spidermonkey,JavaScript,vanilla,,,,@BROKEN)) # fails in js
1081 $(eval $(call BuildPlugin,spidermonkey-core_db,JavaScript DB,vanilla,,,,@BROKEN))
1082 $(eval $(call BuildPlugin,spidermonkey-curl,JavaScript Curl,vanilla,,,,@BROKEN))
1083 $(eval $(call BuildPlugin,spidermonkey-odbc,JavaScript ODBC,vanilla,,,,@BROKEN))
1084 $(eval $(call BuildPlugin,spidermonkey-socket,JavaScript Socket,vanilla,,,,@BROKEN))
1085 $(eval $(call BuildPlugin,spidermonkey-teletone,JavaScript Teletone,vanilla,,,,@BROKEN))
1086 $(eval $(call BuildPlugin,spy,User Spy,vanilla,,,,))
1087 $(eval $(call BuildPlugin,ssml,SSML audio rendering format,mod,,,rayo,))
1088 $(eval $(call BuildPlugin,stress,Voice Stress Detection,vanilla,,,,))
1089 $(eval $(call BuildPlugin,syslog,SysLog logger,vanilla,,,,))
1090 $(eval $(call BuildPlugin,timerfd,Linux Kernel timerfd API,vanilla,,,,))
1091 $(eval $(call BuildPlugin,tone-stream,Tone Generation Stream,vanilla,,,,))
1092 $(eval $(call BuildPlugin,tts-commandline,ASR TTS Command Interface,vanilla,,,,))
1093 $(eval $(call BuildPlugin,unimrcp,UniMRCP (MRCP Client),vanilla,,,,@BROKEN))
1094 $(eval $(call BuildPlugin,valet-parking,Valet Parking Application,vanilla,,,,))
1095 $(eval $(call BuildPlugin,verto,HTML5 Verto interface,vanilla,,lib/perl5/5.20/MCAST.so lib/perl5/5.20/MCAST.la lib/perl5/5.20/MCAST.pm,perl rtc,))
1096 $(eval $(call BuildPlugin,vmd,VoiceMail Beep Detection,vanilla,,,,))
1097 $(eval $(call BuildPlugin,voicemail,VoiceMail,vanilla,,,,))
1098 $(eval $(call BuildPlugin,voicemail-ivr,VoiceMail IVR,vanilla,,,,))
1099 $(eval $(call BuildPlugin,vp8,VP8 Video Codec,vanilla,,,,))
1100 $(eval $(call BuildPlugin,xml-cdr,XML-CDR Handler,vanilla,,,,+libcurl))
1101 $(eval $(call BuildPlugin,xml-curl,XML-Curl Gateway,vanilla,,,,+libcurl))
1102 $(eval $(call BuildPlugin,xml-ldap,LDAP-XML Gateway,vanilla,,,,+PACKAGE_$(PKG_NAME)-mod-ldap:libopenldap))
1103 $(eval $(call BuildPlugin,xml-rpc,XML-RPC Interface,vanilla,,,,))
1104 $(eval $(call BuildPlugin,xml-radius,Radius authentication and authorization,vanilla,,,,+freeradius-client @BROKEN)) # freeradius-client isn't yet supported by OpenWRT.
1105 $(eval $(call BuildPlugin,xml-scgi,SCGI XML Gateway,vanilla,,,,))
1106 $(eval $(call BuildPlugin,yaml,YAML language,vanilla,,,,+libyaml @BROKEN))