update to v1.0.7 (a daily snapshot of git version)
[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-xml-cdr),--with-libcurl="$(STAGING_DIR)/usr",--without-libcurl) \
326 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-xml-curl),--with-libcurl="$(STAGING_DIR)/usr",--without-libcurl) \
327
328 CONFIGURE_VARS+= \
329 config_TARGET_CC="${TARGET_CC}" \
330 config_TARGET_CFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CFLAGS}" \
331 config_TARGET_CXX="${TARGET_CXX}" \
332 config_TARGET_CXXFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CXXFLAGS}" \
333 config_TARGET_CPPFLAGS="${FS_TARGET_CPPFLAGS}" \
334 config_BUILD_CC="${HOSTCC}" \
335 config_TARGET_READLINE_INC="${FS_TARGET_CPPFLAGS}" \
336 config_TARGET_READLINE_LIBS="${TARGET_LDFLAGS} -lreadline -lncurses" \
337 config_TARGET_LIBS="${TARGET_LDFLAGS} -lpthread" \
338 CC_FOR_BUILD="${HOSTCC}" \
339 LDFLAGS_FOR_BUILD="${HOST_LDFLAGS}" \
340 CC="${TARGET_CC}" \
341 CXX="${TARGET_CXX}" \
342 CFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CFLAGS}" \
343 CXXFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CXXFLAGS}" \
344 CPPFLAGS="${FS_TARGET_CPPFLAGS}" \
345 LDFLAGS="${TARGET_LDFLAGS} -Wl,-rpath-link=\"${STAGING_DIR}/usr/lib\"" \
346 ac_cv_dev_urandom="yes" \
347 ac_cv_file_dbd_apr_dbd_mysql_c="no" \
348 ac_cv_file__dev_random="no" \
349 ac_cv_file__dev_urandom="yes" \
350 ac_cv_file___dev_urandom_="yes" \
351 ac_cv_func_mmap_fixed_mapped="yes" \
352 ac_cv_func_pthread_rwlock_init="yes" \
353 ac_cv_struct_rlimit="yes" \
354 apr_cv_mutex_recursive="yes" \
355 apr_cv_process_shared_works="no" \
356 apr_cv_tcp_nodelay_with_cork="yes" \
357 apr_cv_type_rwlock_t="yes" \
358 ac_cv_path_LIBGNUTLS_CONFIG="no" \
359
360
361 define Build/Prepare
362 $(call Build/Prepare/Default)
363 $(call Prepare/celt)
364 $(call Prepare/flite)
365 $(call Prepare/json-c)
366 $(call Prepare/sounds-en)
367 $(call Prepare/sounds-moh)
368 (cd $(PKG_BUILD_DIR); [ -h noreg ] || touch noreg) # Just to shut up Cluecon reg.
369 (cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./bootstrap.sh)
370 endef
371
372 define Build/Configure
373 $(call Build/Configure/Default,)
374 $(foreach m,$(FS_MOD_AVAILABLE),
375 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-$(m)),
376 $(SED) 's|^[ #]*\([^#]*/mod_$(subst -,_,$(m))\)$$$$|\1|g' $(PKG_BUILD_DIR)/modules.conf
377 ,
378 $(SED) 's|^\([^#]*/mod_$(subst -,_,$(m))\)$$$$|#\1|g' $(PKG_BUILD_DIR)/modules.conf
379 )
380 )
381 endef
382
383 define Build/Compile
384 $(MAKE) -C $(PKG_BUILD_DIR) \
385 AR="$(TARGET_CROSS)ar" \
386 RANLIB="$(TARGET_CROSS)ranlib" \
387 CC="$(TARGET_CC)" \
388 CXX="$(TARGET_CXX)" \
389 DESTDIR="$(PKG_INSTALL_DIR)" \
390 LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
391 all $(MAKE_INSTALL_TARGETS)
392 $(SED) 's|^\([ \t]*\)\(.*\)"mod_console"\(.*\)$$$$|\1<!-- \2"mod_console"\3 -->|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
393 $(SED) 's|^\([ \t]*\)<!-- *\(.*\)"mod_syslog"\(.*\) *-->\(.*\)$$$$|\1\2"mod_syslog"\3\4|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
394 endef
395
396 define Build/InstallDev
397 $(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
398 $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/include/* $(1)/usr/include/$(PKG_NAME)/
399 $(INSTALL_DIR) $(1)/usr/lib
400 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).{a,so*} $(1)/usr/lib/
401 endef
402
403 define Package/$(PKG_NAME)/install
404 $(INSTALL_DIR) $(1)/usr/bin
405 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
406 $(INSTALL_DIR) $(1)/usr/lib
407 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so.* $(1)/usr/lib/
408 $(INSTALL_DIR) $(1)/usr/lib/$(PKG_NAME)
409 $(INSTALL_DIR) $(1)/etc/default
410 $(INSTALL_DATA) ./files/$(PKG_NAME).default $(1)/etc/default/$(PKG_NAME)
411 $(INSTALL_DIR) $(1)/etc/init.d
412 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
413 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
414 $(INSTALL_DATA) ./files/$(PKG_NAME).hotplug $(1)/etc/hotplug.d/iface/90-$(PKG_NAME)
415 $(INSTALL_DIR) $(1)/etc/config
416 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
417 endef
418
419 define Package/$(PKG_NAME)-collection-upstream-defaults/install
420 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
421 endef
422
423 define Package/$(PKG_NAME)-example-config/install
424 $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/examples/conf
425 $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/usr/share/$(PKG_NAME)/examples/conf/
426 endef
427
428 define Package/$(PKG_NAME)-config-upstream-defaults/install
429 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
430 $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/etc/$(PKG_NAME)/
431 endef
432
433 define Package/$(PKG_NAME)-collection-minimal/install
434 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
435 endef
436
437 define Package/$(PKG_NAME)-collection-uci-minimal/install
438 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
439 endef
440
441 define Package/$(PKG_NAME)-config-minimal/install
442 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
443 $(CP) ./files/etc.minimal/* $(1)/etc/$(PKG_NAME)/
444 endef
445
446 define Package/$(PKG_NAME)-sounds-en/install
447 $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds
448 $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en $(1)/usr/share/$(PKG_NAME)/sounds/
449 endef
450
451 define Package/$(PKG_NAME)-sounds-moh/install
452 $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds
453 $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music $(1)/usr/share/$(PKG_NAME)/sounds/
454 endef
455
456 define Package/$(PKG_NAME)-tools/install
457 $(INSTALL_DIR) $(1)/usr/bin
458 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_cli $(1)/usr/bin/
459 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_encode $(1)/usr/bin/
460 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_ivrd $(1)/usr/bin/
461 $(CP) $(PKG_INSTALL_DIR)/usr/bin/tone2wav $(1)/usr/bin/
462 endef
463
464 # 1. Name
465 # 2. Title
466 # 3. Files
467 # 4. Inter Depends
468 # 5. Extra Depends
469 define BuildPlugin
470 define Package/$(PKG_NAME)-mod-$(1)
471 $$(call Package/$(PKG_NAME)/Default)
472 TITLE:= FS $(2) module
473 DEPENDS:= $(PKG_NAME) $$(foreach m,$(4),+$(PKG_NAME)-mod-$$m) $(5)
474 endef
475
476 define Package/$(PKG_NAME)-mod-$(1)/install
477 [ -z "$(3)" ] || $(INSTALL_DIR) $$(1)/usr/lib/$(PKG_NAME)
478 for f in $(3); do \
479 $(CP) \
480 $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)/$$$$$$$${f}.so \
481 $$(1)/usr/lib/$(PKG_NAME)/ ; \
482 done
483 if [ -d "./files/etc.packages/$(1)" ]; then \
484 $(INSTALL_DIR) $$(1)/etc/$(PKG_NAME) ; \
485 $(CP) \
486 ./files/etc.packages/$(1)/* \
487 $$(1)/etc/$(PKG_NAME)/ ; \
488 fi
489 endef
490
491 define Package/$(PKG_NAME)-mod-$(1)/postinst
492 #!/bin/sh
493 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
494 endef
495
496 define Package/$(PKG_NAME)-mod-$(1)/postrm
497 #!/bin/sh
498 sed -i -e 's|^\([ \t]*\)\(.*\)"mod_$(subst -,_,$(1))"\(.*\)$$$$|\1<!-- \2"mod_$(subst -,_,$(1))"\3 -->|' $$$${IPKG_INSTROOT}/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
499 endef
500
501 $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
502 endef
503
504 $(eval $(call BuildPackage,$(PKG_NAME)))
505 $(eval $(call BuildPackage,$(PKG_NAME)-collection-upstream-defaults))
506 $(eval $(call BuildPackage,$(PKG_NAME)-collection-minimal))
507 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-en))
508 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-moh))
509 $(eval $(call BuildPackage,$(PKG_NAME)-tools))
510 $(eval $(call BuildPackage,$(PKG_NAME)-example-config))
511 $(eval $(call BuildPackage,$(PKG_NAME)-config-upstream-defaults))
512 $(eval $(call BuildPackage,$(PKG_NAME)-config-minimal))
513
514 #$(eval $(call BuildPlugin,Name,Title,Files,Depends))
515 $(eval $(call BuildPlugin,alsa,Alsa endpoint,mod_alsa,,))
516 $(eval $(call BuildPlugin,amr,GSM-AMR codec,mod_amr,,))
517 $(eval $(call BuildPlugin,amrwb,GSM-AMRWB,mod_amrwb,,))
518 $(eval $(call BuildPlugin,bv,codec mod_bv,mod_bv,,))
519 $(eval $(call BuildPlugin,cdr-csv,CSV-CDR handler,mod_cdr_csv,,))
520 $(eval $(call BuildPlugin,cdr-pg-csv,Postgress CDR handler,mod_cdr_pg_csv,,+postgresql @BROKEN))
521 $(eval $(call BuildPlugin,celt,CELT ultra-low delay codec,mod_celt,,+libogg))
522 $(eval $(call BuildPlugin,cepstral,Cepstral interface,mod_cepstral,,@BROKEN)) # needs <swift.h>
523 $(eval $(call BuildPlugin,cidlookup,applications mod_cidlookup,mod_cidlookup,,))
524 $(eval $(call BuildPlugin,cluechoo,Framework Demo,mod_cluechoo,,))
525 $(eval $(call BuildPlugin,codec2,CoDec 2,mod_codec2,,))
526 $(eval $(call BuildPlugin,commands,API commands,mod_commands,,))
527 $(eval $(call BuildPlugin,conference,Conference room,mod_conference,,))
528 $(eval $(call BuildPlugin,console,Console logger,mod_console,,))
529 $(eval $(call BuildPlugin,curl,HTTP request,mod_curl,,+libcurl))
530 $(eval $(call BuildPlugin,dahdi-codec,DAHDI codecs,mod_dahdi_codec,,))
531 $(eval $(call BuildPlugin,dialplan-asterisk,Asterisk dialplan parser,mod_dialplan_asterisk,,))
532 $(eval $(call BuildPlugin,dialplan-directory,Dialplan-Directory interface,mod_dialplan_directory,,))
533 $(eval $(call BuildPlugin,dialplan-xml,Dialplan-XML interface,mod_dialplan_xml,,))
534 $(eval $(call BuildPlugin,dingaling,Jabber interface,mod_dingaling,,+libgnutls-openssl))
535 $(eval $(call BuildPlugin,directory,application mod_directory,mod_directory,,))
536 $(eval $(call BuildPlugin,distributor,application mod_distributor,mod_distributor,,))
537 $(eval $(call BuildPlugin,dptools,Dialplan tools,mod_dptools,,))
538 $(eval $(call BuildPlugin,easyroute,DID routing,mod_easyroute,,))
539 $(eval $(call BuildPlugin,enum,ENUM routing,mod_enum,,))
540 $(eval $(call BuildPlugin,erlang-event,Erlang event handler,mod_erlang_event,,@BROKEN)) # needs <ei.h>
541 $(eval $(call BuildPlugin,esf,Extra SIP Functionality,mod_esf,,))
542 $(eval $(call BuildPlugin,event-multicast,Multicast event handler,mod_event_multicast,,))
543 $(eval $(call BuildPlugin,event-socket,Socket event handler,mod_event_socket,,))
544 $(eval $(call BuildPlugin,expr,Expression evaluation,mod_expr,,))
545 $(eval $(call BuildPlugin,fifo,FIFO,mod_fifo,,))
546 $(eval $(call BuildPlugin,file-string,File streaming,mod_file_string,,@OBSOLETE))
547 $(eval $(call BuildPlugin,flite,Festival TTS,mod_flite,,@(!(armeb||avr32)||BROKEN)))
548 $(eval $(call BuildPlugin,fsv,Video,mod_fsv,,))
549 $(eval $(call BuildPlugin,g723-1,G.723.1 codec,mod_g723_1,,))
550 $(eval $(call BuildPlugin,g729,G.729 codec,mod_g729,,))
551 $(eval $(call BuildPlugin,h26x,H26X linear codec,mod_h26x,,))
552 $(eval $(call BuildPlugin,h323,h323 endpoint,mod_h323,,@BROKEN)) # missing header files (other packages needed)
553 $(eval $(call BuildPlugin,hash,API for manipulating a hash table,mod_hash,,))
554 $(eval $(call BuildPlugin,java,Java language interface,mod_java,,@BROKEN)) # needs java
555 $(eval $(call BuildPlugin,ilbc,ILBC codec,mod_ilbc,,))
556 $(eval $(call BuildPlugin,lcr,Least Cost Routing,mod_lcr,,))
557 $(eval $(call BuildPlugin,ldap,LDAP interface,mod_ldap,,@BROKEN)) # fails in openldap
558 $(eval $(call BuildPlugin,local-stream,Local streaming,mod_local_stream,,))
559 $(eval $(call BuildPlugin,logfile,File logger,mod_logfile,,))
560 $(eval $(call BuildPlugin,loopback,Loopback endpoint,mod_loopback,,))
561 $(eval $(call BuildPlugin,lua,Lua language interface,mod_lua,,+libstdcpp))
562 $(eval $(call BuildPlugin,managed,language mod_managed,mod_managed,,@BROKEN)) # needs Mono
563 $(eval $(call BuildPlugin,memcache,MemCached interface,mod_memcache,,@BROKEN)) # fails in libmemcached
564 $(eval $(call BuildPlugin,native-file,Native files,mod_native_file,,))
565 $(eval $(call BuildPlugin,nibblebill,Billing,mod_nibblebill,,))
566 $(eval $(call BuildPlugin,opal,Multi-Protocol endpoint,mod_opal,,@BROKEN)) # needs Opal
567 $(eval $(call BuildPlugin,openzap,Zaptel hardware interface,mod_openzap ozmod_analog ozmod_analog_em ozmod_isdn ozmod_skel ozmod_zt,,+libpcap))
568 $(eval $(call BuildPlugin,perl,Perl language interface,mod_perl,,+perl @BROKEN)) # needs Perl
569 $(eval $(call BuildPlugin,pocketsphinx,PocketSphinx SR,mod_pocketsphinx,,@BROKEN)) # fails in sphinxbase
570 $(eval $(call BuildPlugin,portaudio,Local audio endpoint,mod_portaudio,,+alsa-lib))
571 $(eval $(call BuildPlugin,portaudio-stream,format mod_portaudio_stream,mod_portaudio_stream,,))
572 $(eval $(call BuildPlugin,python,Python language interface,mod_python,,@BROKEN)) # needs Python
573 $(eval $(call BuildPlugin,radius-cdr,Radius-CDR interface,mod_radius_cdr,,@BROKEN)) # fails in freeradius-client
574 $(eval $(call BuildPlugin,rss,RRS feeds via TTS,mod_rss,,))
575 $(eval $(call BuildPlugin,say-de,German say,mod_say_de,,))
576 $(eval $(call BuildPlugin,say-en,English say,mod_say_en,,))
577 $(eval $(call BuildPlugin,say-es,Spanish say,mod_say_es,,))
578 $(eval $(call BuildPlugin,say-fr,French say,mod_say_fr,,))
579 $(eval $(call BuildPlugin,say-it,Italian say,mod_say_it,,))
580 $(eval $(call BuildPlugin,say-nl,Dutch say,mod_say_nl,,))
581 $(eval $(call BuildPlugin,say-ru,Russian say,mod_say_ru,,))
582 $(eval $(call BuildPlugin,say-th,mod_th say,mod_say_th,,))
583 $(eval $(call BuildPlugin,say-zh,Chineese say,mod_say_zh,,))
584 $(eval $(call BuildPlugin,shell-stream,,mod_shell_stream,,))
585 $(eval $(call BuildPlugin,shout,MP3 and Shoutcast stream,mod_shout,,@BROKEN)) # needs Ogg/Vorbis
586 $(eval $(call BuildPlugin,silk,codec mod_silk,mod_silk,,))
587 $(eval $(call BuildPlugin,siren,G.722.1 codec,mod_siren,,@BROKEN)) # fails in libg722_1 - attempts to execute cross-compiled binary on host
588 $(eval $(call BuildPlugin,skinny,endpoint mod_skinny,mod_skinny,,))
589 $(eval $(call BuildPlugin,skypopen,Skype compatible endpoint,mod_skypopen,,@BROKEN)) # needs <X11/Xlib.h>
590 $(eval $(call BuildPlugin,sangoma-codec,codec sangoma-codec,mod_sangoma_codec,,@BROKEN)) # Untested
591 $(eval $(call BuildPlugin,snapshot,application mod_snapshot,mod_snapshot,,))
592 $(eval $(call BuildPlugin,snipe-hunt,application mod_snipe_hunt,mod_snipe_hunt,,))
593 $(eval $(call BuildPlugin,sndfile,Multi-Format file transcoder,mod_sndfile,,))
594 $(eval $(call BuildPlugin,snom,SNOM specific features,mod_snom,,))
595 $(eval $(call BuildPlugin,sofia,SIP,mod_sofia,,))
596 $(eval $(call BuildPlugin,soundtouch,Sound effects,mod_soundtouch,,@BROKEN)) # fails in soundtouch
597 $(eval $(call BuildPlugin,spandsp,Span DSP,mod_spandsp,,@BROKEN))
598 $(eval $(call BuildPlugin,speex,Speex codec,mod_speex,,))
599 $(eval $(call BuildPlugin,spidermonkey,JavaScript,mod_spidermonkey,,@BROKEN)) # fails in js
600 $(eval $(call BuildPlugin,spidermonkey-core_db,JavaScript DB,mod_spidermonkey_core_db,,@BROKEN))
601 $(eval $(call BuildPlugin,spidermonkey-curl,JavaScript Curl,mod_spidermonkey_curl,,@BROKEN))
602 $(eval $(call BuildPlugin,spidermonkey-odbc,JavaScript ODBC,mod_spidermonkey_odbc,,@BROKEN))
603 $(eval $(call BuildPlugin,spidermonkey-socket,JavaScript socket,mod_spidermonkey_socket,,@BROKEN))
604 $(eval $(call BuildPlugin,spidermonkey-teletone,JavaScript teletone,mod_spidermonkey_teletone,,@BROKEN))
605 $(eval $(call BuildPlugin,spy,User spy,mod_spy,,))
606 $(eval $(call BuildPlugin,stress,application mod_stress,mod_stress,,))
607 $(eval $(call BuildPlugin,syslog,SysLog logger,mod_syslog,,))
608 $(eval $(call BuildPlugin,tone-stream,Tone generation stream,mod_tone_stream,,))
609 $(eval $(call BuildPlugin,unimrcp,MRCP interface,mod_unimrcp,,))
610 $(eval $(call BuildPlugin,valet-parking,application mod_valet_parking,mod_valet_parking,,))
611 $(eval $(call BuildPlugin,vmd,VoiceMail beep detection,mod_vmd,,))
612 $(eval $(call BuildPlugin,voicemail,VoiceMail,mod_voicemail,,))
613 $(eval $(call BuildPlugin,xml-cdr,XML-CDR handler,mod_xml_cdr,,+libcurl))
614 $(eval $(call BuildPlugin,xml-curl,XML-Curl gateway,mod_xml_curl,,+libcurl))
615 $(eval $(call BuildPlugin,xml-ldap,LDAP-XML gateway,mod_xml_ldap,,@BROKEN)) # fails in openldap
616 $(eval $(call BuildPlugin,xml-rpc,XML-RPC interface,mod_xml_rpc,,))
617 $(eval $(call BuildPlugin,yaml,YAML dialplans,mod_yaml,,))
618