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