[packages] net/freeswitch: Re-added per-package module configurartion (currently...
[packages.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:=8
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-collection-upstream-defaults
187 $(call Package/freeswitch/Default)
188   TITLE:=FreeSWITCH upstream default (sample) config
189   DEPENDS:= freeswitch \
190                 +freeswitch-config-upstream-defaults \
191                 +freeswitch-mod-commands \
192                 +freeswitch-mod-conference \
193                 +freeswitch-mod-syslog \
194                 +freeswitch-mod-curl \
195                 +freeswitch-mod-dialplan-xml \
196                 +freeswitch-mod-dptools \
197                 +freeswitch-mod-event-socket \
198                 +freeswitch-mod-g723-1 \
199                 +freeswitch-mod-ilbc \
200                 +freeswitch-mod-limit \
201                 +freeswitch-mod-local-stream \
202                 +freeswitch-mod-logfile \
203                 +freeswitch-mod-lua \
204                 +freeswitch-mod-native-file \
205                 +freeswitch-mod-sndfile \
206                 +freeswitch-mod-sofia \
207                 +freeswitch-mod-speex \
208                 +freeswitch-mod-tone-stream \
209                 +freeswitch-mod-voipcodecs \
210                 +freeswitch-mod-xml-curl \
211                 +freeswitch-mod-xml-rpc \
212                 +freeswitch-tools
213 endef
214
215 define Package/freeswitch-collection-minimal
216 $(call Package/freeswitch/Default)
217   TITLE:=A FreeSWITCH minimal package collection
218   DEPENDS:= freeswitch \
219                 +freeswitch-config-minimal \
220                 +freeswitch-mod-commands \
221                 +freeswitch-mod-syslog \
222                 +freeswitch-mod-dialplan-xml \
223                 +freeswitch-mod-dptools \
224                 +freeswitch-mod-event-socket \
225                 +freeswitch-mod-local-stream \
226                 +freeswitch-mod-sndfile \
227                 +freeswitch-mod-sofia \
228                 +freeswitch-mod-tone-stream \
229                 +freeswitch-mod-voipcodecs \
230                 +freeswitch-tools
231 endef
232
233 define Package/freeswitch-sounds-en
234 $(call Package/freeswitch/Default)
235   TITLE:=FreeSWITCH english sounds
236   DEPENDS:= freeswitch
237 endef
238
239
240 define Package/freeswitch-sounds-moh
241 $(call Package/freeswitch/Default)
242   TITLE:=FreeSWITCH music-on-hold sounds
243   DEPENDS:= freeswitch
244 endef
245
246
247 define Package/freeswitch-tools
248 $(call Package/freeswitch/Default)
249   TITLE:=FreeSWITCH control tools
250   DEPENDS:= freeswitch
251 endef
252
253
254 define Download/files
255  define Download/$(1)
256   FILE:=$(2)
257   URL:=http://files.freeswitch.org/$(4)
258   MD5SUM:=$(3)
259  endef
260  define Prepare/$(1)
261   $(CP) $(DL_DIR)/$(2) $(PKG_BUILD_DIR)/$(5)
262  endef
263  $$(eval $$(call Download,$(1)))
264 endef
265
266 MAKE_INSTALL_TARGETS:=install
267
268 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-celt),)
269  $(eval $(call Download/files,celt,celt-0.7.1.tar.gz,c7f6b8346e132b1a48dae0eff77ea9f0,downloads/libs/,libs/))
270 endif
271
272 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-curl),)
273  $(eval $(call Download/files,json-c,json-c-0.9.tar.gz,4653b3b9c568bb9c782178abfaac128d,downloads/libs/,libs/))
274 endif
275
276 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-flite),)
277  $(eval $(call Download/files,flite,flite-1.3.99-latest.tar.gz,,downloads/libs/,libs/))
278 endif
279
280 ifneq ($(CONFIG_PACKAGE_freeswitch-sounds-en),)
281  $(eval $(call Download/files,sounds-en,freeswitch-sounds-en-us-callie-8000-1.0.12.tar.gz,d700439027dd95dd118e5e85f38e4d81,,))
282         MAKE_INSTALL_TARGETS+= sounds-install
283 endif
284
285 ifneq ($(CONFIG_PACKAGE_freeswitch-sounds-moh),)
286  $(eval $(call Download/files,sounds-moh,freeswitch-sounds-music-8000-1.0.8.tar.gz,f63ef3cc3507af079ae5c7b8b8a01e42,,))
287         MAKE_INSTALL_TARGETS+= moh-install
288 endif
289
290 # XXX: -fgnu89-inline is not supported on all compiler versions, so only enable it on avr32 where it solves build issues
291 ifneq ($(CONFIG_avr32),)
292   TARGET_CFLAGS += -fgnu89-inline
293   TARGET_CXXFLAGS += -fgnu89-inline
294 endif
295
296 ifneq ($(CONFIG_USE_EGLIBC),)
297   ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)
298     TARGET_CFLAGS += -DNO_GETLOGIN
299   endif
300 endif
301
302 FS_TARGET_CFLAGS:= ${TARGET_CFLAGS} -DLUA_USE_LINUX $(FPIC) -std=gnu99 -Wno-format
303 FS_TARGET_CXXFLAGS:= ${TARGET_CXXFLAGS} -DLUA_USE_LINUX $(FPIC) -Wno-format
304 FS_TARGET_CPPFLAGS:= -I. -I./lua ${TARGET_CPPFLAGS}
305
306 CONFIGURE_ARGS+= \
307         --prefix="/usr/freeswitch" \
308         --bindir="/usr/bin" \
309         --libdir="/usr/lib" \
310         --sysconfdir="/etc/freeswitch" \
311         --with-modinstdir="/usr/lib/freeswitch" \
312         --enable-ipv6 \
313         \
314         --with-libcurl="$(STAGING_DIR)/usr" \
315         --with-openssl="$(STAGING_DIR)/usr" \
316         --with-random="/dev/urandom" \
317         --without-erlang \
318         --without-java \
319         --without-mysql \
320         --without-pgsql \
321         --without-python \
322         --disable-zrtp \
323
324 CONFIGURE_VARS+= \
325         config_TARGET_CC="${TARGET_CC}" \
326         config_TARGET_CFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CFLAGS}" \
327         config_TARGET_CXX="${TARGET_CXX}" \
328         config_TARGET_CXXFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CXXFLAGS}" \
329         config_TARGET_CPPFLAGS="${FS_TARGET_CPPFLAGS}" \
330         config_BUILD_CC="${HOSTCC}" \
331         config_TARGET_READLINE_INC="${FS_TARGET_CPPFLAGS}" \
332         config_TARGET_READLINE_LIBS="${TARGET_LDFLAGS} -lreadline -lncurses" \
333         config_TARGET_LIBS="${TARGET_LDFLAGS} -lpthread" \
334         CC_FOR_BUILD="${HOSTCC}" \
335         LDFLAGS_FOR_BUILD="${HOST_LDFLAGS}" \
336         CC="${TARGET_CC}" \
337         CXX="${TARGET_CXX}" \
338         CFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CFLAGS}" \
339         CXXFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CXXFLAGS}" \
340         CPPFLAGS="${FS_TARGET_CPPFLAGS}" \
341         LDFLAGS="${TARGET_LDFLAGS} -Wl,-rpath-link=\"${STAGING_DIR}/usr/lib\"" \
342         ac_cv_dev_urandom="yes" \
343         ac_cv_file_dbd_apr_dbd_mysql_c="no" \
344         ac_cv_file__dev_random="no" \
345         ac_cv_file__dev_urandom="yes" \
346         ac_cv_file___dev_urandom_="yes" \
347         ac_cv_func_mmap_fixed_mapped="yes" \
348         ac_cv_func_pthread_rwlock_init="yes" \
349         ac_cv_struct_rlimit="yes" \
350         apr_cv_mutex_recursive="yes" \
351         apr_cv_process_shared_works="no" \
352         apr_cv_tcp_nodelay_with_cork="yes" \
353         apr_cv_type_rwlock_t="yes" \
354         ac_cv_path_LIBGNUTLS_CONFIG="no" \
355
356
357 define Build/Prepare
358 $(call Build/Prepare/Default)
359         $(call Prepare/celt)
360         $(call Prepare/flite)
361         $(call Prepare/json-c)
362         $(call Prepare/sounds-en)
363         $(call Prepare/sounds-moh)
364 endef
365
366 define Build/Configure
367 $(call Build/Configure/Default)
368         $(foreach m,$(FS_MOD_AVAILABLE),
369                 $(if $(CONFIG_PACKAGE_freeswitch-mod-$(m)),
370                         $(SED) 's|^[ #]*\([^#]*/mod_$(subst -,_,$(m))\)$$$$|\1|g' $(PKG_BUILD_DIR)/modules.conf
371                 ,
372                         $(SED) 's|^\([^#]*/mod_$(subst -,_,$(m))\)$$$$|#\1|g' $(PKG_BUILD_DIR)/modules.conf
373                 )
374         )
375 endef
376
377 define Build/Compile
378         $(MAKE) -C $(PKG_BUILD_DIR) \
379                 DESTDIR="$(PKG_INSTALL_DIR)" \
380                 LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
381                 all $(MAKE_INSTALL_TARGETS)
382         $(SED) 's|^\([ \t]*\)\(.*\)"mod_console"\(.*\)$$$$|\1<!-- \2"mod_console"\3 -->|' $(PKG_INSTALL_DIR)/etc/freeswitch/autoload_configs/modules.conf.xml
383         $(SED) 's|^\([ \t]*\)<!-- *\(.*\)"mod_syslog"\(.*\) *-->\(.*\)$$$$|\1\2"mod_syslog"\3\4|' $(PKG_INSTALL_DIR)/etc/freeswitch/autoload_configs/modules.conf.xml
384 endef
385
386 define Build/InstallDev
387         $(INSTALL_DIR) $(1)/usr/include/freeswitch
388         $(CP) $(PKG_INSTALL_DIR)/usr/freeswitch/include/* $(1)/usr/include/freeswitch/
389         $(INSTALL_DIR) $(1)/usr/lib
390         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreeswitch.{a,so*} $(1)/usr/lib/
391 endef
392
393 define Package/freeswitch/install
394         $(INSTALL_DIR) $(1)/usr/bin
395         $(CP) $(PKG_INSTALL_DIR)/usr/bin/freeswitch $(1)/usr/bin/
396         $(INSTALL_DIR) $(1)/usr/lib
397         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreeswitch.so.* $(1)/usr/lib/
398         $(INSTALL_DIR) $(1)/usr/lib/freeswitch
399         $(INSTALL_DIR) $(1)/etc/default
400         $(INSTALL_DATA) ./files/freeswitch.default $(1)/etc/default/freeswitch
401         $(INSTALL_DIR) $(1)/etc/init.d
402         $(INSTALL_BIN) ./files/freeswitch.init $(1)/etc/init.d/freeswitch
403         $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
404         $(INSTALL_DATA) ./files/freeswitch.hotplug $(1)/etc/hotplug.d/iface/90-freeswitch
405         $(INSTALL_DIR) $(1)/etc/config
406         $(INSTALL_DATA) ./files/freeswitch.config $(1)/etc/config/freeswitch
407 endef
408
409 define Package/freeswitch-collection-upstream-defaults/install
410         $(INSTALL_DIR) $(1)/etc/freeswitch
411 endef
412
413 define Package/freeswitch-example-config/install
414         $(INSTALL_DIR) $(1)/usr/share/freeswitch/examples/conf
415         $(CP) $(PKG_INSTALL_DIR)/etc/freeswitch/* $(1)/usr/share/freeswitch/examples/conf/
416 endef
417
418 define Package/freeswitch-config-upstream-defaults/install
419         $(INSTALL_DIR) $(1)/etc/freeswitch
420         $(CP) $(PKG_INSTALL_DIR)/etc/freeswitch/* $(1)/etc/freeswitch/
421 endef
422
423 define Package/freeswitch-collection-minimal/install
424         $(INSTALL_DIR) $(1)/etc/freeswitch
425 endef
426
427 define Package/freeswitch-collection-uci-minimal/install
428         $(INSTALL_DIR) $(1)/etc/freeswitch
429 endef
430
431 define Package/freeswitch-config-minimal/install
432         $(INSTALL_DIR) $(1)/etc/freeswitch
433         $(CP) ./files/etc.minimal/* $(1)/etc/freeswitch/
434 endef
435
436 define Package/freeswitch-sounds-en/install
437         $(INSTALL_DIR) $(1)/usr/freeswitch/sounds
438         $(CP) $(PKG_INSTALL_DIR)/usr/freeswitch/sounds/en $(1)/usr/freeswitch/sounds/
439 endef
440
441 define Package/freeswitch-sounds-moh/install
442         $(INSTALL_DIR) $(1)/usr/freeswitch/sounds
443         $(CP) $(PKG_INSTALL_DIR)/usr/freeswitch/sounds/music $(1)/usr/freeswitch/sounds/
444 endef
445
446 define Package/freeswitch-tools/install
447         $(INSTALL_DIR) $(1)/usr/bin
448         $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_cli $(1)/usr/bin/
449 endef
450
451 # 1. Name
452 # 2. Title
453 # 3. Files
454 # 4. Inter Depends
455 # 5. Extra Depends
456 define BuildPlugin
457   define Package/freeswitch-mod-$(1)
458     $$(call Package/freeswitch/Default)
459     TITLE:= FS $(2) module
460     DEPENDS:= freeswitch $$(foreach m,$(4),+freeswitch-mod-$$m) $(5)
461   endef
462
463   define Package/freeswitch-mod-$(1)/install
464         [ -z "$(3)" ] || $(INSTALL_DIR) $$(1)/usr/lib/freeswitch
465         for f in $(3); do \
466                 $(CP) \
467                         $(PKG_INSTALL_DIR)/usr/lib/freeswitch/$$$$$$$${f}.so \
468                         $$(1)/usr/lib/freeswitch/ ; \
469         done
470         if [ -d "./files/etc.packages/$(1)" ]; then \
471                 $(INSTALL_DIR) $$(1)/etc/freeswitch ; \
472                 $(CP) \
473                         ./files/etc.packages/$(1)/* \
474                         $$(1)/etc/freeswitch/ ; \
475         fi
476   endef
477
478   define Package/freeswitch-mod-$(1)/postinst
479 #!/bin/sh
480 sed -i -e 's|^\([ \t]*\)<!-- *\(.*\)"mod_$(1)"\(.*\) *-->\(.*\)$$$$|\1\2"mod_$(1)"\3\4|' $$$${IPKG_INSTROOT}/etc/freeswitch/autoload_configs/modules.conf.xml
481   endef
482
483   define Package/freeswitch-mod-$(1)/postrm
484 #!/bin/sh
485 sed -i -e 's|^\([ \t]*\)\(.*\)"mod_$(1)"\(.*\)$$$$|\1<!-- \2"mod_$(1)"\3 -->|' $$$${IPKG_INSTROOT}/etc/freeswitch/autoload_configs/modules.conf.xml
486   endef
487
488   $$(eval $$(call BuildPackage,freeswitch-mod-$(1)))
489 endef
490
491 $(eval $(call BuildPackage,freeswitch))
492 $(eval $(call BuildPackage,freeswitch-collection-upstream-defaults))
493 $(eval $(call BuildPackage,freeswitch-collection-minimal))
494 $(eval $(call BuildPackage,freeswitch-sounds-en))
495 $(eval $(call BuildPackage,freeswitch-sounds-moh))
496 $(eval $(call BuildPackage,freeswitch-tools))
497 $(eval $(call BuildPackage,freeswitch-example-config))
498 $(eval $(call BuildPackage,freeswitch-config-upstream-defaults))
499 $(eval $(call BuildPackage,freeswitch-config-minimal))
500
501 #$(eval $(call BuildPlugin,Name,Title,Files,Depends))
502 $(eval $(call BuildPlugin,alsa,Alsa endpoint,mod_alsa,,))
503 $(eval $(call BuildPlugin,amr,GSM-AMR codec,mod_amr,,))
504 $(eval $(call BuildPlugin,amrwb,GSM-AMRWB,mod_amrwb,,))
505 $(eval $(call BuildPlugin,bv,codec mod_bv,mod_bv,,))
506 $(eval $(call BuildPlugin,cdr-csv,CSV-CDR handler,mod_cdr_csv,,))
507 $(eval $(call BuildPlugin,celt,CELT ultra-low delay codec,mod_celt,,+libogg))
508 $(eval $(call BuildPlugin,cepstral,Cepstral interface,mod_cepstral,,@BROKEN)) # needs <swift.h>
509 $(eval $(call BuildPlugin,cidlookup,applications mod_cidlookup,mod_cidlookup,,))
510 $(eval $(call BuildPlugin,cluechoo,Framework Demo,mod_cluechoo,,))
511 $(eval $(call BuildPlugin,commands,API commands,mod_commands,,))
512 $(eval $(call BuildPlugin,conference,Conference room,mod_conference,,))
513 $(eval $(call BuildPlugin,console,Console logger,mod_console,,))
514 $(eval $(call BuildPlugin,curl,HTTP request,mod_curl,,+libcurl))
515 $(eval $(call BuildPlugin,dahdi-codec,DAHDI codecs,mod_dahdi_codec,,))
516 $(eval $(call BuildPlugin,dialplan-asterisk,Asterisk dialplan parser,mod_dialplan_asterisk,,))
517 $(eval $(call BuildPlugin,dialplan-directory,Dialplan-Directory interface,mod_dialplan_directory,,))
518 $(eval $(call BuildPlugin,dialplan-xml,Dialplan-XML interface,mod_dialplan_xml,,))
519 $(eval $(call BuildPlugin,dingaling,Jabber interface,mod_dingaling,,+libgnutls-openssl)) 
520 $(eval $(call BuildPlugin,directory,application mod_directory,mod_directory,,))
521 $(eval $(call BuildPlugin,distributor,application mod_distributor,mod_distributor,,))
522 $(eval $(call BuildPlugin,dptools,Dialplan tools,mod_dptools,,))
523 $(eval $(call BuildPlugin,easyroute,DID routing,mod_easyroute,,))
524 $(eval $(call BuildPlugin,enum,ENUM routing,mod_enum,,))
525 $(eval $(call BuildPlugin,erlang-event,Erlang event handler,mod_erlang_event,,@BROKEN)) # needs <ei.h>
526 $(eval $(call BuildPlugin,esf,Extra SIP Functionality,mod_esf,,))
527 $(eval $(call BuildPlugin,event-multicast,Multicast event handler,mod_event_multicast,,))
528 $(eval $(call BuildPlugin,event-socket,Socket event handler,mod_event_socket,,))
529 $(eval $(call BuildPlugin,expr,Expression evaluation,mod_expr,,))
530 $(eval $(call BuildPlugin,fax,Fax,mod_fax,,+libjpeg @(!(powerpc)||BROKEN))) # fails in spandsp
531 $(eval $(call BuildPlugin,fifo,FIFO,mod_fifo,,))
532 $(eval $(call BuildPlugin,file-string,File streaming,mod_file_string,,))
533 $(eval $(call BuildPlugin,flite,Festival TTS,mod_flite,,@(!(armeb||avr32)||BROKEN)))
534 $(eval $(call BuildPlugin,fsv,Video,mod_fsv,,))
535 $(eval $(call BuildPlugin,g723-1,G.723.1 codec,mod_g723_1,,))
536 $(eval $(call BuildPlugin,g729,G.729 codec,mod_g729,,))
537 $(eval $(call BuildPlugin,h26x,H26X linear codec,mod_h26x,,))
538 $(eval $(call BuildPlugin,h323,h323 endpoint,mod_h323,,@BROKEN)) # missing header files (other packages needed)
539 $(eval $(call BuildPlugin,java,Java language interface,mod_java,,@BROKEN)) # needs java
540 $(eval $(call BuildPlugin,ilbc,ILBC codec,mod_ilbc,,))
541 $(eval $(call BuildPlugin,lcr,Least Cost Routing,mod_lcr,,))
542 $(eval $(call BuildPlugin,ldap,LDAP interface,mod_ldap,,@BROKEN)) # fails in openldap
543 $(eval $(call BuildPlugin,limit,Resource limitation,mod_limit,,))
544 $(eval $(call BuildPlugin,local-stream,Local streaming,mod_local_stream,,))
545 $(eval $(call BuildPlugin,logfile,File logger,mod_logfile,,))
546 $(eval $(call BuildPlugin,loopback,Loopback endpoint,mod_loopback,,))
547 $(eval $(call BuildPlugin,lua,Lua language interface,mod_lua,,+libstdcpp))
548 $(eval $(call BuildPlugin,managed,language mod_managed,mod_managed,,@BROKEN)) # needs Mono
549 $(eval $(call BuildPlugin,memcache,MemCached interface,mod_memcache,,@BROKEN)) # fails in libmemcached
550 $(eval $(call BuildPlugin,native-file,Native files,mod_native_file,,))
551 $(eval $(call BuildPlugin,nibblebill,Billing,mod_nibblebill,,))
552 $(eval $(call BuildPlugin,opal,Multi-Protocol endpoint,mod_opal,,@BROKEN)) # needs Opal
553 $(eval $(call BuildPlugin,openzap,Zaptel hardware interface,mod_openzap ozmod_analog ozmod_analog_em ozmod_isdn ozmod_skel ozmod_zt,,+libpcap))
554 $(eval $(call BuildPlugin,perl,Perl language interface,mod_perl,,+perl @BROKEN)) # needs Perl
555 $(eval $(call BuildPlugin,pocketsphinx,PocketSphinx SR,mod_pocketsphinx,,@BROKEN)) # fails in sphinxbase
556 $(eval $(call BuildPlugin,portaudio,Local audio endpoint,mod_portaudio,,+alsa-lib))
557 $(eval $(call BuildPlugin,portaudio-stream,format mod_portaudio_stream,mod_portaudio_stream,,))
558 $(eval $(call BuildPlugin,python,Python language interface,mod_python,,+python @BROKEN)) # needs Python
559 $(eval $(call BuildPlugin,radius-cdr,Radius-CDR interface,mod_radius_cdr,,@BROKEN)) # fails in freeradius-client
560 $(eval $(call BuildPlugin,rss,RRS feeds via TTS,mod_rss,,))
561 $(eval $(call BuildPlugin,say-de,German say,mod_say_de,,))
562 $(eval $(call BuildPlugin,say-en,English say,mod_say_en,,))
563 $(eval $(call BuildPlugin,say-es,Spanish say,mod_say_es,,))
564 $(eval $(call BuildPlugin,say-fr,French say,mod_say_fr,,))
565 $(eval $(call BuildPlugin,say-it,Italian say,mod_say_it,,))
566 $(eval $(call BuildPlugin,say-nl,Dutch say,mod_say_nl,,))
567 $(eval $(call BuildPlugin,say-ru,Russian say,mod_say_ru,,))
568 $(eval $(call BuildPlugin,say-th,mod_th say,mod_say_th,,))
569 $(eval $(call BuildPlugin,say-zh,Chineese say,mod_say_zh,,))
570 $(eval $(call BuildPlugin,shell-stream,,mod_shell_stream,,))
571 $(eval $(call BuildPlugin,shout,MP3 and Shoutcast stream,mod_shout,,@BROKEN)) # needs Ogg/Vorbis
572 $(eval $(call BuildPlugin,silk,codec mod_silk,mod_silk,,))
573 $(eval $(call BuildPlugin,siren,G.722.1 codec,mod_siren,,@BROKEN)) # fails in libg722_1 - attempts to execute cross-compiled binary on host
574 $(eval $(call BuildPlugin,skinny,endpoint mod_skinny,mod_skinny,,))
575 $(eval $(call BuildPlugin,skypopen,Skype compatible endpoint,mod_skypopen,,@BROKEN)) # needs <X11/Xlib.h>
576 $(eval $(call BuildPlugin,sangoma-codec,codec sangoma-codec,mod_sangoma_codec,,@BROKEN)) # Untested
577 $(eval $(call BuildPlugin,snapshot,application mod_snapshot,mod_snapshot,,))
578 $(eval $(call BuildPlugin,snipe-hunt,application mod_snipe_hunt,mod_snipe_hunt,,))
579 $(eval $(call BuildPlugin,sndfile,Multi-Format file transcoder,mod_sndfile,,))
580 $(eval $(call BuildPlugin,snom,SNOM specific features,mod_snom,,))
581 $(eval $(call BuildPlugin,sofia,SIP,mod_sofia,,))
582 $(eval $(call BuildPlugin,soundtouch,Sound effects,mod_soundtouch,,@BROKEN)) # fails in soundtouch
583 $(eval $(call BuildPlugin,speex,Speex codec,mod_speex,,))
584 $(eval $(call BuildPlugin,spidermonkey,JavaScript,mod_spidermonkey,,@BROKEN)) # fails in js
585 $(eval $(call BuildPlugin,spidermonkey-core_db,JavaScript DB,mod_spidermonkey_core_db,,@BROKEN))
586 $(eval $(call BuildPlugin,spidermonkey-curl,JavaScript Curl,mod_spidermonkey_curl,,@BROKEN))
587 $(eval $(call BuildPlugin,spidermonkey-odbc,JavaScript ODBC,mod_spidermonkey_odbc,,@BROKEN))
588 $(eval $(call BuildPlugin,spidermonkey-socket,JavaScript socket,mod_spidermonkey_socket,,@BROKEN))
589 $(eval $(call BuildPlugin,spidermonkey-teletone,JavaScript teletone,mod_spidermonkey_teletone,,@BROKEN))
590 $(eval $(call BuildPlugin,spy,User spy,mod_spy,,))
591 $(eval $(call BuildPlugin,stress,application mod_stress,mod_stress,,))
592 $(eval $(call BuildPlugin,syslog,SysLog logger,mod_syslog,,))
593 $(eval $(call BuildPlugin,tone-stream,Tone generation stream,mod_tone_stream,,))
594 $(eval $(call BuildPlugin,unimrcp,MRCP interface,mod_unimrcp,,))
595 $(eval $(call BuildPlugin,valet-parking,application mod_valet_parking,mod_valet_parking,,))
596 $(eval $(call BuildPlugin,vmd,VoiceMail beep detection,mod_vmd,,))
597 $(eval $(call BuildPlugin,voicemail,VoiceMail,mod_voicemail,,))
598 $(eval $(call BuildPlugin,voipcodecs,VoIP codecs,mod_voipcodecs,,@(!(powerpc)||BROKEN))) # fails in spandsp
599 $(eval $(call BuildPlugin,xml-cdr,XML-CDR handler,mod_xml_cdr,,+libcurl))
600 $(eval $(call BuildPlugin,xml-curl,XML-Curl gateway,mod_xml_curl,,+libcurl))
601 $(eval $(call BuildPlugin,xml-ldap,LDAP-XML gateway,mod_xml_ldap,,@BROKEN)) # fails in openldap
602 $(eval $(call BuildPlugin,xml-rpc,XML-RPC interface,mod_xml_rpc,,))
603 $(eval $(call BuildPlugin,yaml,YAML dialplans,mod_yaml,,))
604