Merge pull request #232 from micmac1/gsmopen
[feed/telephony.git] / net / freeswitch-stable / Makefile
1 #
2 # Copyright (C) 2017 - 2018 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.19
13 PKG_RELEASE:=3
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:=e8d271a0d876ba4cca551682af0a4f5047bfd79438fcebdcc17d00711c04a8ff
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 libjpeg \
25 perl/host \
26 python/host
27
28 # With mod_ssml and mod_rayo enabled the parallel compiles always failed
29 #PKG_BUILD_PARALLEL:=1
30 PKG_INSTALL:=1
31
32 PKG_LICENSE:= \
33 AGPL-3.0 \
34 Apache-2.0 \
35 BSD-2-Clause \
36 BSD-3-Clause \
37 BSD-4-Clause \
38 BSD-like \
39 Beerware \
40 GPL-1.0+ \
41 GPL-2.0 \
42 GPL-2.0+ \
43 GPL-3.0 \
44 ISC \
45 LGPL-2.0+ \
46 LGPL-2.1 \
47 LGPL-2.1+ \
48 MIT/X11 (BSD like) \
49 MPL-1.1 \
50 OpenLDAP \
51 RSA-MD \
52 zlib-acknowledgement
53
54 PKG_LICENSE_FILES:=debian/copyright
55
56 FS_STABLE_DATA_DIR:=/usr/share/$(PRG_NAME)
57
58 FS_STABLE_BIN_DIR:=/usr/bin
59 FS_STABLE_EXAMPLES_DIR:=$(FS_STABLE_DATA_DIR)/examples
60 FS_STABLE_FONTS_DIR:=$(FS_STABLE_DATA_DIR)/fonts
61 FS_STABLE_GRAMMAR_DIR:=$(FS_STABLE_DATA_DIR)/grammar
62 FS_STABLE_HTDOCS_DIR:=$(FS_STABLE_DATA_DIR)/htdocs
63 FS_STABLE_IMAGES_DIR:=$(FS_STABLE_DATA_DIR)/images
64 FS_STABLE_INCLUDES_DIR:=/usr/include/$(PRG_NAME)
65 FS_STABLE_LANG_DIR:=$(FS_STABLE_DATA_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_DATA_DIR)/scripts
70 FS_STABLE_SOUNDS_DIR:=$(FS_STABLE_DATA_DIR)/sounds
71 FS_STABLE_SYSCONF_DIR:=/etc
72 FS_STABLE_TLS_DIR:=$(FS_STABLE_SYSCONF_DIR)/$(PRG_NAME)/tls
73 FS_STABLE_TZ_DIR:=$(FS_STABLE_DATA_DIR)/tz
74
75 FS_STABLE_FTMOD_AVAILABLE:= \
76 analog \
77 analog_em \
78 libpri \
79 pritap \
80 skel \
81 zt
82
83 # Maintain a list of all non-module packages so they can be added to
84 # PKG_CONFIG_DEPENDS.
85 FS_STABLE_MISC_AVAILABLE:= \
86 example-curl \
87 example-insideout \
88 example-minimal \
89 example-rayo \
90 example-sbc \
91 example-softphone \
92 example-testing \
93 example-vanilla \
94 lang-de \
95 lang-en \
96 lang-es \
97 lang-fr \
98 lang-he \
99 lang-pt \
100 lang-ru \
101 lang-sv \
102 misc-fonts \
103 misc-grammar \
104 misc-hotplug \
105 misc-images \
106 misc-perl-esl \
107 misc-python-esl \
108 misc-timezones \
109 util-fs_cli \
110 util-fs_encode \
111 util-fs_ivrd \
112 util-gentls_cert \
113 util-tone2wav
114
115 FS_STABLE_MOD_AVAILABLE:= \
116 abstraction \
117 alsa \
118 amr \
119 amrwb \
120 av \
121 avmd \
122 b64 \
123 basic \
124 bert \
125 blacklist \
126 callcenter \
127 cdr_csv \
128 cdr_mongodb \
129 cdr_pg_csv \
130 cdr_sqlite \
131 cidlookup \
132 clearmode \
133 cluechoo \
134 commands \
135 conference \
136 console \
137 curl \
138 cv \
139 dahdi_codec \
140 db \
141 dialplan_asterisk \
142 dialplan_directory \
143 dialplan_xml \
144 dingaling \
145 directory \
146 distributor \
147 dptools \
148 easyroute \
149 enum \
150 erlang_event \
151 esf \
152 esl \
153 event_multicast \
154 event_socket \
155 event_test \
156 event_zmq \
157 expr \
158 fifo \
159 format_cdr \
160 freetdm \
161 fsk \
162 fsv \
163 g723_1 \
164 g729 \
165 graylog2 \
166 gsmopen \
167 h26x \
168 hash \
169 hiredis \
170 httapi \
171 http_cache \
172 isac \
173 json_cdr \
174 kazoo \
175 lcr \
176 ldap \
177 local_stream \
178 logfile \
179 loopback \
180 lua \
181 mp4v \
182 native_file \
183 nibblebill \
184 odbc_cdr \
185 opus \
186 oreka \
187 perl \
188 png \
189 pocketsphinx \
190 portaudio \
191 portaudio_stream \
192 posix_timer \
193 prefix \
194 python \
195 radius_cdr \
196 random \
197 rayo \
198 redis \
199 rss \
200 rtc \
201 rtmp \
202 say_de \
203 say_en \
204 say_es \
205 say_es_ar \
206 say_fa \
207 say_fr \
208 say_he \
209 say_hr \
210 say_hu \
211 say_it \
212 say_ja \
213 say_nl \
214 say_pl \
215 say_pt \
216 say_ru \
217 say_sv \
218 say_th \
219 say_zh \
220 shell_stream \
221 shout \
222 skinny \
223 sms \
224 snapshot \
225 sndfile \
226 snmp \
227 snom \
228 sofia \
229 sonar \
230 spandsp \
231 spy \
232 ssml \
233 stress \
234 syslog \
235 theora \
236 tone_stream \
237 translate \
238 tts_commandline \
239 unimrcp \
240 v8 \
241 valet_parking \
242 verto \
243 vmd \
244 voicemail \
245 voicemail_ivr \
246 xml_cdr \
247 xml_curl \
248 xml_ldap \
249 xml_rpc \
250 xml_scgi \
251 yaml \
252 yuv
253
254 LIBFTDM:=libfreetdm
255
256 PKG_CONFIG_DEPENDS:= \
257 $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-%,$(FS_STABLE_MISC_AVAILABLE)) \
258 $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-ftmod-%,$(FS_STABLE_FTMOD_AVAILABLE)) \
259 $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-mod-%,$(FS_STABLE_MOD_AVAILABLE)) \
260 CONFIG_FS_STABLE_WITH_DEBUG \
261 CONFIG_FS_STABLE_WITH_FREETYPE \
262 CONFIG_FS_STABLE_WITH_LIBYUV \
263 CONFIG_FS_STABLE_WITH_MODCONF \
264 CONFIG_FS_STABLE_WITH_ODBC \
265 CONFIG_FS_STABLE_WITH_PGSQL \
266 CONFIG_FS_STABLE_WITH_PNG \
267 CONFIG_FS_STABLE_WITH_SRTP \
268 CONFIG_FS_STABLE_WITH_V8 \
269 CONFIG_FS_STABLE_WITH_V8_SNAPSHOT \
270 CONFIG_FS_STABLE_WITH_VPX \
271 CONFIG_FS_STABLE_WITH_ZRTP \
272 CONFIG_LIBC \
273 CONFIG_PACKAGE_$(LIBFTDM) \
274 CONFIG_SOFT_FLOAT
275
276 include $(INCLUDE_DIR)/package.mk
277
278 FS_STABLE_PERL_FEED:=$(TOPDIR)/feeds/packages/lang/perl
279
280 $(call include_mk, python-host.mk)
281 include $(FS_STABLE_PERL_FEED)/perlmod.mk
282
283 FS_STABLE_PERL_LIBS:=$(shell grep "^libs=" \
284 $(FS_STABLE_PERL_FEED)/files/base.config | \
285 sed "s/^libs=//;s/'//g")
286
287 FS_STABLE_PYTHON_SITE_DIR:=$(FS_STABLE_LIB_DIR)/python$(PYTHON_VERSION)/site-packages
288
289 # musl and glibc include their own iconv, but uclibc does not
290 ifneq ($(CONFIG_USE_UCLIBC),)
291 TARGET_CPPFLAGS+= \
292 -I$(STAGING_DIR)/usr/lib/libiconv-full/include
293 TARGET_LDFLAGS += \
294 -L$(STAGING_DIR)/usr/lib/libiconv-full/lib
295 endif
296
297 define Download/files
298 define Download/$(1)
299 FILE:=$(2)
300 URL:=$(3)
301 HASH:=$(4)
302 endef
303 $$(eval $$(call Download,$(1)))
304 endef
305
306 define Package/$(PKG_NAME)/install/bin
307 $(INSTALL_DIR) $(1)$(FS_STABLE_BIN_DIR)
308 $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_STABLE_BIN_DIR)/$(2) \
309 $(1)$(FS_STABLE_BIN_DIR)
310 endef
311
312 define Package/$(PKG_NAME)/install/dir
313 if [ -d $(2) ]; then $(INSTALL_DIR) $(1); fi
314 for dir in $$$$(shell [ -d $(2) ] && cd $(2) && $(FIND) -type d -print | sed 's|^./\?||'); \
315 do \
316 $(INSTALL_DIR) $(1)/$$$$$$$$dir; \
317 done
318 for file in $$$$(shell [ -d $(2) ] && cd $(2) && $(FIND) -type f -print | sed 's|^./||'); \
319 do \
320 $(INSTALL_DATA) $(2)/$$$$$$$$file $(1)/$$$$$$$$file; \
321 done
322 endef
323
324 define Package/$(PKG_NAME)/install/ftmod
325 $(INSTALL_DIR) $(1)$(FS_STABLE_MOD_DIR)
326 $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_STABLE_MOD_DIR)/ftmod_$(2).so \
327 $(1)$(FS_STABLE_MOD_DIR)
328 endef
329
330 define Package/$(PKG_NAME)/install/lib
331 $(INSTALL_DIR) $(1)$(FS_STABLE_LIB_DIR)
332 $(CP) $(PKG_INSTALL_DIR)$(FS_STABLE_LIB_DIR)/$(2).so* \
333 $(1)$(FS_STABLE_LIB_DIR)
334 endef
335
336 define Package/$(PKG_NAME)/install/mod
337 $(INSTALL_DIR) $(1)$(FS_STABLE_MOD_DIR)
338 $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_STABLE_MOD_DIR)/mod_$(2).so \
339 $(1)$(FS_STABLE_MOD_DIR)
340 endef
341
342 define Package/$(LIBFTDM)
343 CATEGORY:=Libraries
344 DEPENDS:=$(PKG_NAME)
345 SECTION:=libs
346 SUBMENU:=Telephony
347 TITLE:=TDM signaling and media API
348 URL:=https://www.$(PRG_NAME).org
349 endef
350
351 define Package/$(LIBFTDM)/description
352 Provides a unified interface to hardware TDM cards and ss7 stacks for
353 FreeSWITCH.
354 endef
355
356 define Package/$(LIBFTDM)/install
357 $(call Package/$(PKG_NAME)/install/lib,$(1),$(LIBFTDM))
358 endef
359
360 define Package/$(PKG_NAME)/config
361 source "$(SOURCE)/Config.in"
362 endef
363
364 define Package/$(PKG_NAME)/Default
365 SUBMENU:=Telephony
366 SECTION:=net
367 CATEGORY:=Network
368 URL:=https://www.$(PRG_NAME).org
369 endef
370
371 define Package/$(PKG_NAME)
372 $(call Package/$(PKG_NAME)/Default)
373 TITLE:=Open source telephony platform, v$(PKG_VERSION)
374 MENU:=1
375 USERID:=$(PRG_NAME)=372:$(PRG_NAME)=372
376 DEPENDS:= \
377 +FS_STABLE_WITH_FREETYPE:libfreetype \
378 +FS_STABLE_WITH_ODBC:unixodbc \
379 +FS_STABLE_WITH_PGSQL:libpq \
380 +FS_STABLE_WITH_PNG:libpng \
381 +USE_UCLIBC:libiconv-full \
382 +libcurl \
383 +libedit \
384 +libopenssl \
385 +libpcre \
386 +libpthread \
387 +librt \
388 +libspeex \
389 +libspeexdsp \
390 +libsqlite3 \
391 +libstdcpp \
392 +libuuid \
393 +zlib
394 CONFLICTS:=$(PRG_NAME)
395 endef
396
397 define Package/$(PKG_NAME)/description
398 FreeSWITCH is a scalable open source cross-platform telephony platform
399 designed to route and interconnect popular communication protocols
400 using audio, video, text or any other form of media.
401 endef
402
403 define Package/$(PKG_NAME)/conffiles
404 $(FS_STABLE_SYSCONF_DIR)/$(PRG_NAME)
405 $(FS_STABLE_SYSCONF_DIR)/default/$(PRG_NAME)
406 $(FS_STABLE_SYSCONF_DIR)/init.d/$(PRG_NAME)
407 endef
408
409 define Package/$(PKG_NAME)/install
410 $(call Package/$(PKG_NAME)/install/bin,$(1),$(PRG_NAME))
411 $(call Package/$(PKG_NAME)/install/lib,$(1),lib$(PRG_NAME))
412 $(INSTALL_DIR) $(1)$(FS_STABLE_FONTS_DIR)
413 $(INSTALL_DIR) $(1)$(FS_STABLE_GRAMMAR_DIR)
414 $(INSTALL_DIR) $(1)$(FS_STABLE_HTDOCS_DIR)
415 $(INSTALL_DIR) $(1)$(FS_STABLE_IMAGES_DIR)
416 $(INSTALL_DIR) $(1)$(FS_STABLE_SCRIPTS_DIR)
417 $(INSTALL_DIR) $(1)$(FS_STABLE_SOUNDS_DIR)
418 $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/default
419 $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/init.d
420 $(INSTALL_DIR) $(1)$(FS_STABLE_TLS_DIR)
421 $(INSTALL_BIN) ./files/$(PRG_NAME).init \
422 $(1)$(FS_STABLE_SYSCONF_DIR)/init.d/$(PRG_NAME)
423 $(INSTALL_CONF) ./files/$(PRG_NAME).default \
424 $(1)$(FS_STABLE_SYSCONF_DIR)/default/$(PRG_NAME)
425 endef
426
427 define Package/$(PKG_NAME)/postinst
428 #!/bin/sh
429 if [ -z "$${IPKG_INSTROOT}" ]; then
430 # Prevent $(PRG_NAME) from auto-starting after an upgrade. The modules may
431 # not be upgraded yet and the user configuration may need a revision.
432 sed -i '/^ENABLE_FREESWITCH="yes"/s/^/#/' \
433 $(FS_STABLE_SYSCONF_DIR)/default/$(PRG_NAME)
434
435 echo
436 echo "o-------------------------------------------------------------------o"
437 echo "| FreeSWITCH note |"
438 echo "o-------------------------------------------------------------------o"
439 echo "| Edit /etc/default/freeswitch to change basic init configuration. |"
440 echo "o-------------------------------------------------------------=^_^=-o"
441 echo
442 fi
443 exit 0
444 endef
445
446 define Package/$(PKG_NAME)-misc-hotplug
447 $(call Package/$(PKG_NAME)/Default)
448 TITLE:=Hotplug script
449 DEPENDS:=$(PKG_NAME)
450 PKGARCH:=all
451 endef
452
453 define Package/$(PKG_NAME)-misc-hotplug/description
454 This package includes a hotplug script for FreeSWITCH.
455 endef
456
457 define Package/$(PKG_NAME)-misc-hotplug/install
458 $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/hotplug.d/iface
459 $(INSTALL_BIN) ./files/$(PRG_NAME).hotplug \
460 $(1)$(FS_STABLE_SYSCONF_DIR)/hotplug.d/iface/99-$(PRG_NAME)
461 endef
462
463 define Package/$(PKG_NAME)-misc-hotplug/postinst
464 #!/bin/sh
465 if [ -z "$${IPKG_INSTROOT}" ]; then
466 echo
467 echo "o-------------------------------------------------------------------o"
468 echo "| FreeSWITCH hotplug note |"
469 echo "o-------------------------------------------------------------------o"
470 echo "| See /etc/default/freeswitch for hotplug hints. |"
471 echo "o-------------------------------------------------------------=^_^=-o"
472 echo
473 fi
474 exit 0
475 endef
476
477 define Package/$(PKG_NAME)-misc-perl-esl
478 $(call Package/$(PKG_NAME)/Default)
479 TITLE:=Perl ESL
480 DEPENDS:=$(PKG_NAME) \
481 +PACKAGE_$(PKG_NAME)-misc-perl-esl:perlbase-autoloader \
482 +PACKAGE_$(PKG_NAME)-misc-perl-esl:perlbase-data \
483 +PACKAGE_$(PKG_NAME)-misc-perl-esl:perlbase-dynaloader \
484 @PERL_THREADS
485 endef
486
487 define Package/$(PKG_NAME)-misc-perl-esl/description
488 This package contains the Perl binding for FreeSWITCH's Event Socket
489 Library (ESL).
490 endef
491
492 define Package/$(PKG_NAME)-misc-perl-esl/install
493 $(INSTALL_DIR) $(1)$(PERL_SITELIB)/ESL
494 $(INSTALL_DIR) $(1)$(PERL_SITELIB)/auto/ESL
495 $(INSTALL_BIN) \
496 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.so \
497 $(1)$(PERL_SITELIB)/auto/ESL
498 $(INSTALL_DATA) \
499 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.pm \
500 $(1)$(PERL_SITELIB)
501 $(INSTALL_DATA) \
502 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/Dispatch.pm \
503 $(1)$(PERL_SITELIB)/ESL
504 $(INSTALL_DATA) \
505 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/IVR.pm \
506 $(1)$(PERL_SITELIB)/ESL
507 endef
508
509 define Package/$(PKG_NAME)-misc-python-esl
510 $(call Package/$(PKG_NAME)/Default)
511 TITLE:=Python ESL
512 DEPENDS:=$(PKG_NAME) +PACKAGE_$(PKG_NAME)-misc-python-esl:python-light
513 endef
514
515 define Package/$(PKG_NAME)-misc-python-esl/description
516 This package contains the Python binding for FreeSWITCH's Event Socket
517 Library (ESL).
518 endef
519
520 define Package/$(PKG_NAME)-misc-python-esl/install
521 $(INSTALL_DIR) $(1)$(FS_STABLE_PYTHON_SITE_DIR)
522 $(INSTALL_BIN) \
523 $(PKG_INSTALL_DIR)$(FS_STABLE_PYTHON_SITE_DIR)/_ESL.so \
524 $(1)$(FS_STABLE_PYTHON_SITE_DIR)
525 $(INSTALL_DATA) \
526 $(PKG_INSTALL_DIR)$(FS_STABLE_PYTHON_SITE_DIR)/ESL.py \
527 $(1)$(FS_STABLE_PYTHON_SITE_DIR)
528 endef
529
530 define Package/$(PKG_NAME)-misc-timezones
531 $(call Package/$(PKG_NAME)/Default)
532 TITLE:=Timezones file
533 DEPENDS:=$(PKG_NAME)
534 PKGARCH:=all
535 endef
536
537 define Package/$(PKG_NAME)-misc-timezones/description
538 This package includes a timezones file for FreeSWITCH.
539 endef
540
541 define Package/$(PKG_NAME)-misc-timezones/install
542 $(INSTALL_DIR) $(1)$(FS_STABLE_TZ_DIR)
543 $(INSTALL_DATA) \
544 $(PKG_BUILD_DIR)/conf/vanilla/autoload_configs/timezones.conf.xml \
545 $(1)$(FS_STABLE_TZ_DIR)
546 endef
547
548 define Package/$(PKG_NAME)/Example
549 define Package/$(PKG_NAME)-example-$(1)
550 $(call Package/$(PKG_NAME)/Default)
551 TITLE:=Example configuration
552 DEPENDS:=$(PKG_NAME)
553 PKGARCH:=all
554 endef
555 define Package/$(PKG_NAME)-example-$(1)/description
556 This package does not install any configuration for FreeSWITCH into
557 /etc/freeswitch. The system administrator is completely responsible
558 for that directory. If you install one of the example configuration
559 packages, it will install the corresponding sample configuration to
560 /usr/share/freeswitch/examples where you can take a look at it.
561 endef
562 define Package/$(PKG_NAME)-example-$(1)/install
563 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_EXAMPLES_DIR)/$(1),$(PKG_BUILD_DIR)/conf/$(1))
564 endef
565 $$(eval $$(call BuildPackage,$(PKG_NAME)-example-$(1)))
566 endef
567
568 define Package/$(PKG_NAME)/FTModule
569 define Package/$(PKG_NAME)-ftmod-$(1)
570 $(call Package/$(PKG_NAME)/Default)
571 DEPENDS := \
572 $(PKG_NAME) \
573 $(patsubst +%,+PACKAGE_$(PKG_NAME)-ftmod-$(1):%,$(4)) \
574 +PACKAGE_$(PKG_NAME)-ftmod-$(1):$(LIBFTDM)
575 TITLE:=$(2) FreeTDM module
576 endef
577 define Package/$(PKG_NAME)-ftmod-$(1)/description
578 $(subst \n,$(newline),$(3))
579 endef
580 define Package/$(PKG_NAME)-ftmod-$(1)/install
581 $(call Package/$(PKG_NAME)/install/ftmod,$$(1),$(1))
582 endef
583 $$(eval $$(call BuildPackage,$(PKG_NAME)-ftmod-$(1)))
584 endef
585
586 define Package/$(PKG_NAME)/Language
587 define Package/$(PKG_NAME)-lang-$(1)
588 $(call Package/$(PKG_NAME)/Default)
589 TITLE:=$(2) language files
590 DEPENDS:=$(PKG_NAME)
591 PKGARCH:=all
592 endef
593 define Package/$(PKG_NAME)-lang-$(1)/description
594 This package includes the $(2) language files for FreeSWITCH.
595 endef
596 define Package/$(PKG_NAME)-lang-$(1)/install
597 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_LANG_DIR)/$(1),$(PKG_BUILD_DIR)/conf/vanilla/lang/$(1))
598 endef
599 $$(eval $$(call BuildPackage,$(PKG_NAME)-lang-$(1)))
600 endef
601
602 # The next package generator is for miscellaneous files that only
603 # require being copied from PKG_INSTALL_DIR to the ipkg.
604 define Package/$(PKG_NAME)/Misc
605 define Package/$(PKG_NAME)-$(1)
606 $(call Package/$(PKG_NAME)/Default)
607 TITLE:=$(2)
608 DEPENDS:=$(PKG_NAME)
609 ifeq ($(6),y)
610 PKGARCH:=all
611 endif
612 endef
613 define Package/$(PKG_NAME)-$(1)/description
614 $(subst \n,$(newline),$(3))
615 endef
616 define Package/$(PKG_NAME)-$(1)/install
617 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(5),$(PKG_INSTALL_DIR)$(4))
618 endef
619 $$(eval $$(call BuildPackage,$(PKG_NAME)-$(1)))
620 endef
621
622 define Package/$(PKG_NAME)/Module
623 define Package/$(PKG_NAME)-mod-$(1)
624 $(call Package/$(PKG_NAME)/Default)
625 TITLE:=$(2) module
626 DEPENDS:=$(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-mod-$(1):%,$(4))
627 endef
628 define Package/$(PKG_NAME)-mod-$(1)/description
629 $(subst \n,$(newline),$(3))
630 endef
631 define Package/$(PKG_NAME)-mod-$(1)/install
632 $(call Package/$(PKG_NAME)/install/mod,$$(1),$(1))
633 ifeq ($(CONFIG_FS_STABLE_WITH_MODCONF),y)
634 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_EXAMPLES_DIR)/mod_$(1),$(PKG_BUILD_DIR)/src/mod/*/mod_$(1)/conf)
635 endif
636 ifeq ($(1),perl)
637 $(INSTALL_DIR) $$(1)$(PERL_SITELIB)/auto/$(PRG_NAME)
638 $(INSTALL_BIN) \
639 $(PKG_INSTALL_DIR)/usr/perl/$(PRG_NAME).so \
640 $$(1)$(PERL_SITELIB)/auto/$(PRG_NAME)
641 $(INSTALL_DATA) \
642 $(PKG_INSTALL_DIR)/usr/perl/$(PRG_NAME).pm \
643 $$(1)$(PERL_SITELIB)
644 endif
645 ifeq ($(1),python)
646 $(INSTALL_DIR) $$(1)$(FS_STABLE_PYTHON_SITE_DIR)
647 $(INSTALL_DATA) \
648 $(PKG_INSTALL_DIR)$(FS_STABLE_PYTHON_SITE_DIR)/$(PRG_NAME).py \
649 $$(1)$(FS_STABLE_PYTHON_SITE_DIR)
650 endif
651 endef
652 $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
653 endef
654
655 define Package/$(PKG_NAME)/Util
656 define Package/$(PKG_NAME)-util-$(1)
657 $(call Package/$(PKG_NAME)/Default)
658 TITLE:=$(2) utility
659 DEPENDS:=$(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-util-$(1):%,$(4))
660 ifeq ($(5),y)
661 PKGARCH:=all
662 endif
663 endef
664 define Package/$(PKG_NAME)-util-$(1)/description
665 $(subst \n,$(newline),$(3))
666 endef
667 define Package/$(PKG_NAME)-util-$(1)/install
668 $(call Package/$(PKG_NAME)/install/bin,$$(1),$(1))
669 endef
670 $$(eval $$(call BuildPackage,$(PKG_NAME)-util-$(1)))
671 endef
672
673 CONFIGURE_ARGS+= \
674 --srcdir=$(PKG_BUILD_DIR) \
675 --disable-dependency-tracking \
676 --disable-static \
677 --disable-system-xmlrpc-c \
678 --enable-core-libedit-support \
679 --enable-fhs \
680 --with-cachedir=/tmp/$(PRG_NAME)/cache \
681 --with-dbdir=/tmp/$(PRG_NAME)/db \
682 --with-imagesdir=$(FS_STABLE_IMAGES_DIR) \
683 --with-logfiledir=/tmp/$(PRG_NAME)/log \
684 --with-recordingsdir=/tmp/$(PRG_NAME)/recordings \
685 --with-storagedir=/tmp/$(PRG_NAME)/storage \
686 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_DEBUG,debug) \
687 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_LIBYUV,libyuv) \
688 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ODBC,core-odbc-support) \
689 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_PGSQL,core-pgsql-support) \
690 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_SRTP,srtp) \
691 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_VPX,libvpx) \
692 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ZRTP,zrtp) \
693 $(if $(CONFIG_FS_STABLE_WITH_FREETYPE),,--without-freetype) \
694 $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc-lib="$(STAGING_DIR)$(FS_STABLE_LIB_DIR)") \
695 $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc="$(STAGING_DIR)/usr") \
696 $(if $(CONFIG_FS_STABLE_WITH_PGSQL),,--without-pgsql) \
697 $(if $(CONFIG_FS_STABLE_WITH_PNG),,--without-png) \
698 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-ftmod-libpri),--with-libpri="$(STAGING_DIR)/usr",--without-libpri) \
699 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-ftmod-pritap),--with-pritap,--without-pritap)
700
701 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-python),)
702 CONFIGURE_ARGS+= \
703 --with-python=$(STAGING_DIR_HOSTPKG)/bin/python$(PYTHON_VERSION)
704 else
705 CONFIGURE_ARGS+= \
706 --with-python=no
707 endif
708
709 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-erlang_event)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-kazoo),)
710 CONFIGURE_ARGS+= \
711 --with-erlang=no
712 endif
713
714 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-v8),)
715 CONFIGURE_ARGS+= \
716 --enable-static-v8 \
717 $(if $(CONFIG_FS_STABLE_WITH_V8_SNAPSHOT),,--disable-snapshot-v8)
718 endif
719
720 # Make mod_spandsp use fixed point math when soft float support is
721 # enabled on target devices.
722 ifeq ($(CONFIG_SOFT_FLOAT),y)
723 CONFIGURE_ARGS+= \
724 --enable-fixed-point
725 endif
726
727 # Don't want host-php
728 CONFIGURE_VARS+= \
729 ac_cv_have_php=no \
730 ac_cv_have_php_config=no \
731 ac_cv_prog_PHP=false \
732 ac_cv_prog_PHP_CONFIG=false
733
734 # The autoconf variables in this block are OK for both musl and glibc
735 CONFIGURE_VARS+= \
736 ac_cv_dev_urandom=yes \
737 ac_cv_file__dev_ptmx=yes \
738 ac_cv_file__dev_urandom=yes \
739 ac_cv_file_dbd_apr_dbd_mysql_c=no \
740 ac_cv_free_null=yes \
741 ac_cv_func_mmap_fixed_mapped=yes \
742 ac_cv_func_pthread_rwlock_init=yes \
743 ac_cv_func_sem_open=yes \
744 ac_cv_have_working_memmove=yes \
745 ac_cv_negative_eai=yes \
746 ac_cv_o_nonblock_inherited=no \
747 ac_cv_struct_rlimit=yes \
748 apr_cv_epoll=yes \
749 apr_cv_gai_addrconfig=yes \
750 apr_cv_mutex_recursive=yes \
751 apr_cv_process_shared_works=yes \
752 apr_cv_pthreads_lib=-lpthread \
753 apr_cv_tcp_nodelay_with_cork=yes \
754 apr_cv_type_rwlock_t=yes
755
756 # fs_cli
757 CONFIGURE_VARS+= \
758 disable_cc=yes
759
760 # Regarding apr_cv_mutex_robust_shared=no see
761 # http://www.openwall.com/lists/musl/2016/11/26/1
762 # _Don't_ remove quotes below!
763 ifeq ($(CONFIG_LIBC),"musl")
764 CONFIGURE_VARS+= \
765 apr_cv_mutex_robust_shared=no \
766 ac_cv_strerror_r_rc_int=yes
767 else
768 CONFIGURE_VARS+= \
769 apr_cv_mutex_robust_shared=yes
770 endif
771
772 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-perl),)
773 CONFIGURE_VARS+= \
774 PERL="$(PERL_CMD)" \
775 PERL_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \
776 PERL_INC="-I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \
777 PERL_LDFLAGS="$(FPIC) -Wl,-rpath,$(PERL_SITELIB)/CORE -L$(STAGING_DIR)$(PERL_SITELIB)/CORE -lperl" \
778 PERL_LIBDIR="-L$(PERL_SITELIB)/CORE" \
779 PERL_LIBS="-lpthread $(FS_STABLE_PERL_LIBS) $(EXTRA_LIBDIRS:%=-L%) $(EXTRA_LIBS:%=-l%)" \
780 PERL_SITEDIR="$(PERL_SITELIB)"
781 else
782 CONFIGURE_VARS+= \
783 ac_cv_have_perl=no \
784 ac_cv_prog_PERL=false
785 endif
786
787 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-python),)
788 CONFIGURE_VARS+= \
789 PYTHON_CFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION)" \
790 PYTHON_LDFLAGS="-lpython$(PYTHON_VERSION) -ldl -lpthread -lm -Xlinker -export-dynamic" \
791 PYTHON_LIB="python$(PYTHON_VERSION)" \
792 PYTHON_LIBDIR="$(FS_STABLE_LIB_DIR)" \
793 PYTHON_SITE_DIR="$(FS_STABLE_PYTHON_SITE_DIR)"
794 endif
795
796 # mod_radius_cdr runs configure in libs/freeradius-client. Let
797 # freeradius-client know /dev/urandom is available on target devices.
798 MAKE_VARS+= \
799 ac_cv_dev_urandom=yes
800
801 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-v8),)
802
803 # arm
804 ifeq ($(CONFIG_arm),y)
805 FS_STABLE_MYARCH:=arm
806 FS_STABLE_MYDEFINES:=v8_target_arch=arm
807 ifeq ($(CONFIG_arm_v6),y)
808 FS_STABLE_MYDEFINES+=arm_version=6
809 else
810 ifeq ($(CONFIG_arm_v7),y)
811 FS_STABLE_MYDEFINES+=arm_version=7
812 else
813 FS_STABLE_MYDEFINES+=arm_version=default
814 endif
815 endif
816 ifeq ($(CONFIG_VFP),y)
817 ifeq ($(CONFIG_VFPv3),y)
818 ifeq ($(CONFIG_NEON),y)
819 FS_STABLE_MYDEFINES+=arm_fpu=neon
820 else
821 FS_STABLE_MYDEFINES+=arm_fpu=vfpv3
822 endif
823 else
824 FS_STABLE_MYDEFINES+=arm_fpu=vfp
825 endif
826 else
827 FS_STABLE_MYDEFINES+=arm_fpu=default
828 endif
829 ifeq ($(CONFIG_SOFT_FLOAT),y)
830 FS_STABLE_MYDEFINES+=arm_float_abi=softfp
831 else
832 FS_STABLE_MYDEFINES+=arm_float_abi=hard
833 endif
834 endif
835
836 # i386
837 ifeq ($(CONFIG_i386),y)
838 FS_STABLE_MYARCH:=ia32
839 FS_STABLE_MYDEFINES:=v8_target_arch=ia32
840 endif
841
842 # mipsel
843 ifeq ($(CONFIG_mipsel),y)
844 FS_STABLE_MYARCH:=mipsel
845 FS_STABLE_MYDEFINES:=v8_target_arch=mipsel
846 ifeq ($(CONFIG_CPU_MIPS32),y)
847 ifeq ($(CONFIG_CPU_MIPS32_R2),y)
848 FS_STABLE_MYDEFINES+=mips_arch_variant=mips32r2
849 else
850 ifeq ($(CONFIG_CPU_MIPS32_R1),y)
851 FS_STABLE_MYDEFINES+=mips_arch_variant=mips32r1
852 endif
853 endif
854 endif
855 ifeq ($(CONFIG_SOFT_FLOAT),y)
856 FS_STABLE_MYDEFINES+=v8_use_mips_abi_hardfloat=false
857 else
858 FS_STABLE_MYDEFINES+=v8_use_mips_abi_hardfloat=true
859 endif
860 endif
861
862 # x86_64
863 ifeq ($(CONFIG_x86_64),y)
864 FS_STABLE_MYARCH:=x64
865 FS_STABLE_MYDEFINES:=v8_target_arch=x64
866 endif
867
868 MAKE_VARS+= \
869 FS_STABLE_HOSTCC="$(HOSTCC)" \
870 FS_STABLE_HOSTCXX="$(HOSTCXX)" \
871 FS_STABLE_HOST_CFLAGS="$(HOST_CFLAGS)" \
872 FS_STABLE_HOST_LDFLAGS="$(HOST_LDFLAGS)" \
873 FS_STABLE_HOST_PYTHONPATH="$(HOST_PYTHONPATH)" \
874 FS_STABLE_MYARCH="$(FS_STABLE_MYARCH)" \
875 FS_STABLE_MYDEFINES="$(FS_STABLE_MYDEFINES)"
876
877 endif
878
879 # Make sphinxbase use fixed point math when soft float support is
880 # enabled on target devices.
881 ifeq ($(CONFIG_SOFT_FLOAT),y)
882 MAKE_VARS+= \
883 FS_STABLE_USE_FIXED_POINT="--enable-fixed"
884 endif
885
886 # Some common URLs
887 FS_STABLE_LIBS_URL:=https://files.$(PRG_NAME).org/downloads/libs
888 FS_STABLE_SPHINX_URL:=@SF/cmusphinx
889
890 # mod_event_zmq
891 FS_STABLE_ZEROMQ_FILE:=zeromq-2.1.9.tar.gz
892 FS_STABLE_ZEROMQ_HASH:=f3542f756687e622beef3a75c8e027fe2d95d4654350cbca4c070ffc58d9ace0
893 FS_STABLE_ZEROMQ_URL:=http://download.zeromq.org
894
895 # mod_pocketsphinx
896 FS_STABLE_POCKETSPHINX_FILE:=pocketsphinx-0.8.tar.gz
897 FS_STABLE_POCKETSPHINX_HASH:=874c4c083d91c8ff26a2aec250b689e537912ff728923c141c4dac48662cce7a
898
899 FS_STABLE_SPHINXBASE_FILE:=sphinxbase-0.8.tar.gz
900 FS_STABLE_SPHINXBASE_HASH:=55708944872bab1015b8ae07b379bf463764f469163a8fd114cbb16c5e486ca8
901
902 FS_STABLE_SPHINXMODEL_FILE:=communicator_semi_6000_20080321.tar.gz
903 FS_STABLE_SPHINXMODEL_HASH:=dbb5e9fb85000a7cb97d6958a3ef8d77532dc55fc730ac6979705e8645cb0c18
904
905 # mod_radius_cdr
906 FS_STABLE_FREERADIUS_CLIENT_FILE:=freeradius-client-1.1.6.tar.gz
907 FS_STABLE_FREERADIUS_CLIENT_HASH:=3fc609af328258e00345389d5478b099fe4ea3ad694d0472525ef3adab9cf053
908
909 # mod_v8
910 FS_STABLE_V8_FILE:=v8-3.24.14.tar.bz2
911 FS_STABLE_V8_HASH:=395f4eaf5580b973b1e33fe0aa27f8d013ddf1b163ad76992c50dd91ff182828
912
913 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event_zmq),)
914 $(eval $(call Download/files,zmq,$(FS_STABLE_ZEROMQ_FILE),$(FS_STABLE_ZEROMQ_URL),$(FS_STABLE_ZEROMQ_HASH)))
915 endif
916
917 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx)$(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),)
918 $(eval $(call Download/files,pocketsphinx,$(FS_STABLE_POCKETSPHINX_FILE),$(FS_STABLE_SPHINX_URL),$(FS_STABLE_POCKETSPHINX_HASH)))
919 $(eval $(call Download/files,sphinxbase,$(FS_STABLE_SPHINXBASE_FILE),$(FS_STABLE_SPHINX_URL),$(FS_STABLE_SPHINXBASE_HASH)))
920 $(eval $(call Download/files,communicator,$(FS_STABLE_SPHINXMODEL_FILE),$(FS_STABLE_LIBS_URL),$(FS_STABLE_SPHINXMODEL_HASH)))
921 endif
922
923 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-radius_cdr),)
924 $(eval $(call Download/files,freeradius-client,$(FS_STABLE_FREERADIUS_CLIENT_FILE),$(FS_STABLE_LIBS_URL),$(FS_STABLE_FREERADIUS_CLIENT_HASH)))
925 endif
926
927 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-v8),)
928 $(eval $(call Download/files,v8,$(FS_STABLE_V8_FILE),$(FS_STABLE_LIBS_URL),$(FS_STABLE_V8_HASH)))
929 endif
930
931 # Need to update LDFLAGS for libs/unimrcp, otherwise it will try to link to a
932 # different apr/apr-util if found.
933 # FS_STABLE_ANCHOR: string in build/acmacros/apr.m4 that will be replaced
934 FS_STABLE_ANCHOR:=dnl Get build information from APR
935 FS_STABLE_APR_LIBS:=-L$(PKG_BUILD_DIR)/libs/apr -L$(PKG_BUILD_DIR)/libs/apr-util
936
937 define Build/Prepare
938 $(call Build/Prepare/Default)
939
940 echo '#applications/mod_random' >> $(PKG_BUILD_DIR)/modules.conf
941 echo '#codecs/mod_yuv' >> $(PKG_BUILD_DIR)/modules.conf
942 echo '#event_handlers/mod_event_test' >> $(PKG_BUILD_DIR)/modules.conf
943 $(SED) '/^#/!s/^/#/' $(PKG_BUILD_DIR)/modules.conf
944 $(foreach m,$(FS_STABLE_MOD_AVAILABLE),
945 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-$(m)),
946 $(SED) '/mod_$(m)$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf))
947
948 $(SED) 's|$(FS_STABLE_ANCHOR)|APR_SETVAR(LDFLAGS,$(FS_STABLE_APR_LIBS) $(TARGET_LDFLAGS))|' \
949 $(PKG_BUILD_DIR)/libs/unimrcp/build/acmacros/apr.m4
950
951 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event_zmq),)
952 $(CP) $(DL_DIR)/$(FS_STABLE_ZEROMQ_FILE) $(PKG_BUILD_DIR)/libs
953 endif
954
955 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx)$(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),)
956 $(CP) $(DL_DIR)/$(FS_STABLE_POCKETSPHINX_FILE) $(PKG_BUILD_DIR)/libs
957 $(CP) $(DL_DIR)/$(FS_STABLE_SPHINXBASE_FILE) $(PKG_BUILD_DIR)/libs
958 $(CP) $(DL_DIR)/$(FS_STABLE_SPHINXMODEL_FILE) $(PKG_BUILD_DIR)/libs
959 endif
960
961 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-radius_cdr),)
962 $(CP) $(DL_DIR)/$(FS_STABLE_FREERADIUS_CLIENT_FILE) $(PKG_BUILD_DIR)/libs
963 endif
964
965 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-v8),)
966 $(CP) $(DL_DIR)/$(FS_STABLE_V8_FILE) $(PKG_BUILD_DIR)/libs
967 endif
968
969 # Hack for misc-grammar - needs mod_pocketsphinx to provide grammar files
970 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),)
971 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx),)
972 $(SED) '/mod_pocketsphinx$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf
973 endif
974 endif
975
976 # Hack for mod_gsmopen - it has a build-time dep on mod_spandsp
977 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-gsmopen),)
978 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-spandsp),)
979 $(SED) '/mod_spandsp$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf
980 endif
981 endif
982
983 # Hack for mod_unimrcp - it has a build-time dep on mod_sofia
984 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-unimrcp),)
985 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-sofia),)
986 $(SED) '/mod_sofia$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf
987 endif
988 endif
989 endef
990
991 define Build/Configure
992 $(FIND) $(PKG_BUILD_DIR) -name missing -type f -exec rm {} \;
993 cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./rebootstrap.sh
994 $(call Build/Configure/Default)
995 endef
996
997 define Build/Compile
998 $(call Build/Compile/Default)
999 # FreeTDM is only compiled/installed automatically if mod_freetdm is selected
1000 ifneq ($(CONFIG_PACKAGE_$(LIBFTDM)),)
1001 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-freetdm),)
1002 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/freetdm)
1003 endif
1004 endif
1005 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl),)
1006 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl perlmod)
1007 endif
1008 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl),)
1009 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl pymod)
1010 endif
1011 endef
1012
1013 define Build/Install
1014 $(call Build/Install/Default)
1015 ifneq ($(CONFIG_PACKAGE_$(LIBFTDM)),)
1016 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-freetdm),)
1017 $(call Build/Install/Default,-C $(PKG_BUILD_DIR)/libs/freetdm install)
1018 endif
1019 endif
1020 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl),)
1021 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl DESTDIR=$(PKG_INSTALL_DIR) perlmod-install)
1022 endif
1023 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl),)
1024 $(call Build/Install/Default,-C $(PKG_BUILD_DIR)/libs/esl pymod-install)
1025 endif
1026 endef
1027
1028 define Build/InstallDev
1029 $(INSTALL_DIR) $(1)$(FS_STABLE_INCLUDES_DIR)
1030 $(INSTALL_DIR) $(1)$(FS_STABLE_PKGCONFIG_DIR)
1031 $(INSTALL_DATA) $(PKG_INSTALL_DIR)$(FS_STABLE_INCLUDES_DIR)/*.h \
1032 $(1)$(FS_STABLE_INCLUDES_DIR)
1033 $(INSTALL_DATA) \
1034 $(PKG_INSTALL_DIR)$(FS_STABLE_PKGCONFIG_DIR)/$(PRG_NAME).pc \
1035 $(1)$(FS_STABLE_PKGCONFIG_DIR)
1036 ifneq ($(CONFIG_PACKAGE_$(LIBFTDM)),)
1037 $(INSTALL_DATA) \
1038 $(PKG_INSTALL_DIR)$(FS_STABLE_PKGCONFIG_DIR)/freetdm.pc \
1039 $(1)$(FS_STABLE_PKGCONFIG_DIR)
1040 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
1041 endif
1042 endef
1043
1044 $(eval $(call BuildPackage,$(LIBFTDM)))
1045 $(eval $(call BuildPackage,$(PKG_NAME)))
1046 $(eval $(call BuildPackage,$(PKG_NAME)-misc-hotplug))
1047 $(eval $(call BuildPackage,$(PKG_NAME)-misc-perl-esl))
1048 $(eval $(call BuildPackage,$(PKG_NAME)-misc-python-esl))
1049 $(eval $(call BuildPackage,$(PKG_NAME)-misc-timezones))
1050
1051 ################################
1052 # FreeSWITCH example configs
1053 # Params:
1054 # 1 - Package subname
1055 ################################
1056
1057 $(eval $(call Package/$(PKG_NAME)/Example,curl))
1058 $(eval $(call Package/$(PKG_NAME)/Example,insideout))
1059 $(eval $(call Package/$(PKG_NAME)/Example,minimal))
1060 $(eval $(call Package/$(PKG_NAME)/Example,rayo))
1061 $(eval $(call Package/$(PKG_NAME)/Example,sbc))
1062 $(eval $(call Package/$(PKG_NAME)/Example,softphone))
1063 $(eval $(call Package/$(PKG_NAME)/Example,testing))
1064 $(eval $(call Package/$(PKG_NAME)/Example,vanilla))
1065
1066 ################################
1067 # FreeTDM modules
1068 # Params:
1069 # 1 - Package subname
1070 # 2 - Package title
1071 # 3 - Module description
1072 # 4 - Module dependencies
1073 ################################
1074
1075 $(eval $(call Package/$(PKG_NAME)/FTModule,analog,Analog,Offers generic FXO/FXS support for any type of card supported by FreeTDM.,))
1076 $(eval $(call Package/$(PKG_NAME)/FTModule,analog_em,Analog EM,Offers generic E&M signaling for any type of card supported by FreeTDM.,))
1077 $(eval $(call Package/$(PKG_NAME)/FTModule,libpri,LibPRI,Offers support for PRI lines using the open source libpri stack for any\ntype of card supported by FreeTDM. Supports both PRI and BRI signalling.,+libpri @!aarch64))
1078 $(eval $(call Package/$(PKG_NAME)/FTModule,pritap,PRI tapping,This module is used to tap PRI lines.,+$(PKG_NAME)-ftmod-libpri))
1079 $(eval $(call Package/$(PKG_NAME)/FTModule,skel,Skeleton,ftmod_skel is an example module.,))
1080 $(eval $(call Package/$(PKG_NAME)/FTModule,zt,DAHDI I/O,This module supports the DAHDI interface. The DAHDI interface is used by\nseveral hardware vendors.,))
1081
1082 ################################
1083 # FreeSWITCH language files
1084 # Params:
1085 # 1 - Language code
1086 # 2 - Language
1087 ################################
1088
1089 $(eval $(call Package/$(PKG_NAME)/Language,de,German))
1090 $(eval $(call Package/$(PKG_NAME)/Language,en,English))
1091 $(eval $(call Package/$(PKG_NAME)/Language,es,Spanish))
1092 $(eval $(call Package/$(PKG_NAME)/Language,fr,French))
1093 $(eval $(call Package/$(PKG_NAME)/Language,he,Hebrew))
1094 $(eval $(call Package/$(PKG_NAME)/Language,pt,Portuguese))
1095 $(eval $(call Package/$(PKG_NAME)/Language,ru,Russian))
1096 $(eval $(call Package/$(PKG_NAME)/Language,sv,Swedish))
1097
1098 ################################
1099 # FreeSWITCH misc packages
1100 # Params:
1101 # 1 - Package subname
1102 # 2 - Package title
1103 # 3 - Package description
1104 # 4 - Source dir relative to
1105 # PKG_INSTALL_DIR
1106 # 5 - Dest dir relative to ipkg
1107 # 6 - Arch independent files
1108 ################################
1109
1110 $(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))
1111 $(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))
1112 $(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))
1113
1114 ################################
1115 # FreeSWITCH modules
1116 # Params:
1117 # 1 - Package subname
1118 # 2 - Package title
1119 # 3 - Module description
1120 # 4 - Module dependencies
1121 ################################
1122
1123 $(eval $(call Package/$(PKG_NAME)/Module,abstraction,API abstraction,This module provides a way to create new API functions via regex\nrewriting.,))
1124 $(eval $(call Package/$(PKG_NAME)/Module,alsa,ALSA endpoint,ALSA endpoint module.,+alsa-lib))
1125 $(eval $(call Package/$(PKG_NAME)/Module,amr,AMR passthrough,Passthrough AMR codec support.,))
1126 $(eval $(call Package/$(PKG_NAME)/Module,amrwb,AMR wideband passthrough,Passthrough AMR wideband codec support.,))
1127 $(eval $(call Package/$(PKG_NAME)/Module,av,AV,Video codec and format support via FFmpeg.,+libffmpeg-full @i386||x86_64))
1128 $(eval $(call Package/$(PKG_NAME)/Module,avmd,Voicemail detection,This module attempts to determine when a voicemail system has answered\nthe call.,))
1129 $(eval $(call Package/$(PKG_NAME)/Module,b64,Base64,Transfers data Base64 encoded.,))
1130 $(eval $(call Package/$(PKG_NAME)/Module,basic,BASIC,BASIC module for FreeSWITCH.,))
1131 $(eval $(call Package/$(PKG_NAME)/Module,bert,BERT,Line testing tool.,))
1132 $(eval $(call Package/$(PKG_NAME)/Module,blacklist,Blacklist helper,This module provides tools to blacklist callers.,))
1133 $(eval $(call Package/$(PKG_NAME)/Module,callcenter,Call center,This module implements Automated Call Distribution queues.,))
1134 $(eval $(call Package/$(PKG_NAME)/Module,cdr_csv,CSV CDR,CSV Call Detail Record handler.,))
1135 $(eval $(call Package/$(PKG_NAME)/Module,cdr_mongodb,MongoDB CDR,MongoDB Call Detail Record handler.,))
1136 $(eval $(call Package/$(PKG_NAME)/Module,cdr_pg_csv,PostgreSQL CDR,PostgreSQL Call Detail Record handler.,@FS_STABLE_WITH_PGSQL))
1137 $(eval $(call Package/$(PKG_NAME)/Module,cdr_sqlite,SQLite CDR,SQLite Call Detail Record handler.,))
1138 $(eval $(call Package/$(PKG_NAME)/Module,cidlookup,Caller ID lookup,This module provides an API for querying caller ID name and location\ndata.,))
1139 $(eval $(call Package/$(PKG_NAME)/Module,clearmode,Clearmode,Clearmode codec passthrough support.,))
1140 $(eval $(call Package/$(PKG_NAME)/Module,cluechoo,Clue Choo,This demo module renders a Clue Choo train on the FreeSWITCH console.,+libncurses))
1141 $(eval $(call Package/$(PKG_NAME)/Module,commands,Commands,This module provides miscellaneous API commands.,))
1142 $(eval $(call Package/$(PKG_NAME)/Module,conference,Conference,This module provides multi-party conferencing.,))
1143 $(eval $(call Package/$(PKG_NAME)/Module,console,Console logger,Allows control over what messages get logged to the console.,))
1144 $(eval $(call Package/$(PKG_NAME)/Module,curl,cURL,This module provides an API for making HTTP requests with cURL.,))
1145 $(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
1146 $(eval $(call Package/$(PKG_NAME)/Module,dahdi_codec,DAHDI codec,DAHDI codec module.,))
1147 $(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.,))
1148 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_asterisk,Asterisk dialplan,Asterisk extensions.conf style dialplan parser.,))
1149 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_directory,Directory dialplan,Directory dialplan support.,))
1150 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_xml,XML dialplan,Standard FreeSWITCH XML dialplan support.,))
1151 $(eval $(call Package/$(PKG_NAME)/Module,dingaling,Generic XMPP,Allows FreeSWITCH to be used as a client for XMPP Servers.,))
1152 $(eval $(call Package/$(PKG_NAME)/Module,directory,Dial-by-name directory,This module implements a dial-by-name directory IVR.,))
1153 $(eval $(call Package/$(PKG_NAME)/Module,distributor,Load distributor,This module implements a mechanism for performing load balancing.,))
1154 $(eval $(call Package/$(PKG_NAME)/Module,dptools,Dialplan tools,This module implements basic dialplan tools.,))
1155 $(eval $(call Package/$(PKG_NAME)/Module,easyroute,DID routing,This module does destination lookup based on DID.,))
1156 $(eval $(call Package/$(PKG_NAME)/Module,enum,ENUM routing,This module implements ENUM support.,+libldns))
1157 $(eval $(call Package/$(PKG_NAME)/Module,erlang_event,Erlang event,Erlang event module.,+erlang))
1158 $(eval $(call Package/$(PKG_NAME)/Module,esf,Multicast,This module adds multi-cast support.,))
1159 $(eval $(call Package/$(PKG_NAME)/Module,esl,Single ESL,This module adds an API for generating one-off ESL requests.,))
1160 $(eval $(call Package/$(PKG_NAME)/Module,event_multicast,Multicast Event,Multicast Event System for FreeSWITCH.,))
1161 $(eval $(call Package/$(PKG_NAME)/Module,event_socket,Event socket,Sends events via a single socket. Needed for fs_cli.,))
1162 $(eval $(call Package/$(PKG_NAME)/Module,event_test,Event test,Event demo module.,))
1163 $(eval $(call Package/$(PKG_NAME)/Module,event_zmq,ZMQ event,ZMQ event module.,))
1164 $(eval $(call Package/$(PKG_NAME)/Module,expr,Expr,This module adds expr support for expression evaluation.,))
1165 $(eval $(call Package/$(PKG_NAME)/Module,fifo,FIFO,This module adds a first-in first-out queue system.,))
1166 $(eval $(call Package/$(PKG_NAME)/Module,format_cdr,Multiformat CDR,A superset of mod_json_cdr and mod_xml_cdr.,))
1167 $(eval $(call Package/$(PKG_NAME)/Module,freetdm,FreeTDM endpoint,This module is the glue between FreeSWITCH and FreeTDM.,+$(LIBFTDM)))
1168 $(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.,))
1169 $(eval $(call Package/$(PKG_NAME)/Module,fsv,FSV,This module provides dialplan applications for recording and playing\nvideos.,))
1170 $(eval $(call Package/$(PKG_NAME)/Module,g723_1,G.723.1 passthrough,G.723.1 codec passthrough.,))
1171 $(eval $(call Package/$(PKG_NAME)/Module,g729,G.729 passthrough,G.729 codec passthrough.,))
1172 $(eval $(call Package/$(PKG_NAME)/Module,graylog2,Graylog2 logger,GELF logger for Graylog2 and Logstash.,))
1173 $(eval $(call Package/$(PKG_NAME)/Module,gsmopen,GSM endpoint,GSMopen is a channel driver that allows an SMS to be sent to and from\nFreeSWITCH as well as incoming and outgoing GSM voice calls.,+gsmlib +libctb +libjpeg +liblzma))
1174 $(eval $(call Package/$(PKG_NAME)/Module,h26x,H.26x passthrough,H.26x video codec passthrough.,))
1175 $(eval $(call Package/$(PKG_NAME)/Module,hash,Hash,This module provides a key-value in-memory datastore. Usable as a\nlimit backend.,))
1176 $(eval $(call Package/$(PKG_NAME)/Module,hiredis,Redis client,This module provides a mechanism to use Redis as a datastore.,+libhiredis))
1177 $(eval $(call Package/$(PKG_NAME)/Module,httapi,HT-TAPI,This module provides an API for controlling the switch by responding\nto HTTP requests.,))
1178 $(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.,))
1179 $(eval $(call Package/$(PKG_NAME)/Module,isac,iSAC,iSAC codec support.,@arm||i386||mips||mips64||mips64el||mipsel||x86_64))
1180 $(eval $(call Package/$(PKG_NAME)/Module,json_cdr,JSON CDR,JSON-based Call Detail Record handler.,))
1181 $(eval $(call Package/$(PKG_NAME)/Module,kazoo,Kazoo,Kazoo module for FreeSWITCH.,+erlang))
1182 $(eval $(call Package/$(PKG_NAME)/Module,lcr,LCR,This module adds a facility for least-cost routing.,))
1183 $(eval $(call Package/$(PKG_NAME)/Module,ldap,LDAP,LDAP module for FreeSWITCH.,+libopenldap))
1184 $(eval $(call Package/$(PKG_NAME)/Module,local_stream,Local stream,Connects multiple channels to a looped stream.,))
1185 $(eval $(call Package/$(PKG_NAME)/Module,logfile,File logger,Logs FreeSWITCH output to a file.,))
1186 $(eval $(call Package/$(PKG_NAME)/Module,loopback,Loopback,A loopback channel driver.,))
1187 $(eval $(call Package/$(PKG_NAME)/Module,lua,Lua,Lua language interface for FreeSWITCH.,+liblua))
1188 $(eval $(call Package/$(PKG_NAME)/Module,mp4v,MP4 video passthrough,MP4 video passthrough..,))
1189 $(eval $(call Package/$(PKG_NAME)/Module,native_file,Native file,Plays files that are already encoded in the right format.,))
1190 $(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.,))
1191 $(eval $(call Package/$(PKG_NAME)/Module,odbc_cdr,ODBC CDR,ODBC Call Detail Record handler.,))
1192 $(eval $(call Package/$(PKG_NAME)/Module,opus,Opus,Opus codec support.,+libopus))
1193 $(eval $(call Package/$(PKG_NAME)/Module,oreka,Oreka,This module provides media recording with the Oreka cross-platform\naudio stream recording and retrieval system.,))
1194 $(eval $(call Package/$(PKG_NAME)/Module,perl,Perl,This package contains mod_perl for FreeSWITCH.,+libdb47 +libgdbm +perlbase-essential @PERL_THREADS))
1195 $(eval $(call Package/$(PKG_NAME)/Module,png,PNG,Allows playback of video using PNG files.,@FS_STABLE_WITH_PNG))
1196 $(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
1197 $(eval $(call Package/$(PKG_NAME)/Module,portaudio,Portaudio,Voice through a local soundcard.,+portaudio))
1198 $(eval $(call Package/$(PKG_NAME)/Module,portaudio_stream,Portaudio streaming,Stream from an external audio source for Music on Hold.,+portaudio))
1199 $(eval $(call Package/$(PKG_NAME)/Module,posix_timer,POSIX timer,Add POSIX timer support.,))
1200 $(eval $(call Package/$(PKG_NAME)/Module,prefix,Prefix match,This module provides a data store with fast lookups by the longest\nprefix match rule.,))
1201 $(eval $(call Package/$(PKG_NAME)/Module,python,Python,Python support module.,+python-light))
1202 $(eval $(call Package/$(PKG_NAME)/Module,radius_cdr,Radius CDR,Radius Call Detail Record handler.,))
1203 $(eval $(call Package/$(PKG_NAME)/Module,random,Entropy,This module extracts entropy from FreeSWITCH and feeds it into\n/dev/random.,))
1204 $(eval $(call Package/$(PKG_NAME)/Module,rayo,Rayo,Rayo/XMPP 3PCC server for FreeSWITCH.,+$(PKG_NAME)-mod-ssml))
1205 $(eval $(call Package/$(PKG_NAME)/Module,redis,Redis limit backend,This module provides a mechanism to use Redis as a limit backend data\nstore.,))
1206 $(eval $(call Package/$(PKG_NAME)/Module,rss,RSS,Parses and reads XML based RSS feeds and reads the entries aloud via a TTS engine.,))
1207 $(eval $(call Package/$(PKG_NAME)/Module,rtc,Media streaming,Media streaming as used by WebRTC and mod_verto.,))
1208 $(eval $(call Package/$(PKG_NAME)/Module,rtmp,RTMP endpoint,RTMP endpoint support. Allows FreeSWITCH to be used from RTMP clients.,))
1209 $(eval $(call Package/$(PKG_NAME)/Module,say_de,German Say,Uses prerecorded sounds to read or say various things.,))
1210 $(eval $(call Package/$(PKG_NAME)/Module,say_en,English Say,Uses prerecorded sounds to read or say various things.,))
1211 $(eval $(call Package/$(PKG_NAME)/Module,say_es,Spanish Say,Uses prerecorded sounds to read or say various things.,))
1212 $(eval $(call Package/$(PKG_NAME)/Module,say_es_ar,Argentinian Spanish Say,Uses prerecorded sounds to read or say various things.,))
1213 $(eval $(call Package/$(PKG_NAME)/Module,say_fa,Persian Say,Uses prerecorded sounds to read or say various things.,))
1214 $(eval $(call Package/$(PKG_NAME)/Module,say_fr,French Say,Uses prerecorded sounds to read or say various things.,))
1215 $(eval $(call Package/$(PKG_NAME)/Module,say_he,Hebrew Say,Uses prerecorded sounds to read or say various things.,))
1216 $(eval $(call Package/$(PKG_NAME)/Module,say_hr,Croatian Say,Uses prerecorded sounds to read or say various things.,))
1217 $(eval $(call Package/$(PKG_NAME)/Module,say_hu,Hungarian Say,Uses prerecorded sounds to read or say various things.,))
1218 $(eval $(call Package/$(PKG_NAME)/Module,say_it,Italian Say,Uses prerecorded sounds to read or say various things.,))
1219 $(eval $(call Package/$(PKG_NAME)/Module,say_ja,Japanese Say,Uses prerecorded sounds to read or say various things.,))
1220 $(eval $(call Package/$(PKG_NAME)/Module,say_nl,Dutch Say,Uses prerecorded sounds to read or say various things.,))
1221 $(eval $(call Package/$(PKG_NAME)/Module,say_pl,Polish Say,Uses prerecorded sounds to read or say various things.,))
1222 $(eval $(call Package/$(PKG_NAME)/Module,say_pt,Portuguese Say,Uses prerecorded sounds to read or say various things.,))
1223 $(eval $(call Package/$(PKG_NAME)/Module,say_ru,Russian Say,Uses prerecorded sounds to read or say various things.,))
1224 $(eval $(call Package/$(PKG_NAME)/Module,say_sv,Swedish Say,Uses prerecorded sounds to read or say various things.,))
1225 $(eval $(call Package/$(PKG_NAME)/Module,say_th,Thai Say,Uses prerecorded sounds to read or say various things.,))
1226 $(eval $(call Package/$(PKG_NAME)/Module,say_zh,Chinese Say,Uses prerecorded sounds to read or say various things.,))
1227 $(eval $(call Package/$(PKG_NAME)/Module,shell_stream,Shell stream,Allows to stream audio from an arbitrary shell command.,))
1228 $(eval $(call Package/$(PKG_NAME)/Module,shout,Shout,Allows to stream audio from MP3s or Shoutcast streams.,+lame-lib +libmpg123 +libshout))
1229 $(eval $(call Package/$(PKG_NAME)/Module,skinny,Skinny,Skinny Call Control Protocol endpoint support.,))
1230 $(eval $(call Package/$(PKG_NAME)/Module,sms,SMS,This module provides an abstract facility for interfacing with SMS\nsystems.,))
1231 $(eval $(call Package/$(PKG_NAME)/Module,snapshot,Snapshot,This module can record a sliding window of audio and take snapshots\nto disk.,))
1232 $(eval $(call Package/$(PKG_NAME)/Module,sndfile,Soundfile,Adds sound format support via libsndfile.,+libsndfile))
1233 $(eval $(call Package/$(PKG_NAME)/Module,snmp,SNMP,An SNMP stats reporter.,+libnetsnmp))
1234 $(eval $(call Package/$(PKG_NAME)/Module,snom,SNOM,This module implements features specific to SNOM phones.,))
1235 $(eval $(call Package/$(PKG_NAME)/Module,sofia,Sofia SIP,SIP module.,))
1236 $(eval $(call Package/$(PKG_NAME)/Module,sonar,Sonar,This module measures the latency on an audio link by sending audible\naudio sonar pings.,))
1237 $(eval $(call Package/$(PKG_NAME)/Module,spandsp,SpanDSP,This module implements SpanDSP fax. It includes DSP and codec\nfunctionality.,+libjpeg +liblzma))
1238 $(eval $(call Package/$(PKG_NAME)/Module,spy,User Spy,This module adds the ability to monitor the audio of a channel.,))
1239 $(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.,))
1240 $(eval $(call Package/$(PKG_NAME)/Module,stress,Stress,This module attempts to detect voice stress on an audio channel.,))
1241 $(eval $(call Package/$(PKG_NAME)/Module,syslog,Syslog logger,Logs FreeSWITCH output to the syslog.,))
1242 $(eval $(call Package/$(PKG_NAME)/Module,theora,Theora passthrough,Theora video codec passthrough.,))
1243 $(eval $(call Package/$(PKG_NAME)/Module,tone_stream,Tone stream,Tone generation stream.,))
1244 $(eval $(call Package/$(PKG_NAME)/Module,translate,Number translation,This module implements number translation.,))
1245 $(eval $(call Package/$(PKG_NAME)/Module,tts_commandline,TTS command-line,Run a command-line and play the output file.,))
1246 $(eval $(call Package/$(PKG_NAME)/Module,unimrcp,UniMRCP,Allows communication with Media Resource Control Protocol servers.,))
1247 $(eval $(call Package/$(PKG_NAME)/Module,v8,V8,This package contains mod_v8 for FreeSWITCH.,@FS_STABLE_WITH_V8 @arm||i386||mipsel||x86_64))
1248 $(eval $(call Package/$(PKG_NAME)/Module,valet_parking,Valet parking,This module implements the valet call parking strategy.,))
1249 $(eval $(call Package/$(PKG_NAME)/Module,verto,Verto,Verto signaling protocol.,))
1250 $(eval $(call Package/$(PKG_NAME)/Module,vmd,Voicemail detection,This module detects voicemail beeps.,))
1251 $(eval $(call Package/$(PKG_NAME)/Module,voicemail,Voicemail,This module provides a voicemail system.,))
1252 $(eval $(call Package/$(PKG_NAME)/Module,voicemail_ivr,Voicemail IVR,This module provides an extensible voicemail IVR system.,))
1253 $(eval $(call Package/$(PKG_NAME)/Module,xml_cdr,XML CDR,XML Call Detail Record handler.,))
1254 $(eval $(call Package/$(PKG_NAME)/Module,xml_curl,XML cURL,Provides an XML cURL interfaces to pull dynamic XML configuration for\nFreeSWITCH over HTTP.,))
1255 $(eval $(call Package/$(PKG_NAME)/Module,xml_ldap,XML LDAP,LDAP XML gateway.,+libopenldap))
1256 $(eval $(call Package/$(PKG_NAME)/Module,xml_rpc,XML RPC,Allows using the webapi to control FreeSWITCH.,))
1257 $(eval $(call Package/$(PKG_NAME)/Module,xml_scgi,XML SCGI,SCGI XML Gateway.,))
1258 $(eval $(call Package/$(PKG_NAME)/Module,yaml,YAML,YAML language module.,+libyaml))
1259 $(eval $(call Package/$(PKG_NAME)/Module,yuv,Raw YUV,Raw YUV I420 video codec support.,@FS_STABLE_WITH_LIBYUV))
1260
1261 ################################
1262 # FreeSWITCH utilities
1263 # Params:
1264 # 1 - Package subname
1265 # 2 - Package title
1266 # 3 - Utility description
1267 # 4 - Utility dependencies
1268 # 5 - Utility is a script (y/n)
1269 ################################
1270
1271 $(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))
1272 $(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))
1273 $(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))
1274 $(eval $(call Package/$(PKG_NAME)/Util,gentls_cert,TLS certificate,Can be used to create TLS certificates and setup CAs.,+openssl-util,y))
1275 $(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))