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