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