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