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