4de159f180ab624616574540889e2ce95052ca9b
[openwrt/svn-archive/archive.git] / net / freeswitch / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=freeswitch
11 PKG_VERSION:=1.0.6
12 PKG_RELEASE:=6
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=http://files.freeswitch.org/
17 PKG_MD5SUM:=388effee587887a81fe7f411b7350590
18
19 PKG_FIXUP:=libtool
20
21 FS_MOD_AVAILABLE:= \
22 alsa \
23 amr \
24 amrwb \
25 bv \
26 cdr-csv \
27 celt \
28 cepstral \
29 cidlookup \
30 cluechoo \
31 commands \
32 conference \
33 console \
34 curl \
35 dahdi-codec \
36 dialplan-asterisk \
37 dialplan-directory \
38 dialplan-xml \
39 dingaling \
40 directory \
41 distributor \
42 dptools \
43 easyroute \
44 enum \
45 erlang-event \
46 esf \
47 event-multicast \
48 event-socket \
49 expr \
50 fax \
51 fifo \
52 file-string \
53 flite \
54 fsv \
55 g723-1 \
56 g729 \
57 h26x \
58 h323 \
59 ilbc \
60 lcr \
61 ldap \
62 limit \
63 local-stream \
64 logfile \
65 loopback \
66 lua \
67 managed \
68 memcache \
69 native-file \
70 nibblebill \
71 opal \
72 openzap \
73 perl \
74 pocketsphinx \
75 portaudio \
76 portaudio-stream \
77 python \
78 radius-cdr \
79 rss \
80 say-de \
81 say-en \
82 say-es \
83 say-fr \
84 say-it \
85 say-nl \
86 say-ru \
87 say-th \
88 say-zh \
89 shell-stream \
90 shout \
91 silk \
92 siren \
93 skinny \
94 skypopen \
95 sangoma-codec \
96 snapshot \
97 snipe-hunt \
98 sndfile \
99 snom \
100 sofia \
101 soundtouch \
102 speex \
103 spidermonkey \
104 spidermonkey-core-db \
105 spidermonkey-curl \
106 spidermonkey-odbc \
107 spidermonkey-socket \
108 spidermonkey-teletone \
109 spy \
110 stress \
111 syslog \
112 tone-stream \
113 unimrcp \
114 valet-parking \
115 vmd \
116 voicemail \
117 voipcodecs \
118 xml-cdr \
119 xml-curl \
120 xml-ldap \
121 xml-rpc \
122 yaml \
123
124 PKG_CONFIG_DEPENDS:= \
125 $(patsubst %,CONFIG_PACKAGE_freeswitch-mod-%,$(FS_MOD_AVAILABLE)) \
126
127 include $(INCLUDE_DIR)/package.mk
128
129 define Package/freeswitch/Default
130 SECTION:=net
131 CATEGORY:=Network
132 URL:=http://www.freeswitch.org/
133 MAINTAINER:=Daniel Dickinson <ddickinson@vertical.com>
134 endef
135
136
137 define Package/freeswitch
138 $(call Package/freeswitch/Default)
139 TITLE:=FreeSWITCH open source telephony platform
140 DEPENDS:= +libopenssl +libreadline +libncurses +libpthread +libstdcpp
141 MENU:=1
142 endef
143
144 define Package/freeswitch/description
145 FreeSWITCH is an open source telephony platform designed to
146 facilitate the creation of voice and chat driven products scaling
147 from a soft-phone up to a soft-switch. See http://wiki.freeswitch.org
148 endef
149
150 define Package/freeswitch-example-config
151 $(call Package/freeswitch/Default)
152 TITLE:=FreeSWITCH example config (commented)
153 DEPENDS:= freeswitch
154 endef
155
156 define Package/freeswitch-example-config/description
157 The default configuration included with FreeSWITCH. It is not intended to be
158 a final product, and is thus moved to /usr/share/freeswitch/examples/conf to
159 be an example of how FreeSWITCH can be configured.
160 endef
161
162 define Package/freeswitch-config-upstream-defaults
163 $(call Package/freeswitch/Default)
164 TITLE:=FreeSWITCH upstream config
165 DEPENDS:= freeswitch
166 endef
167
168 define Package/freeswitch-config-upstream-defaults/description
169 The default configuration included with FreeSWITCH. It is not intended to be
170 a final product, and but is included for those who don't want to use the
171 OpenWRT configuration and/or want to try things as prepared by upstream.
172 endef
173
174 define Package/freeswitch-config-minimal
175 $(call Package/freeswitch/Default)
176 TITLE:=FreeSWITCH a minimal FS config
177 DEPENDS:= freeswitch
178 endef
179
180 define Package/freeswitch-config-minimal/description
181 A minimal configuration of FreeSWITCH for OpenWRT devices. Is what the UCI
182 configuration began with.
183
184 endef
185
186 define Package/freeswitch-config-uci
187 $(call Package/freeswitch/Default)
188 TITLE:=UCI-configuration for FreeSWITCH
189 DEPENDS:= freeswitch
190 endef
191
192 define Package/freeswitch-config-uci/description
193 The UCI configuration system for FreeSWITCH on OpenWRT.
194 endef
195
196 define Package/freeswitch-collection-upstream-defaults
197 $(call Package/freeswitch/Default)
198 TITLE:=FreeSWITCH upstream default (sample) config
199 DEPENDS:= freeswitch \
200 +freeswitch-config-upstream-defaults \
201 +freeswitch-mod-commands \
202 +freeswitch-mod-conference \
203 +freeswitch-mod-syslog \
204 +freeswitch-mod-curl \
205 +freeswitch-mod-dialplan-xml \
206 +freeswitch-mod-dptools \
207 +freeswitch-mod-event-socket \
208 +freeswitch-mod-g723-1 \
209 +freeswitch-mod-ilbc \
210 +freeswitch-mod-limit \
211 +freeswitch-mod-local-stream \
212 +freeswitch-mod-logfile \
213 +freeswitch-mod-lua \
214 +freeswitch-mod-native-file \
215 +freeswitch-mod-sndfile \
216 +freeswitch-mod-sofia \
217 +freeswitch-mod-speex \
218 +freeswitch-mod-tone-stream \
219 +freeswitch-mod-voipcodecs \
220 +freeswitch-mod-xml-curl \
221 +freeswitch-mod-xml-rpc \
222 +freeswitch-tools
223 endef
224
225 define Package/freeswitch-collection-minimal
226 $(call Package/freeswitch/Default)
227 TITLE:=A FreeSWITCH minimal package collection
228 DEPENDS:= freeswitch \
229 +freeswitch-config-minimal \
230 +freeswitch-mod-commands \
231 +freeswitch-mod-syslog \
232 +freeswitch-mod-dialplan-xml \
233 +freeswitch-mod-dptools \
234 +freeswitch-mod-event-socket \
235 +freeswitch-mod-local-stream \
236 +freeswitch-mod-sndfile \
237 +freeswitch-mod-sofia \
238 +freeswitch-mod-tone-stream \
239 +freeswitch-mod-voipcodecs \
240 +freeswitch-tools
241 endef
242
243 # mod_lua is included in FreeSWITCH minimal because it is intended to be used
244 # by the LuCI / ucitrigger interface to FreeSWITCH on OpenWRT
245
246 define Package/freeswitch-collection-uci-minimal
247 $(call Package/freeswitch/Default)
248 TITLE:=FreeSWITCH on OpenWRT minimal collection of packages
249 DEPENDS:= freeswitch \
250 +freeswitch-config-uci \
251 +freeswitch-mod-commands \
252 +freeswitch-mod-syslog \
253 +freeswitch-mod-dialplan-xml \
254 +freeswitch-mod-dptools \
255 +freeswitch-mod-event-socket \
256 +freeswitch-mod-local-stream \
257 +freeswitch-mod-sndfile \
258 +freeswitch-mod-sofia \
259 +freeswitch-mod-tone-stream \
260 +freeswitch-mod-voipcodecs \
261 +freeswitch-mod-lua \
262 +freeswitch-tools
263 endef
264
265 define Package/freeswitch-sounds-en
266 $(call Package/freeswitch/Default)
267 TITLE:=FreeSWITCH english sounds
268 DEPENDS:= freeswitch
269 endef
270
271
272 define Package/freeswitch-sounds-moh
273 $(call Package/freeswitch/Default)
274 TITLE:=FreeSWITCH music-on-hold sounds
275 DEPENDS:= freeswitch
276 endef
277
278
279 define Package/freeswitch-tools
280 $(call Package/freeswitch/Default)
281 TITLE:=FreeSWITCH control tools
282 DEPENDS:= freeswitch
283 endef
284
285
286 define Download/files
287 define Download/$(1)
288 FILE:=$(2)
289 URL:=http://files.freeswitch.org/$(4)
290 MD5SUM:=$(3)
291 endef
292 define Prepare/$(1)
293 $(CP) $(DL_DIR)/$(2) $(PKG_BUILD_DIR)/$(5)
294 endef
295 $$(eval $$(call Download,$(1)))
296 endef
297
298 MAKE_INSTALL_TARGETS:=install
299
300 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-celt),)
301 $(eval $(call Download/files,celt,celt-0.7.1.tar.gz,c7f6b8346e132b1a48dae0eff77ea9f0,downloads/libs/,libs/))
302 endif
303
304 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-curl),)
305 $(eval $(call Download/files,json-c,json-c-0.9.tar.gz,4653b3b9c568bb9c782178abfaac128d,downloads/libs/,libs/))
306 endif
307
308 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-flite),)
309 $(eval $(call Download/files,flite,flite-1.3.99-latest.tar.gz,,downloads/libs/,libs/))
310 endif
311
312 ifneq ($(CONFIG_PACKAGE_freeswitch-sounds-en),)
313 $(eval $(call Download/files,sounds-en,freeswitch-sounds-en-us-callie-8000-1.0.12.tar.gz,d700439027dd95dd118e5e85f38e4d81,,))
314 MAKE_INSTALL_TARGETS+= sounds-install
315 endif
316
317 ifneq ($(CONFIG_PACKAGE_freeswitch-sounds-moh),)
318 $(eval $(call Download/files,sounds-moh,freeswitch-sounds-music-8000-1.0.8.tar.gz,f63ef3cc3507af079ae5c7b8b8a01e42,,))
319 MAKE_INSTALL_TARGETS+= moh-install
320 endif
321
322 # XXX: -fgnu89-inline is not supported on all compiler versions, so only enable it on avr32 where it solves build issues
323 ifneq ($(CONFIG_avr32),)
324 TARGET_CFLAGS += -fgnu89-inline
325 TARGET_CXXFLAGS += -fgnu89-inline
326 endif
327
328 ifneq ($(CONFIG_USE_EGLIBC),)
329 ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)
330 TARGET_CFLAGS += -DNO_GETLOGIN
331 endif
332 endif
333
334 FS_TARGET_CFLAGS:= ${TARGET_CFLAGS} -DLUA_USE_LINUX $(FPIC) -std=gnu99 -Wno-format
335 FS_TARGET_CXXFLAGS:= ${TARGET_CXXFLAGS} -DLUA_USE_LINUX $(FPIC) -Wno-format
336 FS_TARGET_CPPFLAGS:= -I. -I./lua ${TARGET_CPPFLAGS}
337
338 CONFIGURE_ARGS+= \
339 --prefix="/usr/freeswitch" \
340 --bindir="/usr/bin" \
341 --libdir="/usr/lib" \
342 --sysconfdir="/etc/freeswitch" \
343 --with-modinstdir="/usr/lib/freeswitch" \
344 --enable-ipv6 \
345 \
346 --with-libcurl="$(STAGING_DIR)/usr" \
347 --with-openssl="$(STAGING_DIR)/usr" \
348 --with-random="/dev/urandom" \
349 --without-erlang \
350 --without-java \
351 --without-mysql \
352 --without-pgsql \
353 --without-python \
354 --disable-zrtp \
355
356 CONFIGURE_VARS+= \
357 config_TARGET_CC="${TARGET_CC}" \
358 config_TARGET_CFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CFLAGS}" \
359 config_TARGET_CXX="${TARGET_CXX}" \
360 config_TARGET_CXXFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CXXFLAGS}" \
361 config_TARGET_CPPFLAGS="${FS_TARGET_CPPFLAGS}" \
362 config_BUILD_CC="${HOSTCC}" \
363 config_TARGET_READLINE_INC="${FS_TARGET_CPPFLAGS}" \
364 config_TARGET_READLINE_LIBS="${TARGET_LDFLAGS} -lreadline -lncurses" \
365 config_TARGET_LIBS="${TARGET_LDFLAGS} -lpthread" \
366 CC_FOR_BUILD="${HOSTCC}" \
367 LDFLAGS_FOR_BUILD="${HOST_LDFLAGS}" \
368 CC="${TARGET_CC}" \
369 CXX="${TARGET_CXX}" \
370 CFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CFLAGS}" \
371 CXXFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CXXFLAGS}" \
372 CPPFLAGS="${FS_TARGET_CPPFLAGS}" \
373 LDFLAGS="${TARGET_LDFLAGS} -Wl,-rpath-link=\"${STAGING_DIR}/usr/lib\"" \
374 ac_cv_dev_urandom="yes" \
375 ac_cv_file_dbd_apr_dbd_mysql_c="no" \
376 ac_cv_file__dev_random="no" \
377 ac_cv_file__dev_urandom="yes" \
378 ac_cv_file___dev_urandom_="yes" \
379 ac_cv_func_mmap_fixed_mapped="yes" \
380 ac_cv_func_pthread_rwlock_init="yes" \
381 ac_cv_struct_rlimit="yes" \
382 apr_cv_mutex_recursive="yes" \
383 apr_cv_process_shared_works="no" \
384 apr_cv_tcp_nodelay_with_cork="yes" \
385 apr_cv_type_rwlock_t="yes" \
386 ac_cv_path_LIBGNUTLS_CONFIG="no" \
387
388
389 define Build/Prepare
390 $(call Build/Prepare/Default)
391 $(call Prepare/celt)
392 $(call Prepare/flite)
393 $(call Prepare/json-c)
394 $(call Prepare/sounds-en)
395 $(call Prepare/sounds-moh)
396 endef
397
398 define Build/Configure
399 $(call Build/Configure/Default)
400 $(foreach m,$(FS_MOD_AVAILABLE),
401 $(if $(CONFIG_PACKAGE_freeswitch-mod-$(m)),
402 $(SED) 's|^[ #]*\([^#]*/mod_$(subst -,_,$(m))\)$$$$|\1|g' $(PKG_BUILD_DIR)/modules.conf
403 ,
404 $(SED) 's|^\([^#]*/mod_$(subst -,_,$(m))\)$$$$|#\1|g' $(PKG_BUILD_DIR)/modules.conf
405 )
406 )
407 endef
408
409 define Build/Compile
410 $(MAKE) -C $(PKG_BUILD_DIR) \
411 DESTDIR="$(PKG_INSTALL_DIR)" \
412 LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
413 all $(MAKE_INSTALL_TARGETS)
414 $(SED) 's|^\([ \t]*\)\(.*\)"mod_console"\(.*\)$$$$|\1<!-- \2"mod_console"\3 -->|' $(PKG_INSTALL_DIR)/etc/freeswitch/autoload_configs/modules.conf.xml
415 $(SED) 's|^\([ \t]*\)<!-- *\(.*\)"mod_syslog"\(.*\) *-->\(.*\)$$$$|\1\2"mod_syslog"\3\4|' $(PKG_INSTALL_DIR)/etc/freeswitch/autoload_configs/modules.conf.xml
416 endef
417
418 define Build/InstallDev
419 $(INSTALL_DIR) $(1)/usr/include/freeswitch
420 $(CP) $(PKG_INSTALL_DIR)/usr/freeswitch/include/* $(1)/usr/include/freeswitch/
421 $(INSTALL_DIR) $(1)/usr/lib
422 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreeswitch.{a,so*} $(1)/usr/lib/
423 endef
424
425 define Package/freeswitch/install
426 $(INSTALL_DIR) $(1)/usr/bin
427 $(CP) $(PKG_INSTALL_DIR)/usr/bin/freeswitch $(1)/usr/bin/
428 $(INSTALL_DIR) $(1)/usr/lib
429 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreeswitch.so.* $(1)/usr/lib/
430 $(INSTALL_DIR) $(1)/usr/lib/freeswitch
431 $(INSTALL_DIR) $(1)/etc/default
432 $(INSTALL_DATA) ./files/freeswitch.default $(1)/etc/default/freeswitch
433 $(INSTALL_DIR) $(1)/etc/init.d
434 $(INSTALL_BIN) ./files/freeswitch.init $(1)/etc/init.d/freeswitch
435 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
436 $(INSTALL_DATA) ./files/freeswitch.hotplug $(1)/etc/hotplug.d/iface/90-freeswitch
437 $(INSTALL_DIR) $(1)/etc/config
438 $(INSTALL_DATA) ./files/freeswitch.config $(1)/etc/config/freeswitch
439 endef
440
441 define Package/freeswitch-collection-upstream-defaults/install
442 $(INSTALL_DIR) $(1)/etc/freeswitch
443 endef
444
445 define Package/freeswitch-example-config/install
446 $(INSTALL_DIR) $(1)/usr/share/freeswitch/examples/conf
447 $(CP) $(PKG_INSTALL_DIR)/etc/freeswitch/* $(1)/usr/share/freeswitch/examples/conf/
448 endef
449
450 define Package/freeswitch-config-upstream-defaults/install
451 $(INSTALL_DIR) $(1)/etc/freeswitch
452 $(CP) $(PKG_INSTALL_DIR)/etc/freeswitch/* $(1)/etc/freeswitch/
453 endef
454
455 define Package/freeswitch-collection-minimal/install
456 $(INSTALL_DIR) $(1)/etc/freeswitch
457 endef
458
459 define Package/freeswitch-collection-uci-minimal/install
460 $(INSTALL_DIR) $(1)/etc/freeswitch
461 endef
462
463 define Package/freeswitch-config-minimal/install
464 $(INSTALL_DIR) $(1)/etc/freeswitch
465 $(CP) ./files/etc.minimal/* $(1)/etc/freeswitch/
466 endef
467
468 define Package/freeswitch-config-uci/install
469 $(INSTALL_DIR) $(1)/etc/freeswitch
470 $(CP) ./files/etc.uci/* $(1)/etc/freeswitch/
471 $(INSTALL_DIR) $(1)/usr/lib/freeswitch/uci
472 $(CP) ./files/uci/* $(1)/usr/lib/freeswitch/uci/
473 endef
474
475 define Package/freeswitch-sounds-en/install
476 $(INSTALL_DIR) $(1)/usr/freeswitch/sounds
477 $(CP) $(PKG_INSTALL_DIR)/usr/freeswitch/sounds/en $(1)/usr/freeswitch/sounds/
478 endef
479
480 define Package/freeswitch-sounds-moh/install
481 $(INSTALL_DIR) $(1)/usr/freeswitch/sounds
482 $(CP) $(PKG_INSTALL_DIR)/usr/freeswitch/sounds/music $(1)/usr/freeswitch/sounds/
483 endef
484
485 define Package/freeswitch-tools/install
486 $(INSTALL_DIR) $(1)/usr/bin
487 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_cli $(1)/usr/bin/
488 endef
489
490 # 1. Name
491 # 2. Title
492 # 3. Files
493 # 4. Inter Depends
494 # 5. Extra Depends
495 define BuildPlugin
496 define Package/freeswitch-mod-$(1)
497 $$(call Package/freeswitch/Default)
498 TITLE:= FS $(2) module
499 DEPENDS:= freeswitch $$(foreach m,$(4),+freeswitch-mod-$$m) $(5)
500 endef
501
502 define Package/freeswitch-mod-$(1)/install
503 [ -z "$(3)" ] || $(INSTALL_DIR) $$(1)/usr/lib/freeswitch
504 for f in $(3); do \
505 $(CP) \
506 $(PKG_INSTALL_DIR)/usr/lib/freeswitch/$$$$$$$${f}.so \
507 $$(1)/usr/lib/freeswitch/ ; \
508 done
509 endef
510
511 $$(eval $$(call BuildPackage,freeswitch-mod-$(1)))
512 endef
513
514 $(eval $(call BuildPackage,freeswitch))
515 $(eval $(call BuildPackage,freeswitch-collection-upstream-defaults))
516 $(eval $(call BuildPackage,freeswitch-collection-minimal))
517 $(eval $(call BuildPackage,freeswitch-collection-uci-minimal))
518 $(eval $(call BuildPackage,freeswitch-sounds-en))
519 $(eval $(call BuildPackage,freeswitch-sounds-moh))
520 $(eval $(call BuildPackage,freeswitch-tools))
521 $(eval $(call BuildPackage,freeswitch-example-config))
522 $(eval $(call BuildPackage,freeswitch-config-upstream-defaults))
523 $(eval $(call BuildPackage,freeswitch-config-minimal))
524 $(eval $(call BuildPackage,freeswitch-config-uci))
525
526 #$(eval $(call BuildPlugin,Name,Title,Files,Depends))
527 $(eval $(call BuildPlugin,alsa,Alsa endpoint,mod_alsa,,))
528 $(eval $(call BuildPlugin,amr,GSM-AMR codec,mod_amr,,))
529 $(eval $(call BuildPlugin,amrwb,GSM-AMRWB,mod_amrwb,,))
530 $(eval $(call BuildPlugin,bv,codec mod_bv,mod_bv,,))
531 $(eval $(call BuildPlugin,cdr-csv,CSV-CDR handler,mod_cdr_csv,,))
532 $(eval $(call BuildPlugin,celt,CELT ultra-low delay codec,mod_celt,,+libogg))
533 $(eval $(call BuildPlugin,cepstral,Cepstral interface,mod_cepstral,,@BROKEN)) # needs <swift.h>
534 $(eval $(call BuildPlugin,cidlookup,applications mod_cidlookup,mod_cidlookup,,))
535 $(eval $(call BuildPlugin,cluechoo,Framework Demo,mod_cluechoo,,))
536 $(eval $(call BuildPlugin,commands,API commands,mod_commands,,))
537 $(eval $(call BuildPlugin,conference,Conference room,mod_conference,,))
538 $(eval $(call BuildPlugin,console,Console logger,mod_console,,))
539 $(eval $(call BuildPlugin,curl,HTTP request,mod_curl,,+libcurl))
540 $(eval $(call BuildPlugin,dahdi-codec,DAHDI codecs,mod_dahdi_codec,,))
541 $(eval $(call BuildPlugin,dialplan-asterisk,Asterisk dialplan parser,mod_dialplan_asterisk,,))
542 $(eval $(call BuildPlugin,dialplan-directory,Dialplan-Directory interface,mod_dialplan_directory,,))
543 $(eval $(call BuildPlugin,dialplan-xml,Dialplan-XML interface,mod_dialplan_xml,,))
544 $(eval $(call BuildPlugin,dingaling,Jabber interface,mod_dingaling,,+libgnutls-openssl))
545 $(eval $(call BuildPlugin,directory,application mod_directory,mod_directory,,))
546 $(eval $(call BuildPlugin,distributor,application mod_distributor,mod_distributor,,))
547 $(eval $(call BuildPlugin,dptools,Dialplan tools,mod_dptools,,))
548 $(eval $(call BuildPlugin,easyroute,DID routing,mod_easyroute,,))
549 $(eval $(call BuildPlugin,enum,ENUM routing,mod_enum,,))
550 $(eval $(call BuildPlugin,erlang-event,Erlang event handler,mod_erlang_event,,@BROKEN)) # needs <ei.h>
551 $(eval $(call BuildPlugin,esf,Extra SIP Functionality,mod_esf,,))
552 $(eval $(call BuildPlugin,event-multicast,Multicast event handler,mod_event_multicast,,))
553 $(eval $(call BuildPlugin,event-socket,Socket event handler,mod_event_socket,,))
554 $(eval $(call BuildPlugin,expr,Expression evaluation,mod_expr,,))
555 $(eval $(call BuildPlugin,fax,Fax,mod_fax,,+libjpeg @(!(powerpc)||BROKEN))) # fails in spandsp
556 $(eval $(call BuildPlugin,fifo,FIFO,mod_fifo,,))
557 $(eval $(call BuildPlugin,file-string,File streaming,mod_file_string,,))
558 $(eval $(call BuildPlugin,flite,Festival TTS,mod_flite,,@(!(armeb||avr32)||BROKEN)))
559 $(eval $(call BuildPlugin,fsv,Video,mod_fsv,,))
560 $(eval $(call BuildPlugin,g723-1,G.723.1 codec,mod_g723_1,,))
561 $(eval $(call BuildPlugin,g729,G.729 codec,mod_g729,,))
562 $(eval $(call BuildPlugin,h26x,H26X linear codec,mod_h26x,,))
563 $(eval $(call BuildPlugin,h323,h323 endpoint,mod_h323,,@BROKEN)) # missing header files (other packages needed)
564 $(eval $(call BuildPlugin,java,Java language interface,mod_java,,@BROKEN)) # needs java
565 $(eval $(call BuildPlugin,ilbc,ILBC codec,mod_ilbc,,))
566 $(eval $(call BuildPlugin,lcr,Least Cost Routing,mod_lcr,,))
567 $(eval $(call BuildPlugin,ldap,LDAP interface,mod_ldap,,@BROKEN)) # fails in openldap
568 $(eval $(call BuildPlugin,limit,Resource limitation,mod_limit,,))
569 $(eval $(call BuildPlugin,local-stream,Local streaming,mod_local_stream,,))
570 $(eval $(call BuildPlugin,logfile,File logger,mod_logfile,,))
571 $(eval $(call BuildPlugin,loopback,Loopback endpoint,mod_loopback,,))
572 $(eval $(call BuildPlugin,lua,Lua language interface,mod_lua,,+libstdcpp))
573 $(eval $(call BuildPlugin,managed,language mod_managed,mod_managed,,@BROKEN)) # needs Mono
574 $(eval $(call BuildPlugin,memcache,MemCached interface,mod_memcache,,@BROKEN)) # fails in libmemcached
575 $(eval $(call BuildPlugin,native-file,Native files,mod_native_file,,))
576 $(eval $(call BuildPlugin,nibblebill,Billing,mod_nibblebill,,))
577 $(eval $(call BuildPlugin,opal,Multi-Protocol endpoint,mod_opal,,@BROKEN)) # needs Opal
578 $(eval $(call BuildPlugin,openzap,Zaptel hardware interface,mod_openzap ozmod_analog ozmod_analog_em ozmod_isdn ozmod_skel ozmod_zt,,+libpcap))
579 $(eval $(call BuildPlugin,perl,Perl language interface,mod_perl,,+perl @BROKEN)) # needs Perl
580 $(eval $(call BuildPlugin,pocketsphinx,PocketSphinx SR,mod_pocketsphinx,,@BROKEN)) # fails in sphinxbase
581 $(eval $(call BuildPlugin,portaudio,Local audio endpoint,mod_portaudio,,+alsa-lib))
582 $(eval $(call BuildPlugin,portaudio-stream,format mod_portaudio_stream,mod_portaudio_stream,,))
583 $(eval $(call BuildPlugin,python,Python language interface,mod_python,,+python @BROKEN)) # needs Python
584 $(eval $(call BuildPlugin,radius-cdr,Radius-CDR interface,mod_radius_cdr,,@BROKEN)) # fails in freeradius-client
585 $(eval $(call BuildPlugin,rss,RRS feeds via TTS,mod_rss,,))
586 $(eval $(call BuildPlugin,say-de,German say,mod_say_de,,))
587 $(eval $(call BuildPlugin,say-en,English say,mod_say_en,,))
588 $(eval $(call BuildPlugin,say-es,Spanish say,mod_say_es,,))
589 $(eval $(call BuildPlugin,say-fr,French say,mod_say_fr,,))
590 $(eval $(call BuildPlugin,say-it,Italian say,mod_say_it,,))
591 $(eval $(call BuildPlugin,say-nl,Dutch say,mod_say_nl,,))
592 $(eval $(call BuildPlugin,say-ru,Russian say,mod_say_ru,,))
593 $(eval $(call BuildPlugin,say-th,mod_th say,mod_say_th,,))
594 $(eval $(call BuildPlugin,say-zh,Chineese say,mod_say_zh,,))
595 $(eval $(call BuildPlugin,shell-stream,,mod_shell_stream,,))
596 $(eval $(call BuildPlugin,shout,MP3 and Shoutcast stream,mod_shout,,@BROKEN)) # needs Ogg/Vorbis
597 $(eval $(call BuildPlugin,silk,codec mod_silk,mod_silk,,))
598 $(eval $(call BuildPlugin,siren,G.722.1 codec,mod_siren,,@BROKEN)) # fails in libg722_1 - attempts to execute cross-compiled binary on host
599 $(eval $(call BuildPlugin,skinny,endpoint mod_skinny,mod_skinny,,))
600 $(eval $(call BuildPlugin,skypopen,Skype compatible endpoint,mod_skypopen,,@BROKEN)) # needs <X11/Xlib.h>
601 $(eval $(call BuildPlugin,sangoma-codec,codec sangoma-codec,mod_sangoma_codec,,@BROKEN)) # Untested
602 $(eval $(call BuildPlugin,snapshot,application mod_snapshot,mod_snapshot,,))
603 $(eval $(call BuildPlugin,snipe-hunt,application mod_snipe_hunt,mod_snipe_hunt,,))
604 $(eval $(call BuildPlugin,sndfile,Multi-Format file transcoder,mod_sndfile,,))
605 $(eval $(call BuildPlugin,snom,SNOM specific features,mod_snom,,))
606 $(eval $(call BuildPlugin,sofia,SIP,mod_sofia,,))
607 $(eval $(call BuildPlugin,soundtouch,Sound effects,mod_soundtouch,,@BROKEN)) # fails in soundtouch
608 $(eval $(call BuildPlugin,speex,Speex codec,mod_speex,,))
609 $(eval $(call BuildPlugin,spidermonkey,JavaScript,mod_spidermonkey,,@BROKEN)) # fails in js
610 $(eval $(call BuildPlugin,spidermonkey-core_db,JavaScript DB,mod_spidermonkey_core_db,,@BROKEN))
611 $(eval $(call BuildPlugin,spidermonkey-curl,JavaScript Curl,mod_spidermonkey_curl,,@BROKEN))
612 $(eval $(call BuildPlugin,spidermonkey-odbc,JavaScript ODBC,mod_spidermonkey_odbc,,@BROKEN))
613 $(eval $(call BuildPlugin,spidermonkey-socket,JavaScript socket,mod_spidermonkey_socket,,@BROKEN))
614 $(eval $(call BuildPlugin,spidermonkey-teletone,JavaScript teletone,mod_spidermonkey_teletone,,@BROKEN))
615 $(eval $(call BuildPlugin,spy,User spy,mod_spy,,))
616 $(eval $(call BuildPlugin,stress,application mod_stress,mod_stress,,))
617 $(eval $(call BuildPlugin,syslog,SysLog logger,mod_syslog,,))
618 $(eval $(call BuildPlugin,tone-stream,Tone generation stream,mod_tone_stream,,))
619 $(eval $(call BuildPlugin,unimrcp,MRCP interface,mod_unimrcp,,))
620 $(eval $(call BuildPlugin,valet-parking,application mod_valet_parking,mod_valet_parking,,))
621 $(eval $(call BuildPlugin,vmd,VoiceMail beep detection,mod_vmd,,))
622 $(eval $(call BuildPlugin,voicemail,VoiceMail,mod_voicemail,,))
623 $(eval $(call BuildPlugin,voipcodecs,VoIP codecs,mod_voipcodecs,,@(!(powerpc)||BROKEN))) # fails in spandsp
624 $(eval $(call BuildPlugin,xml-cdr,XML-CDR handler,mod_xml_cdr,,+libcurl))
625 $(eval $(call BuildPlugin,xml-curl,XML-Curl gateway,mod_xml_curl,,+libcurl))
626 $(eval $(call BuildPlugin,xml-ldap,LDAP-XML gateway,mod_xml_ldap,,@BROKEN)) # fails in openldap
627 $(eval $(call BuildPlugin,xml-rpc,XML-RPC interface,mod_xml_rpc,,))
628 $(eval $(call BuildPlugin,yaml,YAML dialplans,mod_yaml,,))
629