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