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