freeswitch-stable: cleanup Python setup
[feed/telephony.git] / net / freeswitch-stable / Makefile
1 #
2 # Copyright (C) 2017 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 PRG_NAME:=freeswitch
11 PKG_NAME:=$(PRG_NAME)-stable
12 PKG_VERSION:=1.6.18
13 PKG_RELEASE:=1
14 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
15
16 PKG_SOURCE:=$(PRG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_SOURCE_URL:=https://files.$(PRG_NAME).org/releases/$(PRG_NAME)
18 PKG_HASH:=ac1b32f61e5c35680c5a2d6f145bc480cf26e6527af07d8b8b9fa2d5280252cd
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PRG_NAME)-$(PKG_VERSION)
21
22 # configure fails without libjpeg, but it's only needed for mod_spandsp
23 PKG_BUILD_DEPENDS:= \
24 erlang \
25 libjpeg
26
27 # With mod_ssml and mod_rayo enabled the parallel compiles always failed
28 #PKG_BUILD_PARALLEL:=1
29 PKG_INSTALL:=1
30
31 PKG_LICENSE:= \
32 AGPL-3.0 \
33 Apache-2.0 \
34 BSD-2-Clause \
35 BSD-3-Clause \
36 BSD-4-Clause \
37 BSD-like \
38 Beerware \
39 GPL-1.0+ \
40 GPL-2.0 \
41 GPL-2.0+ \
42 GPL-3.0 \
43 ISC \
44 LGPL-2.0+ \
45 LGPL-2.1 \
46 LGPL-2.1+ \
47 MIT/X11 (BSD like) \
48 MPL-1.1 \
49 OpenLDAP \
50 RSA-MD \
51 zlib-acknowledgement
52
53 PKG_LICENSE_FILES:=debian/copyright
54
55 FS_STABLE_PREFIX_DIR:=/usr/share/$(PRG_NAME)
56
57 FS_STABLE_BIN_DIR:=/usr/bin
58 FS_STABLE_SYSCONF_DIR:=/etc
59 FS_STABLE_EXAMPLES_DIR:=$(FS_STABLE_PREFIX_DIR)/examples
60 FS_STABLE_FONTS_DIR:=$(FS_STABLE_PREFIX_DIR)/fonts
61 FS_STABLE_GRAMMAR_DIR:=$(FS_STABLE_PREFIX_DIR)/grammar
62 FS_STABLE_HTDOCS_DIR:=$(FS_STABLE_PREFIX_DIR)/htdocs
63 FS_STABLE_IMAGES_DIR:=$(FS_STABLE_PREFIX_DIR)/images
64 FS_STABLE_INCLUDES_DIR:=/usr/include/$(PRG_NAME)
65 FS_STABLE_LANG_DIR:=$(FS_STABLE_PREFIX_DIR)/lang
66 FS_STABLE_LIB_DIR:=/usr/lib
67 FS_STABLE_MOD_DIR:=$(FS_STABLE_LIB_DIR)/$(PRG_NAME)/mod
68 FS_STABLE_PKGCONFIG_DIR:=$(FS_STABLE_LIB_DIR)/pkgconfig
69 FS_STABLE_SCRIPTS_DIR:=$(FS_STABLE_PREFIX_DIR)/scripts
70 FS_STABLE_SOUNDS_DIR:=$(FS_STABLE_PREFIX_DIR)/sounds
71 FS_STABLE_TLS_DIR:=$(FS_STABLE_SYSCONF_DIR)/$(PRG_NAME)/tls
72 FS_STABLE_TZ_DIR:=$(FS_STABLE_PREFIX_DIR)/tz
73
74 FS_STABLE_MOD_AVAILABLE:= \
75 abstraction \
76 alsa \
77 amr \
78 amrwb \
79 av \
80 avmd \
81 b64 \
82 basic \
83 bert \
84 blacklist \
85 callcenter \
86 cdr_csv \
87 cdr_mongodb \
88 cdr_pg_csv \
89 cdr_sqlite \
90 cidlookup \
91 clearmode \
92 cluechoo \
93 commands \
94 conference \
95 console \
96 curl \
97 cv \
98 dahdi_codec \
99 db \
100 dialplan_asterisk \
101 dialplan_directory \
102 dialplan_xml \
103 dingaling \
104 directory \
105 distributor \
106 dptools \
107 easyroute \
108 enum \
109 erlang_event \
110 esf \
111 esl \
112 event_multicast \
113 event_socket \
114 event_test \
115 event_zmq \
116 expr \
117 fifo \
118 format_cdr \
119 fsk \
120 fsv \
121 g723_1 \
122 g729 \
123 graylog2 \
124 h26x \
125 hash \
126 hiredis \
127 httapi \
128 http_cache \
129 isac \
130 json_cdr \
131 kazoo \
132 lcr \
133 ldap \
134 local_stream \
135 logfile \
136 loopback \
137 lua \
138 mp4v \
139 native_file \
140 nibblebill \
141 odbc_cdr \
142 opus \
143 oreka \
144 perl \
145 png \
146 pocketsphinx \
147 posix_timer \
148 prefix \
149 python \
150 random \
151 rayo \
152 redis \
153 rss \
154 rtc \
155 rtmp \
156 say_de \
157 say_en \
158 say_es \
159 say_es_ar \
160 say_fa \
161 say_fr \
162 say_he \
163 say_hr \
164 say_hu \
165 say_it \
166 say_ja \
167 say_nl \
168 say_pl \
169 say_pt \
170 say_ru \
171 say_sv \
172 say_th \
173 say_zh \
174 shell_stream \
175 shout \
176 skinny \
177 sms \
178 snapshot \
179 sndfile \
180 snmp \
181 snom \
182 sofia \
183 sonar \
184 spandsp \
185 spy \
186 ssml \
187 stress \
188 syslog \
189 theora \
190 tone_stream \
191 translate \
192 tts_commandline \
193 unimrcp \
194 valet_parking \
195 verto \
196 vmd \
197 voicemail \
198 voicemail_ivr \
199 xml_cdr \
200 xml_curl \
201 xml_ldap \
202 xml_rpc \
203 xml_scgi \
204 yaml \
205 yuv
206
207 include $(INCLUDE_DIR)/package.mk
208
209 define Package/$(PKG_NAME)/install/bin
210 $(INSTALL_DIR) $(1)$(FS_STABLE_BIN_DIR)
211 $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_STABLE_BIN_DIR)/$(2) \
212 $(1)$(FS_STABLE_BIN_DIR)
213 endef
214
215 define Package/$(PKG_NAME)/install/dir
216 if [ -d $(2) ]; then $(INSTALL_DIR) $(1); fi
217 for dir in $$$$(shell [ -d $(2) ] && cd $(2) && find -type d -print | sed 's|^./\?||'); \
218 do \
219 $(INSTALL_DIR) $(1)/$$$$$$$$dir; \
220 done
221 for file in $$$$(shell [ -d $(2) ] && cd $(2) && find -type f -print | sed 's|^./||'); \
222 do \
223 $(INSTALL_DATA) $(2)/$$$$$$$$file $(1)/$$$$$$$$file; \
224 done
225 endef
226
227 define Package/$(PKG_NAME)/install/lib
228 $(INSTALL_DIR) $(1)$(FS_STABLE_LIB_DIR)
229 $(CP) $(PKG_INSTALL_DIR)$(FS_STABLE_LIB_DIR)/$(2).so* \
230 $(1)$(FS_STABLE_LIB_DIR)
231 endef
232
233 define Package/$(PKG_NAME)/install/mod
234 $(INSTALL_DIR) $(1)$(FS_STABLE_MOD_DIR)
235 $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_STABLE_MOD_DIR)/mod_$(2).so \
236 $(1)$(FS_STABLE_MOD_DIR)
237 endef
238
239 define Package/$(PKG_NAME)/config
240 source "$(SOURCE)/Config.in"
241 endef
242
243 define Package/$(PKG_NAME)/Default
244 SUBMENU:=Telephony
245 SECTION:=net
246 CATEGORY:=Network
247 URL:=https://www.$(PRG_NAME).org
248 endef
249
250 define Package/$(PKG_NAME)
251 $(call Package/$(PKG_NAME)/Default)
252 TITLE:=Open source telephony platform, v$(PKG_VERSION)
253 MENU:=1
254 USERID:=$(PRG_NAME)=372:$(PRG_NAME)=372
255 DEPENDS:= \
256 +FS_STABLE_WITH_FREETYPE:libfreetype \
257 +FS_STABLE_WITH_LIBEDIT:libedit \
258 +FS_STABLE_WITH_ODBC:unixodbc \
259 +FS_STABLE_WITH_PGSQL:libpq \
260 +FS_STABLE_WITH_PNG:libpng \
261 +libcurl \
262 +libopenssl \
263 +libpcre \
264 +libpthread \
265 +librt \
266 +libspeex \
267 +libspeexdsp \
268 +libstdcpp \
269 +libsqlite3 \
270 +libuuid \
271 +zlib
272 CONFLICTS:=$(PRG_NAME)
273 endef
274
275 define Package/$(PKG_NAME)/description
276 FreeSWITCH is a scalable open source cross-platform telephony platform
277 designed to route and interconnect popular communication protocols
278 using audio, video, text or any other form of media.
279 endef
280
281 define Package/$(PKG_NAME)/conffiles
282 $(FS_STABLE_SYSCONF_DIR)/$(PRG_NAME)
283 $(FS_STABLE_SYSCONF_DIR)/default/$(PRG_NAME)
284 $(FS_STABLE_SYSCONF_DIR)/init.d/$(PRG_NAME)
285 endef
286
287 define Package/$(PKG_NAME)/install
288 $(call Package/$(PKG_NAME)/install/bin,$(1),$(PRG_NAME))
289 $(call Package/$(PKG_NAME)/install/lib,$(1),lib$(PRG_NAME))
290 $(INSTALL_DIR) $(1)$(FS_STABLE_TLS_DIR)
291 $(INSTALL_DIR) $(1)$(FS_STABLE_FONTS_DIR)
292 $(INSTALL_DIR) $(1)$(FS_STABLE_GRAMMAR_DIR)
293 $(INSTALL_DIR) $(1)$(FS_STABLE_HTDOCS_DIR)
294 $(INSTALL_DIR) $(1)$(FS_STABLE_IMAGES_DIR)
295 $(INSTALL_DIR) $(1)$(FS_STABLE_SCRIPTS_DIR)
296 $(INSTALL_DIR) $(1)$(FS_STABLE_SOUNDS_DIR)
297 $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/default
298 $(INSTALL_CONF) ./files/$(PRG_NAME).default \
299 $(1)$(FS_STABLE_SYSCONF_DIR)/default/$(PRG_NAME)
300 $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/init.d
301 $(INSTALL_BIN) ./files/$(PRG_NAME).init \
302 $(1)$(FS_STABLE_SYSCONF_DIR)/init.d/$(PRG_NAME)
303 ifeq ($(CONFIG_FS_STABLE_WITH_LIBEDIT),)
304 $(SED) '/^ #procd_append_param command -nc -nf$$$$/s/#//' \
305 $(1)$(FS_STABLE_SYSCONF_DIR)/init.d/$(PRG_NAME)
306 endif
307 endef
308
309 define Package/$(PKG_NAME)/postinst
310 #!/bin/sh
311 if [ -z "$${IPKG_INSTROOT}" ]; then
312 # Prevent autostart of $(PRG_NAME)
313 touch $(FS_STABLE_SYSCONF_DIR)/$(PRG_NAME)_disabled
314
315 echo
316 echo "o-------------------------------------------------------------------o"
317 echo "| FreeSWITCH note |"
318 echo "o-------------------------------------------------------------------o"
319 echo "| Edit /etc/default/freeswitch to change basic init configuration. |"
320 echo "o-------------------------------------------------------------=^_^=-o"
321 echo
322 fi
323 exit 0
324 endef
325
326 define Package/$(PKG_NAME)-misc-hotplug
327 $(call Package/$(PKG_NAME)/Default)
328 TITLE:=Hotplug script
329 DEPENDS:=$(PKG_NAME)
330 PKGARCH:=all
331 endef
332
333 define Package/$(PKG_NAME)-misc-hotplug/description
334 This package includes a hotplug script for FreeSWITCH.
335 endef
336
337 define Package/$(PKG_NAME)-misc-hotplug/install
338 $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/hotplug.d/iface
339 $(INSTALL_BIN) ./files/$(PRG_NAME).hotplug \
340 $(1)$(FS_STABLE_SYSCONF_DIR)/hotplug.d/iface/99-$(PRG_NAME)
341 endef
342
343 define Package/$(PKG_NAME)-misc-hotplug/postinst
344 #!/bin/sh
345 if [ -z "$${IPKG_INSTROOT}" ]; then
346 echo
347 echo "o-------------------------------------------------------------------o"
348 echo "| FreeSWITCH hotplug note |"
349 echo "o-------------------------------------------------------------------o"
350 echo "| See /etc/default/freeswitch for hotplug hints. |"
351 echo "o-------------------------------------------------------------=^_^=-o"
352 echo
353 fi
354 exit 0
355 endef
356
357 define Package/$(PKG_NAME)-misc-perl-esl
358 $(call Package/$(PKG_NAME)/Default)
359 TITLE:=Perl ESL
360 DEPENDS:=$(PKG_NAME) +PACKAGE_$(PKG_NAME)-misc-perl-esl:perl
361 endef
362
363 define Package/$(PKG_NAME)-misc-perl-esl/description
364 This package contains the Perl binding for FreeSWITCH's Event Socket
365 Library (ESL).
366 endef
367
368 define Package/$(PKG_NAME)-misc-perl-esl/install
369 $(INSTALL_DIR) $(1)$(PERL_SITELIB)/ESL
370 $(INSTALL_DATA) \
371 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.pm \
372 $(1)$(PERL_SITELIB)
373 $(INSTALL_BIN) \
374 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.so \
375 $(1)$(PERL_SITELIB)
376 $(INSTALL_DATA) \
377 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/Dispatch.pm \
378 $(1)$(PERL_SITELIB)/ESL
379 $(INSTALL_DATA) \
380 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/IVR.pm \
381 $(1)$(PERL_SITELIB)/ESL
382 endef
383
384 define Package/$(PKG_NAME)-misc-python-esl
385 $(call Package/$(PKG_NAME)/Default)
386 TITLE:=Python ESL
387 DEPENDS:=$(PKG_NAME) +PACKAGE_$(PKG_NAME)-misc-python-esl:python-light
388 endef
389
390 define Package/$(PKG_NAME)-misc-python-esl/description
391 This package contains the Python binding for FreeSWITCH's Event Socket
392 Library (ESL).
393 endef
394
395 define Package/$(PKG_NAME)-misc-python-esl/install
396 $(INSTALL_DIR) $(1)$(PYTHON_SITE_DIR)
397 $(INSTALL_DATA) \
398 $(PKG_INSTALL_DIR)$(PYTHON_SITE_DIR)/ESL.py \
399 $(1)$(PYTHON_SITE_DIR)
400 $(INSTALL_BIN) \
401 $(PKG_INSTALL_DIR)$(PYTHON_SITE_DIR)/_ESL.so \
402 $(1)$(PYTHON_SITE_DIR)
403 endef
404
405 define Package/$(PKG_NAME)-misc-timezones
406 $(call Package/$(PKG_NAME)/Default)
407 TITLE:=Timezones file
408 DEPENDS:=$(PKG_NAME)
409 PKGARCH:=all
410 endef
411
412 define Package/$(PKG_NAME)-misc-timezones/description
413 This package includes a timezones file for FreeSWITCH.
414 endef
415
416 define Package/$(PKG_NAME)-misc-timezones/install
417 $(INSTALL_DIR) $(1)$(FS_STABLE_TZ_DIR)
418 $(INSTALL_DATA) \
419 $(PKG_BUILD_DIR)/conf/vanilla/autoload_configs/timezones.conf.xml \
420 $(1)$(FS_STABLE_TZ_DIR)
421 endef
422
423 define Package/$(PKG_NAME)/Example
424 define Package/$(PKG_NAME)-example-$(1)
425 $(call Package/$(PKG_NAME)/Default)
426 TITLE:=Example configuration
427 DEPENDS:=$(PKG_NAME)
428 PKGARCH:=all
429 endef
430 define Package/$(PKG_NAME)-example-$(1)/description
431 This package does not install any configuration for FreeSWITCH into
432 /etc/freeswitch. The system administrator is completely responsible
433 for that directory. If you install one of the example configuration
434 packages, it will install the corresponding sample configuration to
435 /usr/share/freeswitch/examples where you can take a look at it.
436 endef
437 define Package/$(PKG_NAME)-example-$(1)/install
438 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_EXAMPLES_DIR)/$(1),$(PKG_BUILD_DIR)/conf/$(1))
439 endef
440 $$(eval $$(call BuildPackage,$(PKG_NAME)-example-$(1)))
441 endef
442
443 define Package/$(PKG_NAME)/Language
444 define Package/$(PKG_NAME)-lang-$(1)
445 $(call Package/$(PKG_NAME)/Default)
446 TITLE:=$(2) language files
447 DEPENDS:=$(PKG_NAME)
448 PKGARCH:=all
449 endef
450 define Package/$(PKG_NAME)-lang-$(1)/description
451 This package includes the $(2) language files for FreeSWITCH.
452 endef
453 define Package/$(PKG_NAME)-lang-$(1)/install
454 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_LANG_DIR)/$(1),$(PKG_BUILD_DIR)/conf/vanilla/lang/$(1))
455 endef
456 $$(eval $$(call BuildPackage,$(PKG_NAME)-lang-$(1)))
457 endef
458
459 # The next package generator is for miscellaneous files that only
460 # require being copied from PKG_INSTALL_DIR to the ipkg.
461 define Package/$(PKG_NAME)/Misc
462 define Package/$(PKG_NAME)-$(1)
463 $(call Package/$(PKG_NAME)/Default)
464 TITLE:=$(2)
465 DEPENDS:=$(PKG_NAME)
466 ifeq ($(6),y)
467 PKGARCH:=all
468 endif
469 endef
470 define Package/$(PKG_NAME)-$(1)/description
471 $(subst \n,$(newline),$(3))
472 endef
473 define Package/$(PKG_NAME)-$(1)/install
474 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(5),$(PKG_INSTALL_DIR)$(4))
475 ifeq ($(1),dev)
476 $(INSTALL_DIR) $$(1)$(FS_STABLE_PKGCONFIG_DIR)
477 $(INSTALL_DATA) \
478 $(PKG_INSTALL_DIR)$(FS_STABLE_PKGCONFIG_DIR)/freeswitch.pc \
479 $$(1)$(FS_STABLE_PKGCONFIG_DIR)
480 endif
481 endef
482 $$(eval $$(call BuildPackage,$(PKG_NAME)-$(1)))
483 endef
484
485 define Package/$(PKG_NAME)/Module
486 define Package/$(PKG_NAME)-mod-$(1)
487 $(call Package/$(PKG_NAME)/Default)
488 TITLE:=$(2) module
489 DEPENDS:=$(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-mod-$(1):%,$(4))
490 endef
491 define Package/$(PKG_NAME)-mod-$(1)/description
492 $(subst \n,$(newline),$(3))
493 endef
494 define Package/$(PKG_NAME)-mod-$(1)/install
495 $(call Package/$(PKG_NAME)/install/mod,$$(1),$(1))
496 ifeq ($(CONFIG_FS_STABLE_WITH_MODCONF),y)
497 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_EXAMPLES_DIR)/mod_$(1),$(PKG_BUILD_DIR)/src/mod/*/mod_$(1)/conf)
498 endif
499 ifeq ($(1),perl)
500 $(INSTALL_DIR) $$(1)$(PERL_SITELIB)/auto
501 $(INSTALL_DATA) \
502 $(PKG_INSTALL_DIR)$(FS_STABLE_PREFIX_DIR)/perl/$(PRG_NAME).pm \
503 $$(1)$(PERL_SITELIB)
504 $(INSTALL_BIN) \
505 $(PKG_INSTALL_DIR)$(FS_STABLE_PREFIX_DIR)/perl/$(PRG_NAME).so \
506 $$(1)$(PERL_SITELIB)/auto
507 endif
508 ifeq ($(1),python)
509 $(INSTALL_DIR) $$(1)$(PYTHON_SITE_DIR)
510 $(INSTALL_DATA) \
511 $(PKG_INSTALL_DIR)$(PYTHON_SITE_DIR)/$(PRG_NAME).py \
512 $$(1)$(PYTHON_SITE_DIR)
513 endif
514 endef
515 $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
516 endef
517
518 define Package/$(PKG_NAME)/Util
519 define Package/$(PKG_NAME)-util-$(1)
520 $(call Package/$(PKG_NAME)/Default)
521 TITLE:=$(2) utility
522 DEPENDS:=$(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-util-$(1):%,$(4))
523 ifeq ($(5),y)
524 PKGARCH:=all
525 endif
526 endef
527 define Package/$(PKG_NAME)-util-$(1)/description
528 $(subst \n,$(newline),$(3))
529 endef
530 define Package/$(PKG_NAME)-util-$(1)/install
531 $(call Package/$(PKG_NAME)/install/bin,$$(1),$(1))
532 endef
533 ifeq ($(1)$(CONFIG_FS_STABLE_WITH_LIBEDIT),fs_cli)
534 define Package/$(PKG_NAME)-util-$(1)/postinst
535 #!/bin/sh
536 if [ -z "$${IPKG_INSTROOT}" ]; then
537 echo
538 echo "o-------------------------------------------------------------------o"
539 echo "| fs_cli note |"
540 echo "o-------------------------------------------------------------------o"
541 echo "| Your FreeSWITCH was compiled without libedit support. Due to an |"
542 echo "| interop issue it's possible that when you try to exit fs_cli with |"
543 echo "| Ctrl-D, you'll see messages flashing by and have to kill fs_cli |"
544 echo "| manually. To avoid this you can either use Ctrl-C instead (fs_cli |"
545 echo "| needs to be started with '-i' for this to work; you could create |"
546 echo "| an appropriate alias in /etc/profile) or type /exit, /quit or |"
547 echo "| /bye. |"
548 echo "o-------------------------------------------------------------=^_^=-o"
549 echo
550 fi
551 exit 0
552 endef
553 endif
554 $$(eval $$(call BuildPackage,$(PKG_NAME)-util-$(1)))
555 endef
556
557 # don't want host-php
558 CONFIGURE_VARS+= \
559 ac_cv_prog_PHP=false \
560 ac_cv_have_php=no \
561 ac_cv_prog_PHP_CONFIG=false \
562 ac_cv_have_php_config=no
563
564 # The autoconf variables in this block are OK for both musl and glibc
565 CONFIGURE_VARS+= \
566 ac_cv_file__dev_ptmx=yes \
567 ac_cv_file__dev_urandom=yes \
568 ac_cv_file_dbd_apr_dbd_mysql_c=no \
569 ac_cv_free_null=yes \
570 ac_cv_func_mmap_fixed_mapped=yes \
571 ac_cv_func_pthread_rwlock_init=yes \
572 ac_cv_func_sem_open=yes \
573 ac_cv_have_working_memmove=yes \
574 ac_cv_negative_eai=yes \
575 ac_cv_o_nonblock_inherited=no \
576 ac_cv_struct_rlimit=yes \
577 apr_cv_epoll=yes \
578 apr_cv_gai_addrconfig=yes \
579 apr_cv_mutex_recursive=yes \
580 apr_cv_process_shared_works=yes \
581 apr_cv_pthreads_lib=-lpthread \
582 apr_cv_tcp_nodelay_with_cork=yes \
583 apr_cv_type_rwlock_t=yes
584
585 # Regarding apr_cv_mutex_robust_shared=no see
586 # http://www.openwall.com/lists/musl/2016/11/26/1
587 # _Don't_ remove quotes below!
588 ifeq ($(CONFIG_LIBC),"musl")
589 CONFIGURE_VARS+= \
590 apr_cv_mutex_robust_shared=no \
591 ac_cv_strerror_r_rc_int=yes
592 else
593 CONFIGURE_VARS+= \
594 apr_cv_mutex_robust_shared=yes
595 endif
596
597 # fs_cli
598 CONFIGURE_VARS+= \
599 disable_cc=yes
600
601 # Perl setup start
602 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-perl),)
603
604 FS_STABLE_PERL_FEED:=$(TOPDIR)/feeds/packages/lang/perl
605
606 FS_STABLE_PERL_LIBS:=$(shell grep "^libs=" \
607 $(FS_STABLE_PERL_FEED)/files/base.config | \
608 sed "s/^libs=//;s/'//g")
609
610 include $(FS_STABLE_PERL_FEED)/perlmod.mk
611
612 CONFIGURE_VARS+= \
613 ac_cv_lib_perl_perl_alloc=yes
614
615 CONFIGURE_VARS+= \
616 PERL="$(PERL_CMD)" \
617 PERL_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \
618 PERL_INC="-I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \
619 PERL_LDFLAGS="-fPIC -Wl,-rpath,$(PERL_SITELIB)/CORE -L$(STAGING_DIR)$(PERL_SITELIB)/CORE -lperl" \
620 PERL_LIBDIR="-L$(PERL_SITELIB)/CORE" \
621 PERL_LIBS="-lpthread $(FS_STABLE_PERL_LIBS) $(EXTRA_LIBDIRS:%=-L%) $(EXTRA_LIBS:%=-l%)" \
622 PERL_SITEDIR="$(PERL_SITELIB)"
623
624 else
625
626 CONFIGURE_VARS+= \
627 ac_cv_prog_PERL=false \
628 ac_cv_have_perl=no
629
630 endif
631 # Perl setup end
632
633 # Python setup start
634 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-python),)
635
636 $(call include_mk, python-version.mk)
637
638 PYTHON_SITE_DIR:=$(FS_STABLE_LIB_DIR)/python$(PYTHON_VERSION)/site-packages
639
640 CONFIGURE_VARS+= \
641 PYTHON_CFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION)" \
642 PYTHON_LDFLAGS="-lpython$(PYTHON_VERSION) -ldl -lpthread -lm -Xlinker -export-dynamic" \
643 PYTHON_LIB="python$(PYTHON_VERSION)" \
644 PYTHON_LIBDIR="$(FS_STABLE_LIB_DIR)" \
645 PYTHON_SITE_DIR="$(PYTHON_SITE_DIR)"
646
647 CONFIGURE_ARGS+= \
648 --with-python=$(STAGING_DIR_HOSTPKG)/bin/python$(PYTHON_VERSION)
649
650 else
651
652 CONFIGURE_ARGS+= \
653 --with-python=no
654
655 endif
656 # Python setup end
657
658 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-erlang_event),)
659 CONFIGURE_ARGS+= \
660 --with-erlang=no
661 endif
662
663 CONFIGURE_ARGS+= \
664 --build=$(GNU_HOST_NAME) \
665 --host=$(GNU_TARGET_NAME) \
666 --target=$(GNU_TARGET_NAME) \
667 --prefix=$(FS_STABLE_PREFIX_DIR) \
668 --bindir=$(FS_STABLE_BIN_DIR) \
669 --includedir=$(FS_STABLE_INCLUDES_DIR) \
670 --libdir=$(FS_STABLE_LIB_DIR) \
671 --srcdir=$(PKG_BUILD_DIR) \
672 --sysconfdir=$(FS_STABLE_SYSCONF_DIR) \
673 --disable-dependency-tracking \
674 --disable-static \
675 --disable-system-xmlrpc-c \
676 --enable-fhs \
677 --with-cachedir=/tmp/$(PRG_NAME)/cache \
678 --with-certsdir=$(FS_STABLE_TLS_DIR) \
679 --with-dbdir=/tmp/$(PRG_NAME)/db \
680 --with-fontsdir=$(FS_STABLE_FONTS_DIR) \
681 --with-grammardir=$(FS_STABLE_GRAMMAR_DIR) \
682 --with-htdocsdir=$(FS_STABLE_HTDOCS_DIR) \
683 --with-imagesdir=$(FS_STABLE_IMAGES_DIR) \
684 --with-logfiledir=/tmp/$(PRG_NAME)/log \
685 --with-modinstdir=$(FS_STABLE_MOD_DIR) \
686 --with-pkgconfigdir=$(FS_STABLE_PKGCONFIG_DIR) \
687 --with-recordingsdir=/tmp/$(PRG_NAME)/recordings \
688 --with-rundir=/var/run/$(PRG_NAME) \
689 --with-scriptdir=$(FS_STABLE_SCRIPTS_DIR) \
690 --with-soundsdir=$(FS_STABLE_SOUNDS_DIR) \
691 --with-storagedir=/tmp/$(PRG_NAME)/storage \
692 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_LIBEDIT,core-libedit-support) \
693 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ODBC,core-odbc-support) \
694 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_SRTP,srtp) \
695 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ZRTP,zrtp) \
696 $(if $(CONFIG_FS_STABLE_WITH_DEBUG),,--disable-debug) \
697 $(if $(CONFIG_FS_STABLE_WITH_FREETYPE),,--without-freetype) \
698 $(if $(CONFIG_FS_STABLE_WITH_LIBYUV),,--disable-libyuv) \
699 $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc-lib="$(STAGING_DIR)$(FS_STABLE_LIB_DIR)") \
700 $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc="$(STAGING_DIR)/usr") \
701 $(if $(CONFIG_FS_STABLE_WITH_PGSQL),--enable-core-pgsql-support,--without-pgsql) \
702 $(if $(CONFIG_FS_STABLE_WITH_PNG),,--without-png) \
703 $(if $(CONFIG_FS_STABLE_WITH_VPX),,--disable-libvpx)
704
705 # Need to update LDFLAGS for libs/unimrcp, otherwise it will try to link to a
706 # different apr/apr-util if found.
707 # FS_STABLE_ANCHOR: string in build/acmacros/apr.m4 that will be replaced
708 FS_STABLE_ANCHOR:=dnl Get build information from APR
709 FS_STABLE_APR_LIBS:=-L$(PKG_BUILD_DIR)/libs/apr -L$(PKG_BUILD_DIR)/libs/apr-util
710
711 # mod_event_zmq
712 ZEROMQ_FILE:=zeromq-2.1.9.tar.gz
713 ZEROMQ_HASH:=f3542f756687e622beef3a75c8e027fe2d95d4654350cbca4c070ffc58d9ace0
714 ZEROMQ_URL:=http://download.zeromq.org
715
716 # mod_pocketsphinx
717 POCKETSPHINX_FILE:=pocketsphinx-0.8.tar.gz
718 POCKETSPHINX_HASH:=874c4c083d91c8ff26a2aec250b689e537912ff728923c141c4dac48662cce7a
719 POCKETSPHINX_URL:=@SF/cmusphinx
720
721 SPHINXBASE_FILE:=sphinxbase-0.8.tar.gz
722 SPHINXBASE_HASH:=55708944872bab1015b8ae07b379bf463764f469163a8fd114cbb16c5e486ca8
723 SPHINXBASE_URL:=@SF/cmusphinx
724
725 SPHINXMODEL_FILE:=communicator_semi_6000_20080321.tar.gz
726 SPHINXMODEL_HASH:=dbb5e9fb85000a7cb97d6958a3ef8d77532dc55fc730ac6979705e8645cb0c18
727 SPHINXMODEL_URL:=https://files.freeswitch.org/downloads/libs
728
729 define Download/files
730 define Download/$(1)
731 FILE:=$(2)
732 URL:=$(3)
733 HASH:=$(4)
734 endef
735 $$(eval $$(call Download,$(1)))
736 endef
737
738 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event_zmq),)
739 $(eval $(call Download/files,zmq,$(ZEROMQ_FILE),$(ZEROMQ_URL),$(ZEROMQ_HASH)))
740 endif
741
742 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx)$(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),)
743 $(eval $(call Download/files,pocketsphinx,$(POCKETSPHINX_FILE),$(POCKETSPHINX_URL),$(POCKETSPHINX_HASH)))
744 $(eval $(call Download/files,sphinxbase,$(SPHINXBASE_FILE),$(SPHINXBASE_URL),$(SPHINXBASE_HASH)))
745 $(eval $(call Download/files,communicator,$(SPHINXMODEL_FILE),$(SPHINXMODEL_URL),$(SPHINXMODEL_HASH)))
746 endif
747
748 define Build/Prepare
749 $(call Build/Prepare/Default)
750
751 echo '#applications/mod_random' >> $(PKG_BUILD_DIR)/modules.conf
752 echo '#codecs/mod_yuv' >> $(PKG_BUILD_DIR)/modules.conf
753 echo '#event_handlers/mod_event_test' >> $(PKG_BUILD_DIR)/modules.conf
754 $(SED) '/^#/!s/^/#/' $(PKG_BUILD_DIR)/modules.conf
755 $(foreach m,$(FS_STABLE_MOD_AVAILABLE),
756 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-$(m)),
757 $(SED) '/mod_$(m)$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf))
758
759 $(SED) 's|$(FS_STABLE_ANCHOR)|APR_SETVAR(LDFLAGS,$(FS_STABLE_APR_LIBS) $(TARGET_LDFLAGS))|' \
760 $(PKG_BUILD_DIR)/libs/unimrcp/build/acmacros/apr.m4
761
762 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event_zmq),)
763 $(CP) $(DL_DIR)/$(ZEROMQ_FILE) $(PKG_BUILD_DIR)/libs
764 endif
765
766 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx)$(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),)
767 $(CP) $(DL_DIR)/$(POCKETSPHINX_FILE) $(PKG_BUILD_DIR)/libs
768 $(CP) $(DL_DIR)/$(SPHINXBASE_FILE) $(PKG_BUILD_DIR)/libs
769 $(CP) $(DL_DIR)/$(SPHINXMODEL_FILE) $(PKG_BUILD_DIR)/libs
770 endif
771
772 # Hack for misc-grammar - needs mod_pocketsphinx to provide grammar files
773 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),)
774 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx),)
775 $(SED) '/mod_pocketsphinx$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf
776 endif
777 endif
778
779 # Hack for mod_unimrcp - it has a build-time dep on mod_sofia
780 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-unimrcp),)
781 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-sofia),)
782 $(SED) '/mod_sofia$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf
783 endif
784 endif
785 endef
786
787 define Build/Configure
788 find $(PKG_BUILD_DIR) -name missing -type f -exec rm {} \;
789 cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./rebootstrap.sh
790 $(call Build/Configure/Default)
791 endef
792
793 define Build/Compile
794 $(call Build/Compile/Default)
795 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl),)
796 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl perlmod)
797 endif
798 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl),)
799 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl pymod)
800 endif
801 endef
802
803 define Build/Install
804 $(call Build/Install/Default)
805 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl),)
806 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl DESTDIR=$(PKG_INSTALL_DIR) perlmod-install)
807 endif
808 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl),)
809 $(call Build/Install/Default,-C $(PKG_BUILD_DIR)/libs/esl pymod-install)
810 endif
811 endef
812
813 $(eval $(call BuildPackage,$(PKG_NAME)))
814 $(eval $(call BuildPackage,$(PKG_NAME)-misc-hotplug))
815 $(eval $(call BuildPackage,$(PKG_NAME)-misc-perl-esl))
816 $(eval $(call BuildPackage,$(PKG_NAME)-misc-python-esl))
817 $(eval $(call BuildPackage,$(PKG_NAME)-misc-timezones))
818
819 ################################
820 # FreeSWITCH example configs
821 # Params:
822 # 1 - Package subname
823 ################################
824
825 $(eval $(call Package/$(PKG_NAME)/Example,curl))
826 $(eval $(call Package/$(PKG_NAME)/Example,insideout))
827 $(eval $(call Package/$(PKG_NAME)/Example,minimal))
828 $(eval $(call Package/$(PKG_NAME)/Example,rayo))
829 $(eval $(call Package/$(PKG_NAME)/Example,sbc))
830 $(eval $(call Package/$(PKG_NAME)/Example,softphone))
831 $(eval $(call Package/$(PKG_NAME)/Example,testing))
832 $(eval $(call Package/$(PKG_NAME)/Example,vanilla))
833
834 ################################
835 # FreeSWITCH language files
836 # Params:
837 # 1 - Language code
838 # 2 - Language
839 ################################
840
841 $(eval $(call Package/$(PKG_NAME)/Language,de,German))
842 $(eval $(call Package/$(PKG_NAME)/Language,en,English))
843 $(eval $(call Package/$(PKG_NAME)/Language,es,Spanish))
844 $(eval $(call Package/$(PKG_NAME)/Language,fr,French))
845 $(eval $(call Package/$(PKG_NAME)/Language,he,Hebrew))
846 $(eval $(call Package/$(PKG_NAME)/Language,pt,Portuguese))
847 $(eval $(call Package/$(PKG_NAME)/Language,ru,Russian))
848 $(eval $(call Package/$(PKG_NAME)/Language,sv,Swedish))
849
850 ################################
851 # FreeSWITCH misc packages
852 # Params:
853 # 1 - Package subname
854 # 2 - Package title
855 # 3 - Package description
856 # 4 - Source dir relative to
857 # PKG_INSTALL_DIR
858 # 5 - Dest dir relative to ipkg
859 # 6 - Arch independent files
860 ################################
861
862 $(eval $(call Package/$(PKG_NAME)/Misc,dev,Development files,This package includes the FreeSWITCH headers and pkgconfig file.,$(FS_STABLE_INCLUDES_DIR),$(FS_STABLE_INCLUDES_DIR),n))
863 $(eval $(call Package/$(PKG_NAME)/Misc,misc-fonts,Fonts,This package includes the fonts bundled with FreeSWITCH.,$(FS_STABLE_FONTS_DIR),$(FS_STABLE_FONTS_DIR),y))
864 $(eval $(call Package/$(PKG_NAME)/Misc,misc-grammar,Grammar,This package contains grammar files. mod_pocketsphinx would be a\npotential user.,$(FS_STABLE_GRAMMAR_DIR),$(FS_STABLE_GRAMMAR_DIR),y))
865 $(eval $(call Package/$(PKG_NAME)/Misc,misc-images,Images,This package includes the images bundled with FreeSWITCH.,$(FS_STABLE_IMAGES_DIR),$(FS_STABLE_IMAGES_DIR),y))
866
867 ################################
868 # FreeSWITCH modules
869 # Params:
870 # 1 - Package subname
871 # 2 - Package title
872 # 3 - Module description
873 # 4 - Module dependencies
874 ################################
875
876 $(eval $(call Package/$(PKG_NAME)/Module,abstraction,API abstraction,This module provides a way to create new API functions via regex\nrewriting.,))
877 $(eval $(call Package/$(PKG_NAME)/Module,alsa,ALSA endpoint,ALSA endpoint module.,+alsa-lib))
878 $(eval $(call Package/$(PKG_NAME)/Module,amr,AMR passthrough,Passthrough AMR codec support.,))
879 $(eval $(call Package/$(PKG_NAME)/Module,amrwb,AMR wideband passthrough,Passthrough AMR wideband codec support.,))
880 $(eval $(call Package/$(PKG_NAME)/Module,av,AV,Video codec and format support via FFmpeg.,+libffmpeg-full @BROKEN)) # libffmpeg-full doesn't provide avresample
881 $(eval $(call Package/$(PKG_NAME)/Module,avmd,Voicemail detection,This module attempts to determine when a voicemail system has answered\nthe call.,))
882 $(eval $(call Package/$(PKG_NAME)/Module,b64,Base64,Transfers data Base64 encoded.,))
883 $(eval $(call Package/$(PKG_NAME)/Module,basic,BASIC,BASIC module for FreeSWITCH.,))
884 $(eval $(call Package/$(PKG_NAME)/Module,bert,BERT,Line testing tool.,))
885 $(eval $(call Package/$(PKG_NAME)/Module,blacklist,Blacklist helper,This module provides tools to blacklist callers.,))
886 $(eval $(call Package/$(PKG_NAME)/Module,callcenter,Call center,This module implements Automated Call Distribution queues.,))
887 $(eval $(call Package/$(PKG_NAME)/Module,cdr_csv,CSV CDR,CSV Call Detail Record handler.,))
888 $(eval $(call Package/$(PKG_NAME)/Module,cdr_mongodb,MongoDB CDR,MongoDB Call Detail Record handler.,))
889 $(eval $(call Package/$(PKG_NAME)/Module,cdr_pg_csv,PostgreSQL CDR,PostgreSQL Call Detail Record handler.,@FS_STABLE_WITH_PGSQL))
890 $(eval $(call Package/$(PKG_NAME)/Module,cdr_sqlite,SQLite CDR,SQLite Call Detail Record handler.,))
891 $(eval $(call Package/$(PKG_NAME)/Module,cidlookup,Caller ID lookup,This module provides an API for querying caller ID name and location\ndata.,))
892 $(eval $(call Package/$(PKG_NAME)/Module,clearmode,Clearmode,Clearmode codec passthrough support.,))
893 $(eval $(call Package/$(PKG_NAME)/Module,cluechoo,Clue Choo,This demo module renders a Clue Choo train on the FreeSWITCH console.,+libncurses))
894 $(eval $(call Package/$(PKG_NAME)/Module,commands,Commands,This module provides miscellaneous API commands.,))
895 $(eval $(call Package/$(PKG_NAME)/Module,conference,Conference,This module provides multi-party conferencing.,))
896 $(eval $(call Package/$(PKG_NAME)/Module,console,Console logger,Allows control over what messages get logged to the console. When\nFreeSWITCH is compiled without libedit support - this is not the\ndefault - mod_console has no effect because the init script starts\nFreeSWITCH with the console disabled to work around an\ninteroperability issue that causes high CPU load.,))
897 $(eval $(call Package/$(PKG_NAME)/Module,curl,cURL,This module provides an API for making HTTP requests with cURL.,))
898 $(eval $(call Package/$(PKG_NAME)/Module,cv,OpenCV,This module exposes opencv actions to enable computer vision actions.,+opencv @BROKEN)) # opencv package too stripped-down
899 $(eval $(call Package/$(PKG_NAME)/Module,dahdi_codec,DAHDI codec,DAHDI codec module.,))
900 $(eval $(call Package/$(PKG_NAME)/Module,db,DB,This module implements a simple db API with group support. Also can be\nused as a limit db backend.,))
901 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_asterisk,Asterisk dialplan,Asterisk extensions.conf style dialplan parser.,))
902 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_directory,Directory dialplan,Directory dialplan support.,))
903 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_xml,XML dialplan,Standard FreeSWITCH XML dialplan support.,))
904 $(eval $(call Package/$(PKG_NAME)/Module,dingaling,Generic XMPP,Allows FreeSWITCH to be used as a client for XMPP Servers.,))
905 $(eval $(call Package/$(PKG_NAME)/Module,directory,Dial-by-name directory,This module implements a dial-by-name directory IVR.,))
906 $(eval $(call Package/$(PKG_NAME)/Module,distributor,Load distributor,This module implements a mechanism for performing load balancing.,))
907 $(eval $(call Package/$(PKG_NAME)/Module,dptools,Dialplan tools,This module implements basic dialplan tools.,))
908 $(eval $(call Package/$(PKG_NAME)/Module,easyroute,DID routing,This module does destination lookup based on DID.,))
909 $(eval $(call Package/$(PKG_NAME)/Module,enum,ENUM routing,This module implements ENUM support.,+libldns))
910 $(eval $(call Package/$(PKG_NAME)/Module,erlang_event,Erlang event,Erlang event module.,))
911 $(eval $(call Package/$(PKG_NAME)/Module,esf,Multicast,This module adds multi-cast support.,))
912 $(eval $(call Package/$(PKG_NAME)/Module,esl,Single ESL,This module adds an API for generating one-off ESL requests.,))
913 $(eval $(call Package/$(PKG_NAME)/Module,event_multicast,Multicast Event,Multicast Event System for FreeSWITCH.,))
914 $(eval $(call Package/$(PKG_NAME)/Module,event_socket,Event socket,Sends events via a single socket. Needed for fs_cli.,))
915 $(eval $(call Package/$(PKG_NAME)/Module,event_test,Event test,Event demo module.,))
916 $(eval $(call Package/$(PKG_NAME)/Module,event_zmq,ZMQ event,ZMQ event module.,))
917 $(eval $(call Package/$(PKG_NAME)/Module,expr,Expr,This module adds expr support for expression evaluation.,))
918 $(eval $(call Package/$(PKG_NAME)/Module,fifo,FIFO,This module adds a first-in first-out queue system.,))
919 $(eval $(call Package/$(PKG_NAME)/Module,format_cdr,Multiformat CDR,A superset of mod_json_cdr and mod_xml_cdr.,))
920 $(eval $(call Package/$(PKG_NAME)/Module,fsk,FSK,This module adds frequency-shift keying support which can be used to\nsend and receive caller ID.,))
921 $(eval $(call Package/$(PKG_NAME)/Module,fsv,FSV,This module provides dialplan applications for recording and playing\nvideos.,))
922 $(eval $(call Package/$(PKG_NAME)/Module,g723_1,G.723.1 passthrough,G.723.1 codec passthrough.,))
923 $(eval $(call Package/$(PKG_NAME)/Module,g729,G.729 passthrough,G.729 codec passthrough.,))
924 $(eval $(call Package/$(PKG_NAME)/Module,graylog2,Graylog2 logger,GELF logger for Graylog2 and Logstash.,))
925 $(eval $(call Package/$(PKG_NAME)/Module,h26x,H.26x passthrough,H.26x video codec passthrough.,))
926 $(eval $(call Package/$(PKG_NAME)/Module,hash,Hash,This module provides a key-value in-memory datastore. Usable as a\nlimit backend.,))
927 $(eval $(call Package/$(PKG_NAME)/Module,hiredis,Redis client,This module provides a mechanism to use Redis as a datastore.,+libhiredis))
928 $(eval $(call Package/$(PKG_NAME)/Module,httapi,HT-TAPI,This module provides an API for controlling the switch by responding\nto HTTP requests.,))
929 $(eval $(call Package/$(PKG_NAME)/Module,http_cache,HTTP GET with caching,This module provides an API for making HTTP GET requests where the\nresult is cached.,))
930 $(eval $(call Package/$(PKG_NAME)/Module,isac,iSAC,iSAC codec support.,@arm||i386||mips||mips64||mips64el||mipsel||x86_64))
931 $(eval $(call Package/$(PKG_NAME)/Module,json_cdr,JSON CDR,JSON-based Call Detail Record handler.,))
932 $(eval $(call Package/$(PKG_NAME)/Module,kazoo,Kazoo,Kazoo module for FreeSWITCH.,))
933 $(eval $(call Package/$(PKG_NAME)/Module,lcr,LCR,This module adds a facility for least-cost routing.,))
934 $(eval $(call Package/$(PKG_NAME)/Module,ldap,LDAP,LDAP module for FreeSWITCH.,+libopenldap))
935 $(eval $(call Package/$(PKG_NAME)/Module,local_stream,Local stream,Connects multiple channels to a looped stream.,))
936 $(eval $(call Package/$(PKG_NAME)/Module,logfile,File logger,Logs FreeSWITCH output to a file.,))
937 $(eval $(call Package/$(PKG_NAME)/Module,loopback,Loopback,A loopback channel driver.,))
938 $(eval $(call Package/$(PKG_NAME)/Module,lua,Lua,Lua language interface for FreeSWITCH.,+liblua))
939 $(eval $(call Package/$(PKG_NAME)/Module,mp4v,MP4 video passthrough,MP4 video passthrough..,))
940 $(eval $(call Package/$(PKG_NAME)/Module,native_file,Native file,Plays files that are already encoded in the right format.,))
941 $(eval $(call Package/$(PKG_NAME)/Module,nibblebill,Nibblebill,This module allows for real-time accounting of a cash balance and\nusing that information for call routing.,))
942 $(eval $(call Package/$(PKG_NAME)/Module,odbc_cdr,ODBC CDR,ODBC Call Detail Record handler.,))
943 $(eval $(call Package/$(PKG_NAME)/Module,opus,Opus,Opus codec support.,+libopus))
944 $(eval $(call Package/$(PKG_NAME)/Module,oreka,Oreka,This module provides media recording with the Oreka cross-platform\naudio stream recording and retrieval system.,))
945 $(eval $(call Package/$(PKG_NAME)/Module,perl,Perl,This package contains mod_perl for FreeSWITCH.,@PERL_THREADS PACKAGE_$(PKG_NAME)-mod-perl:perl +libdb47 +libgdbm))
946 $(eval $(call Package/$(PKG_NAME)/Module,png,PNG,Allows playback of video using PNG files.,))
947 $(eval $(call Package/$(PKG_NAME)/Module,pocketsphinx,Pocketsphinx,This module allows speech recognition. You might want to install\n$(PKG_NAME)-misc-grammar as well.,+libsamplerate)) # When libsamplerate is found it'll be linked against, there is no switch to turn it off
948 $(eval $(call Package/$(PKG_NAME)/Module,posix_timer,POSIX timer,Add POSIX timer support.,))
949 $(eval $(call Package/$(PKG_NAME)/Module,prefix,Prefix match,This module provides a data store with fast lookups by the longest\nprefix match rule.,))
950 $(eval $(call Package/$(PKG_NAME)/Module,python,Python,Python support module.,+python-light))
951 $(eval $(call Package/$(PKG_NAME)/Module,random,Entropy,This module extracts entropy from FreeSWITCH and feeds it into\n/dev/random.,))
952 $(eval $(call Package/$(PKG_NAME)/Module,rayo,Rayo,Rayo/XMPP 3PCC server for FreeSWITCH.,+$(PKG_NAME)-mod-ssml))
953 $(eval $(call Package/$(PKG_NAME)/Module,redis,Redis limit backend,This module provides a mechanism to use Redis as a limit backend data\nstore.,))
954 $(eval $(call Package/$(PKG_NAME)/Module,rss,RSS,Parses and reads XML based RSS feeds and reads the entries aloud via a TTS engine.,))
955 $(eval $(call Package/$(PKG_NAME)/Module,rtc,Media streaming,Media streaming as used by WebRTC and mod_verto.,))
956 $(eval $(call Package/$(PKG_NAME)/Module,rtmp,RTMP endpoint,RTMP endpoint support. Allows FreeSWITCH to be used from RTMP clients.,))
957 $(eval $(call Package/$(PKG_NAME)/Module,say_de,German Say,Uses prerecorded sounds to read or say various things.,))
958 $(eval $(call Package/$(PKG_NAME)/Module,say_en,English Say,Uses prerecorded sounds to read or say various things.,))
959 $(eval $(call Package/$(PKG_NAME)/Module,say_es,Spanish Say,Uses prerecorded sounds to read or say various things.,))
960 $(eval $(call Package/$(PKG_NAME)/Module,say_es_ar,Argentinian Spanish Say,Uses prerecorded sounds to read or say various things.,))
961 $(eval $(call Package/$(PKG_NAME)/Module,say_fa,Persian Say,Uses prerecorded sounds to read or say various things.,))
962 $(eval $(call Package/$(PKG_NAME)/Module,say_fr,French Say,Uses prerecorded sounds to read or say various things.,))
963 $(eval $(call Package/$(PKG_NAME)/Module,say_he,Hebrew Say,Uses prerecorded sounds to read or say various things.,))
964 $(eval $(call Package/$(PKG_NAME)/Module,say_hr,Croatian Say,Uses prerecorded sounds to read or say various things.,))
965 $(eval $(call Package/$(PKG_NAME)/Module,say_hu,Hungarian Say,Uses prerecorded sounds to read or say various things.,))
966 $(eval $(call Package/$(PKG_NAME)/Module,say_it,Italian Say,Uses prerecorded sounds to read or say various things.,))
967 $(eval $(call Package/$(PKG_NAME)/Module,say_ja,Japanese Say,Uses prerecorded sounds to read or say various things.,))
968 $(eval $(call Package/$(PKG_NAME)/Module,say_nl,Dutch Say,Uses prerecorded sounds to read or say various things.,))
969 $(eval $(call Package/$(PKG_NAME)/Module,say_pl,Polish Say,Uses prerecorded sounds to read or say various things.,))
970 $(eval $(call Package/$(PKG_NAME)/Module,say_pt,Portuguese Say,Uses prerecorded sounds to read or say various things.,))
971 $(eval $(call Package/$(PKG_NAME)/Module,say_ru,Russian Say,Uses prerecorded sounds to read or say various things.,))
972 $(eval $(call Package/$(PKG_NAME)/Module,say_sv,Swedish Say,Uses prerecorded sounds to read or say various things.,))
973 $(eval $(call Package/$(PKG_NAME)/Module,say_th,Thai Say,Uses prerecorded sounds to read or say various things.,))
974 $(eval $(call Package/$(PKG_NAME)/Module,say_zh,Chinese Say,Uses prerecorded sounds to read or say various things.,))
975 $(eval $(call Package/$(PKG_NAME)/Module,shell_stream,Shell stream,Allows to stream audio from an arbitrary shell command.,))
976 $(eval $(call Package/$(PKG_NAME)/Module,shout,Shout,Allows to stream audio from MP3s or Shoutcast streams.,+lame-lib +libmpg123 +libshout))
977 $(eval $(call Package/$(PKG_NAME)/Module,skinny,Skinny,Skinny Call Control Protocol endpoint support.,))
978 $(eval $(call Package/$(PKG_NAME)/Module,sms,SMS,This module provides an abstract facility for interfacing with SMS\nsystems.,))
979 $(eval $(call Package/$(PKG_NAME)/Module,snapshot,Snapshot,This module can record a sliding window of audio and take snapshots\nto disk.,))
980 $(eval $(call Package/$(PKG_NAME)/Module,sndfile,Soundfile,Adds sound format support via libsndfile.,+libsndfile))
981 $(eval $(call Package/$(PKG_NAME)/Module,snmp,SNMP,An SNMP stats reporter.,+libnetsnmp))
982 $(eval $(call Package/$(PKG_NAME)/Module,snom,SNOM,This module implements features specific to SNOM phones.,))
983 $(eval $(call Package/$(PKG_NAME)/Module,sofia,Sofia SIP,SIP module.,))
984 $(eval $(call Package/$(PKG_NAME)/Module,sonar,Sonar,This module measures the latency on an audio link by sending audible\naudio sonar pings.,))
985 $(eval $(call Package/$(PKG_NAME)/Module,spandsp,SpanDSP,This module implements SpanDSP fax. It includes DSP and codec\nfunctionality.,+libjpeg +liblzma))
986 $(eval $(call Package/$(PKG_NAME)/Module,spy,User Spy,This module adds the ability to monitor the audio of a channel.,))
987 $(eval $(call Package/$(PKG_NAME)/Module,ssml,SSML,mod_ssml is a FreeSWITCH module that renders SSML into audio. This\nmodule requires a text-to-speech module for speech synthesis.,))
988 $(eval $(call Package/$(PKG_NAME)/Module,stress,Stress,This module attempts to detect voice stress on an audio channel.,))
989 $(eval $(call Package/$(PKG_NAME)/Module,syslog,Syslog logger,Logs FreeSWITCH output to the syslog.,))
990 $(eval $(call Package/$(PKG_NAME)/Module,theora,Theora passthrough,Theora video codec passthrough.,))
991 $(eval $(call Package/$(PKG_NAME)/Module,tone_stream,Tone stream,Tone generation stream.,))
992 $(eval $(call Package/$(PKG_NAME)/Module,translate,Number translation,This module implements number translation.,))
993 $(eval $(call Package/$(PKG_NAME)/Module,tts_commandline,TTS command-line,Run a command-line and play the output file.,))
994 $(eval $(call Package/$(PKG_NAME)/Module,unimrcp,UniMRCP,Allows communication with Media Resource Control Protocol servers.,))
995 $(eval $(call Package/$(PKG_NAME)/Module,valet_parking,Valet parking,This module implements the valet call parking strategy.,))
996 $(eval $(call Package/$(PKG_NAME)/Module,verto,Verto,Verto signaling protocol.,))
997 $(eval $(call Package/$(PKG_NAME)/Module,vmd,Voicemail detection,This module detects voicemail beeps.,))
998 $(eval $(call Package/$(PKG_NAME)/Module,voicemail,Voicemail,This module provides a voicemail system.,))
999 $(eval $(call Package/$(PKG_NAME)/Module,voicemail_ivr,Voicemail IVR,This module provides an extensible voicemail IVR system.,))
1000 $(eval $(call Package/$(PKG_NAME)/Module,xml_cdr,XML CDR,XML Call Detail Record handler.,))
1001 $(eval $(call Package/$(PKG_NAME)/Module,xml_curl,XML cURL,Provides an XML cURL interfaces to pull dynamic XML configuration for\nFreeSWITCH over HTTP.,))
1002 $(eval $(call Package/$(PKG_NAME)/Module,xml_ldap,XML LDAP,LDAP XML gateway.,+libopenldap))
1003 $(eval $(call Package/$(PKG_NAME)/Module,xml_rpc,XML RPC,Allows using the webapi to control FreeSWITCH.,))
1004 $(eval $(call Package/$(PKG_NAME)/Module,xml_scgi,XML SCGI,SCGI XML Gateway.,))
1005 $(eval $(call Package/$(PKG_NAME)/Module,yaml,YAML,YAML language module.,+libyaml))
1006 $(eval $(call Package/$(PKG_NAME)/Module,yuv,Raw YUV,Raw YUV I420 video codec support.,@FS_STABLE_WITH_LIBYUV))
1007
1008 ################################
1009 # FreeSWITCH utilities
1010 # Params:
1011 # 1 - Package subname
1012 # 2 - Package title
1013 # 3 - Utility description
1014 # 4 - Utility dependencies
1015 # 5 - Utility is a script (y/n)
1016 ################################
1017
1018 $(eval $(call Package/$(PKG_NAME)/Util,fs_cli,CLI,The fs_cli program is a Command-Line Interface that allows a user to\nconnect to a FreeSWITCH instance running on the local or a remote\nsystem.,,n))
1019 $(eval $(call Package/$(PKG_NAME)/Util,fs_encode,Sound file conversion,Format conversion of sound files so the result can be used by\nmod_native_file.,+$(PKG_NAME)-mod-native_file +$(PKG_NAME)-mod-sndfile +$(PKG_NAME)-mod-spandsp,n))
1020 $(eval $(call Package/$(PKG_NAME)/Util,fs_ivrd,IVR daemon,The FreeSWITCH IVR daemon is an abstraction layer that sits on top of\nthe ESL. The basic idea is that the ivrd will allow the user to have\na STDIN/STDOUT interface for simple call control.,,n))
1021 $(eval $(call Package/$(PKG_NAME)/Util,gentls_cert,TLS certificate,Can be used to create TLS certificates and setup CAs.,+openssl-util,y))
1022 $(eval $(call Package/$(PKG_NAME)/Util,tone2wav,Sound file generation,Generates a sound file from a teletone script. The output can be in\nany format that is supported by libsndfile.,+$(PKG_NAME)-mod-sndfile,n))