2 # Copyright (C) 2009-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_DISTNAME
:=$(PKG_NAME
)_
$(PKG_SOURCE_PROTO
)
18 # The latest FS git hash in PKG_SOURCE_VERSION can be obtained from
19 # http://fisheye.freeswitch.org
21 PKG_SOURCE_URL
:=git
://git.
$(PKG_NAME
).org
/$(PKG_NAME
).git
22 FS_DEFAULT_HEAD
:=40c105322193b7d0160814ed8ffcd5bf7f566944
23 PKG_SOURCE_VERSION
:=$(if
$(CONFIG_FS_WITH_LATEST_HEAD
),$(shell git ls-remote
$(PKG_SOURCE_URL
) HEAD|cut
-f1
),$(FS_DEFAULT_HEAD
))
24 PKG_SOURCE_VERSION_SHORT
:=$(shell echo
$(PKG_SOURCE_VERSION
)|cut
-b
-7)
25 PKG_RELEASE
:=$(PKG_SOURCE_VERSION_SHORT
)
26 PKG_SOURCE_SUBDIR
:=$(PKG_DISTNAME
)
27 PKG_SOURCE
:=$(PKG_SOURCE_SUBDIR
)-$(PKG_SOURCE_VERSION_SHORT
).
tar.bz2
28 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
31 PKG_FIXUP
:=libtool autoreconf
35 TAR_OPTIONS
+= --strip-components
=1 -C
$(PKG_BUILD_DIR
)
146 spidermonkey-core-db \
149 spidermonkey-socket \
150 spidermonkey-teletone \
172 PKG_CONFIG_DEPENDS
:= \
173 CONFIG_FS_WITH_ALSA \
174 CONFIG_FS_WITH_BUILTIN_ZRTP \
175 CONFIG_FS_WITH_DEFAULT_HEAD \
176 CONFIG_FS_WITH_FIXED_POINT \
177 CONFIG_FS_WITH_IPV6 \
178 CONFIG_FS_WITH_LATEST_HEAD \
179 CONFIG_FS_WITH_LZMA \
180 CONFIG_FS_WITH_MYSQL \
181 CONFIG_FS_WITH_ODBC \
182 CONFIG_FS_WITH_OPENSSL \
184 CONFIG_FS_WITH_POSTGRESQL \
185 CONFIG_FS_WITH_SQLITE3 \
186 CONFIG_FS_WITH_SCTP \
187 CONFIG_FS_WITH_SRTP \
188 CONFIG_FS_WITH_THREADS \
189 CONFIG_FS_WITH_VISIBILITY \
190 $(patsubst %,CONFIG_PACKAGE_
$(PKG_NAME
)-mod-
%,$(FS_MOD_AVAILABLE
)) \
193 include $(INCLUDE_DIR
)/package.mk
194 include $(INCLUDE_DIR
)/nls.mk
197 define Package
/$(PKG_NAME
)/Default
201 URL
:=http
://www.
$(PKG_NAME
).org
/
202 MAINTAINER
:=Mazi Lo
<openwrt.mazilo@recursor.net
>
206 define Package
/$(PKG_NAME
)
207 $(call Package
/$(PKG_NAME
)/Default
)
208 TITLE
:=FreeSWITCH open source telephony platform
($(PKG_SOURCE_VERSION_SHORT
))
209 DEPENDS
:=+FS_WITH_OPENSSL
:libopenssl
+libcurl
+libiconv-full
+libjpeg
+libncurses
+libpthread
+librt
+libstdcpp
+libuuid
214 define Package
/$(PKG_NAME
)/description
215 FreeSWITCH is an open source telephony platform designed to
216 facilitate the creation of voice and chat driven products scaling
217 from a soft-phone up to a soft-switch. See http
://wiki.
$(PKG_NAME
).org
221 define Package
/$(PKG_NAME
)/config
222 source
"$(SOURCE)/Config.in"
226 define Package
/$(PKG_NAME
)-mod-spandsp
/config
227 config FS_WITH_FIXED_POINT
228 depends on PACKAGE_
$(PKG_NAME
)-mod-spandsp
229 bool
"Enable fixed point support for spandsp (may degrade performance)"
232 Compile spandsp package with a fixed point support. ONLY enabled this option when
233 necessary
, i.e. CPU doesn
't support floating computation.
237 define Package/$(PKG_NAME)-example-config
238 $(call Package/$(PKG_NAME)/Default)
239 TITLE:=FreeSWITCH example config (commented)
240 DEPENDS:= $(PKG_NAME)
244 define Package/$(PKG_NAME)-example-config/description
245 The default configuration included with FreeSWITCH. It is not intended to be
246 a final product, and is thus moved to /usr/share/$(PKG_NAME)/examples/conf to
247 be an example of how FreeSWITCH can be configured.
251 define Package/$(PKG_NAME)-config-upstream-defaults
252 $(call Package/$(PKG_NAME)/Default)
253 TITLE:=FreeSWITCH upstream config
254 DEPENDS:= $(PKG_NAME)
258 define Package/$(PKG_NAME)-config-upstream-defaults/description
259 The default configuration included with FreeSWITCH. It is not intended to be
260 a final product, and but is included for those who don't want to use the
261 OpenWRT configuration and
/or want to try things
as prepared by upstream.
265 define Package
/$(PKG_NAME
)-config-minimal
266 $(call Package
/$(PKG_NAME
)/Default
)
267 TITLE
:=FreeSWITCH minimal config
268 DEPENDS
:= $(PKG_NAME
)
272 define Package
/$(PKG_NAME
)-config-minimal
/description
273 A minimal configuration of FreeSWITCH for OpenWRT devices. Is what the UCI
274 configuration began with.
278 define Package
/$(PKG_NAME
)-collection-upstream-defaults
279 $(call Package
/$(PKG_NAME
)/Default
)
280 TITLE
:=FS upstream def sample conf
281 DEPENDS
:= $(PKG_NAME
) \
282 +$(PKG_NAME
)-config-upstream-defaults \
283 +$(PKG_NAME
)-mod-callcenter \
284 +$(PKG_NAME
)-mod-codec2 \
285 +$(PKG_NAME
)-mod-commands \
286 +$(PKG_NAME
)-mod-conference \
287 +$(PKG_NAME
)-mod-curl \
288 +$(PKG_NAME
)-mod-dialplan-xml \
289 +$(PKG_NAME
)-mod-dingaling \
290 +$(PKG_NAME
)-mod-dptools \
291 +$(PKG_NAME
)-mod-event-socket \
292 +$(PKG_NAME
)-mod-g723-1 \
293 +$(PKG_NAME
)-mod-g729 \
294 +$(PKG_NAME
)-mod-hash \
295 +$(PKG_NAME
)-mod-http-cache \
296 +$(PKG_NAME
)-mod-ilbc \
297 +$(PKG_NAME
)-mod-local-stream \
298 +$(PKG_NAME
)-mod-lua \
299 +$(PKG_NAME
)-mod-native-file \
300 +$(PKG_NAME
)-mod-sndfile \
301 +$(PKG_NAME
)-mod-sofia \
302 +$(PKG_NAME
)-mod-speex \
303 +$(PKG_NAME
)-mod-syslog \
304 +$(PKG_NAME
)-mod-tone-stream \
305 +$(PKG_NAME
)-mod-xml-curl \
306 +$(PKG_NAME
)-mod-xml-rpc \
311 define Package
/$(PKG_NAME
)-collection-minimal
312 $(call Package
/$(PKG_NAME
)/Default
)
313 TITLE
:=FreeSWITCH minimal package collection
315 DEPENDS
:= $(PKG_NAME
) \
316 +$(PKG_NAME
)-config-minimal \
317 +$(PKG_NAME
)-mod-codec2 \
318 +$(PKG_NAME
)-mod-commands \
319 +$(PKG_NAME
)-mod-dialplan-xml \
320 +$(PKG_NAME
)-mod-dptools \
321 +$(PKG_NAME
)-mod-event-socket \
322 +$(PKG_NAME
)-mod-hash \
323 +$(PKG_NAME
)-mod-local-stream \
324 +$(PKG_NAME
)-mod-sndfile \
325 +$(PKG_NAME
)-mod-sofia \
326 +$(PKG_NAME
)-mod-syslog \
327 +$(PKG_NAME
)-mod-tone-stream \
332 define Package
/$(PKG_NAME
)-sounds-en-08KHz
333 $(call Package
/$(PKG_NAME
)/Default
)
334 TITLE
:=FreeSWITCH
8KHz english sounds
335 DEPENDS
:= $(PKG_NAME
)
339 define Package
/$(PKG_NAME
)-sounds-en-16KHz
340 $(call Package
/$(PKG_NAME
)/Default
)
341 TITLE
:=FreeSWITCH
16KHz english sounds
342 DEPENDS
:= +$(PKG_NAME
)-sounds-en-08KHz
346 define Package
/$(PKG_NAME
)-sounds-en-32KHz
347 $(call Package
/$(PKG_NAME
)/Default
)
348 TITLE
:=FreeSWITCH
32KHz english sounds
349 DEPENDS
:= +$(PKG_NAME
)-sounds-en-16KHz
353 define Package
/$(PKG_NAME
)-sounds-en-48KHz
354 $(call Package
/$(PKG_NAME
)/Default
)
355 TITLE
:=FreeSWITCH
48KHz english sounds
356 DEPENDS
:= +$(PKG_NAME
)-sounds-en-32KHz
360 define Package
/$(PKG_NAME
)-sounds-moh-08KHz
361 $(call Package
/$(PKG_NAME
)/Default
)
362 TITLE
:=FreeSWITCH
8KHz music-on-hold sounds
363 DEPENDS
:= $(PKG_NAME
)
367 define Package
/$(PKG_NAME
)-sounds-moh-16KHz
368 $(call Package
/$(PKG_NAME
)/Default
)
369 TITLE
:=FreeSWITCH
16KHz music-on-hold sounds
370 DEPENDS
:= +$(PKG_NAME
)-sounds-moh-08KHz
374 define Package
/$(PKG_NAME
)-sounds-moh-32KHz
375 $(call Package
/$(PKG_NAME
)/Default
)
376 TITLE
:=FreeSWITCH
32KHz music-on-hold sounds
377 DEPENDS
:= +$(PKG_NAME
)-sounds-moh-16KHz
381 define Package
/$(PKG_NAME
)-sounds-moh-48KHz
382 $(call Package
/$(PKG_NAME
)/Default
)
383 TITLE
:=FreeSWITCH
48KHz music-on-hold sounds
384 DEPENDS
:= +$(PKG_NAME
)-sounds-moh-32KHz
388 define Package
/$(PKG_NAME
)-tools
389 $(call Package
/$(PKG_NAME
)/Default
)
390 TITLE
:=FreeSWITCH control tools
391 DEPENDS
:= $(PKG_NAME
)
395 define Download
/files
398 URL
:=$(if
$(4),$(4),http
://files.
$(PKG_NAME
).org
)/$(5)
402 $(LN
) $(DL_DIR
)/$(2) $(PKG_BUILD_DIR
)/$(6)
404 $$(eval
$$(call Download
,$(1)))
408 MAKE_INSTALL_TARGETS
:=install
411 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-celt
),)
412 $(eval
$(call Download
/files
,celt
,celt-0.10
.0.
tar.gz
,a656f6176e9be84027c0e51ceedd710f
,,downloads
/libs
/,libs
/))
416 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-curl
),)
417 $(eval
$(call Download
/files
,json-cdr
,json-c-0.9.
tar.gz
,4653b3b9c568bb9c782178abfaac128d
,,downloads
/libs
/,libs
/))
421 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-event-zmq
),)
422 $(eval
$(call Download
/files
,event-zmq
,zeromq-2.1
.9.
tar.gz
,94c5e0262a79c5f82bc0b178c1f8a33d
,http
://download.zeromq.org http
://download.zeromq.org
/historic
,,libs
/))
426 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-flite
),)
427 $(eval
$(call Download
/files
,flite
,flite-1.5
.4-current.
tar.bz2
,f3a2d88b1059f6f4ff3c20a8169bc0f4
,,downloads
/libs
/,libs
/))
431 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-opus
),)
432 $(eval
$(call Download
/files
,opus
,opus-1.0
.3.
tar.gz
,86eedbd3c5a0171d2437850435e6edff
,,downloads
/libs
/,libs
/))
436 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-sounds-en-08KHz
),)
437 $(eval
$(call Download
/files
,sounds-en-08KHz
,$(PKG_NAME
)-sounds-en-us-callie-8000-1.0
.25.
tar.gz
,1140efad453ed1a72259d799f7fef0fc
,,,))
438 MAKE_INSTALL_TARGETS
+= sounds-install
442 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-sounds-en-16KHz
),)
443 $(eval
$(call Download
/files
,sounds-en-16KHz
,$(PKG_NAME
)-sounds-en-us-callie-16000-1.0
.25.
tar.gz
,20b9bf1b1637be2abe838113fb675c41
,,,))
444 MAKE_INSTALL_TARGETS
+= hd-sounds-install
448 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-sounds-en-32KHz
),)
449 $(eval
$(call Download
/files
,sounds-en-32KHz
,$(PKG_NAME
)-sounds-en-us-callie-32000-1.0
.25.
tar.gz
,977d453d8ffa9a5b0fadee8408e84f60
,,,))
450 MAKE_INSTALL_TARGETS
+= uhd-sounds-install
454 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-sounds-en-48KHz
),)
455 $(eval
$(call Download
/files
,sounds-en-48KHz
,$(PKG_NAME
)-sounds-en-us-callie-48000-1.0
.25.
tar.gz
,96ec0df908eb1c535063fdc8580626d2
,,,))
456 MAKE_INSTALL_TARGETS
+= cd-sounds-install
460 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-sounds-moh-08KHz
),)
461 $(eval
$(call Download
/files
,sounds-moh-08KHz
,$(PKG_NAME
)-sounds-music-8000-1.0
.8.
tar.gz
,f63ef3cc3507af079ae5c7b8b8a01e42
,,,))
462 MAKE_INSTALL_TARGETS
+= moh-install
466 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-sounds-moh-16KHz
),)
467 $(eval
$(call Download
/files
,sounds-moh-16KHz
,$(PKG_NAME
)-sounds-music-16000-1.0
.8.
tar.gz
,7fd0ca9a9e3878783baa39b8187743bf
,,,))
468 MAKE_INSTALL_TARGETS
+= hd-moh-install
472 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-sounds-moh-32KHz
),)
473 $(eval
$(call Download
/files
,sounds-moh-32KHz
,$(PKG_NAME
)-sounds-music-32000-1.0
.8.
tar.gz
,7e03932ea81b8d0bf6d686f838b060b4
,,,))
474 MAKE_INSTALL_TARGETS
+= uhd-moh-install
478 ifneq ($(CONFIG_PACKAGE_
$(PKG_NAME
)-sounds-moh-48KHz
),)
479 $(eval
$(call Download
/files
,sounds-moh-48KHz
,$(PKG_NAME
)-sounds-music-48000-1.0
.8.
tar.gz
,d06cd2a80379f224affab21f5180e4c6
,,,))
480 MAKE_INSTALL_TARGETS
+= cd-moh-install
485 # XXX: -fgnu89-inline is not supported on all compiler versions, so only enable it on avr32 where it solves build issues
487 ifneq ($(CONFIG_avr32
),)
488 TARGET_CFLAGS
+= -fgnu89-inline
489 TARGET_CXXFLAGS
+= -fgnu89-inline
493 ifneq ($(CONFIG_USE_EGLIBC
),)
494 ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP
),)
495 TARGET_CFLAGS
+= -DNO_GETLOGIN
500 FS_TARGET_CFLAGS
:= $(TARGET_CFLAGS
) -DLUA_USE_LINUX
$(FPIC
) -std
=gnu99
-Wno-format
501 FS_TARGET_CXXFLAGS
:= $(TARGET_CXXFLAGS
) -DLUA_USE_LINUX
$(FPIC
) -Wno-format
502 FS_TARGET_CPPFLAGS
:= -I.
-I.
/lua
$(if
$(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-erlang-event
),-I
$(STAGING_DIR_HOST
)/lib
/erlang
/lib
/erl_interface-3.7
.7/include) $(if
$(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-json-cdr
),-Wno-error
) $(TARGET_CPPFLAGS
)
506 --host
=$(GNU_TARGET_NAME
) \
507 --build
=$(GNU_HOST_NAME
) \
508 --prefix="/usr/share/$(PKG_NAME)" \
509 --bindir="/usr/bin" \
510 --libdir="/usr/lib" \
511 --srcdir="$(PKG_BUILD_DIR)" \
512 --sysconfdir
="/etc/$(PKG_NAME)" \
513 --with-modinstdir
="/usr/lib/$(PKG_NAME)" \
514 --with-random
="/dev/urandom" \
515 $(if
$(CONFIG_FS_WITH_MYSQL
),--with
,--without
)-mysql \
516 $(if
$(CONFIG_FS_WITH_POSTGRESQL
),--with
,--without
)-pgsql \
517 $(if
$(CONFIG_FS_WITH_SQLITE3
),--with
,--without
)-sqlite3 \
518 $(call autoconf_bool
,CONFIG_FS_WITH_IPV6
,ipv6
) \
519 $(if
$(CONFIG_FS_WITH_OPENSSL
),--with
,--without
)-openssl \
520 $(call autoconf_bool
,CONFIG_FS_WITH_OPT
,optimization
) \
521 $(if
$(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-celt
),--with-ogg
="$(STAGING_DIR)/usr",--without-ogg
) \
522 $(if
($(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-curl
)|
$(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-xml-cdr
)|
$(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-xml-curl
)),--with-libcurl
="$(STAGING_DIR)/usr",--without-libcurl
) \
523 $(if
$(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-erlang-event
),--with
,--without
)-erlang \
524 $(if
$(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-java
),--with-java
="$(STAGING_DIR)/usr",--without-java
) \
525 $(call autoconf_bool
,CONFIG_FS_WITH_LZMA
,lzma
) \
526 $(call autoconf_bool
,CONFIG_FS_WITH_POSTGRESQL
,core-pgsql-support
) \
527 $(call autoconf_bool
,CONFIG_FS_WITH_POSTGRESQL
,core-pgsql-pkgconfig
) \
528 $(call autoconf_bool
,CONFIG_PACKAGE_
$(PKG_NAME
)-mod-spandsp
&& CONFIG_FS_WITH_FIXED_POINT
,fixed-point
) \
529 $(call autoconf_bool
,CONFIG_PACKAGE_
$(PKG_NAME
)-mod-spandsp
,builtin-tiff
) \
530 $(call autoconf_bool
,CONFIG_PACKAGE_
$(PKG_NAME
)-mod-timerfd
,timerfd-wrapper
) \
531 $(call autoconf_bool
,CONFIG_FS_WITH_SRTP
,srtp
) \
532 $(call autoconf_bool
,CONFIG_FS_WITH_BUILTIN_ZRTP
,zrtp
) \
533 $(call autoconf_bool
,CONFIG_FS_WITH_ODBC
,core-odbc-support
) \
534 $(call autoconf_bool
,CONFIG_FS_WITH_THREADS
,threads
) \
535 $(call autoconf_bool
,CONFIG_FS_WITH_VISIBILITY
,visibility
) \
536 $(if
$(CONFIG_FS_WITH_ODBC
),--with-odbc
="$(STAGING_DIR)/usr") \
537 $(if
$(CONFIG_FS_WITH_ODBC
),--with-odbc-lib
="$(STAGING_DIR)/usr/lib") \
541 config_TARGET_CC
="$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)" \
542 config_TARGET_CFLAGS
="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CFLAGS)" \
543 config_TARGET_CXX
="$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX)" \
544 config_TARGET_CXXFLAGS
="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CXXFLAGS)" \
545 config_TARGET_CPPFLAGS
="$(FS_TARGET_CPPFLAGS)" \
546 config_TARGET_READLINE_INC
="$(FS_TARGET_CPPFLAGS)" \
547 config_TARGET_READLINE_LIBS
="$(TARGET_LDFLAGS) -lreadline -lncurses" \
548 config_TARGET_LIBS
="$(TARGET_LDFLAGS) -lpthread -ldl" \
549 config_BUILD_CC
="$(HOSTCC)" \
550 config_BUILD_CFLAGS
="$(HOST_CFLAGS)" \
551 CC_FOR_BUILD
="$(HOSTCC)" \
552 BUILDTOOL_CC
="$(HOSTCC)" \
553 BUILDTOOL_CCLD
="$(HOSTCC)" \
554 LDFLAGS
="$$$$LDFLAGS" \
555 LDFLAGS_FOR_BUILD
="$(HOST_LDFLAGS)" \
556 CC
="$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)" \
557 CXX
="$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX)" \
558 AR
="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ar" \
559 RANLIB
="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ranlib" \
560 CFLAGS
="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CFLAGS)" \
561 CXXFLAGS
="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CXXFLAGS)" \
562 CPPFLAGS
="$(FS_TARGET_CPPFLAGS)" \
563 LDFLAGS
="$(TARGET_LDFLAGS) -Wl,-rpath-link=\"$(STAGING_DIR)/usr/lib\"" \
564 HOST_CC
="/usr/bin/cc" \
565 HOST_CXX
="/usr/bin/g++" \
567 ax_cv_c_compiler_vendor
="gnu" \
568 ac_cv_cflags_warn_all_ansi
='-Wall -std=c99 -Wno-unused-variable' \
569 ac_cv_dev_urandom
="yes" \
570 ac_cv_file_dbd_apr_dbd_mysql_c
="no" \
571 ac_cv_file__dev_random
="no" \
572 ac_cv_file__dev_urandom
="yes" \
573 ac_cv_file___dev_urandom_
="yes" \
574 ac_cv_func_mmap_fixed_mapped
="yes" \
575 ac_cv_func_pthread_rwlock_init
="yes" \
576 ac_cv_struct_rlimit
="yes" \
577 apr_cv_mutex_recursive
="yes" \
578 apr_cv_process_shared_works
="no" \
579 apr_cv_tcp_nodelay_with_cork
="yes" \
580 apr_cv_type_rwlock_t
="yes" \
581 $(if
$(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-perl
),ac_cv_path_PERL
="yes",) \
582 libzmq_cv_cxx_werror_flag
="" \
586 $(call Build
/Prepare
/Default
)
588 $(call Prepare
/event-zmq
)
589 $(call Prepare
/flite
)
590 $(call Prepare
/json-cdr
)
592 $(call Prepare
/sounds-en-08KHz
)
593 $(call Prepare
/sounds-en-16KHz
)
594 $(call Prepare
/sounds-en-32KHz
)
595 $(call Prepare
/sounds-en-48KHz
)
596 $(call Prepare
/sounds-moh-08KHz
)
597 $(call Prepare
/sounds-moh-16KHz
)
598 $(call Prepare
/sounds-moh-32KHz
)
599 $(call Prepare
/sounds-moh-48KHz
)
603 define Build
/Configure
604 if
[ -d
$(PKG_BUILD_DIR
)/libs
/libcodec2
/src
]; then \
605 (cd
$(PKG_BUILD_DIR
)/libs
/libcodec2
/src
; $(HOSTCC
) -c generate_codebook.c
; $(HOSTCC
) -o generate_codebook generate_codebook.o
-lm
) \
607 (cd
$(PKG_BUILD_DIR
); $(AM_TOOL_PATHS
) .
/bootstrap.sh
)
608 $(call Build
/Configure
/Default
,)
609 $(foreach m
,$(FS_MOD_AVAILABLE
),
610 $(if
$(CONFIG_PACKAGE_
$(PKG_NAME
)-mod-
$(m
)),
611 $(SED
) 's|^[ #]*\([^#]*/mod_$(subst -,_,$(m))\)$$$$|\1|g' $(PKG_BUILD_DIR
)/modules.conf
613 $(SED
) 's|^\([^#]*/mod_$(subst -,_,$(m))\)$$$$|#\1|g' $(PKG_BUILD_DIR
)/modules.conf
620 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
621 AR
="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ar" \
622 RANLIB
="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ranlib" \
623 CC
="$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)" \
624 CXX
="$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX)" \
625 DESTDIR
="$(PKG_INSTALL_DIR)" \
626 LDFLAGS_FOR_BUILD
="$(HOST_LDFLAGS)" \
627 all $(MAKE_INSTALL_TARGETS
)
628 $(SED
) 's|^\([ \t]*\)\(.*\)"mod_console"\(.*\)$$$$|\1<!-- \2"mod_console"\3 -->|' $(PKG_INSTALL_DIR
)/etc
/$(PKG_NAME
)/autoload_configs
/modules.conf.xml
629 $(SED
) 's|^\([ \t]*\)<!-- *\(.*\)"mod_syslog"\(.*\) *-->\(.*\)$$$$|\1\2"mod_syslog"\3\4|' $(PKG_INSTALL_DIR
)/etc
/$(PKG_NAME
)/autoload_configs
/modules.conf.xml
633 define Build
/InstallDev
634 $(INSTALL_DIR
) $(1)/usr
/include/$(PKG_NAME
)
635 $(INSTALL_DIR
) $(1)/usr
/lib
636 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/$(PKG_NAME
)/include/* $(1)/usr
/include/$(PKG_NAME
)/
637 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
$(PKG_NAME
).
{a
,so
*} $(1)/usr
/lib
/
641 define Package
/$(PKG_NAME
)/install
642 $(INSTALL_DIR
) $(1)/etc
/config
643 $(INSTALL_DIR
) $(1)/etc
/default
644 $(INSTALL_DIR
) $(1)/etc
/$(PKG_NAME
)
645 $(INSTALL_DIR
) $(1)/etc
/$(PKG_NAME
)/scripts
646 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
647 $(INSTALL_DIR
) $(1)/etc
/init.d
648 $(INSTALL_DIR
) $(1)/usr
/bin
649 $(INSTALL_DIR
) $(1)/usr
/lib
650 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
651 $(INSTALL_BIN
) .
/files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/$(PKG_NAME
)
652 $(INSTALL_DATA
) .
/files
/$(PKG_NAME
).config
$(1)/etc
/config
/$(PKG_NAME
)
653 $(INSTALL_DATA
) .
/files
/$(PKG_NAME
).default
$(1)/etc
/default
/$(PKG_NAME
)
654 $(INSTALL_DATA
) .
/files
/$(PKG_NAME
).hotplug
$(1)/etc
/hotplug.d
/iface
/90-$(PKG_NAME
)
655 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
656 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
$(PKG_NAME
)* $(1)/usr
/lib
/
657 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/$(PKG_NAME
).
pc $(1)/usr
/lib
/pkgconfig
/
658 $(if
$(1)/usr
/lib
/lib
$(PKG_NAME
).la
,sed
-i
-e
"s#-lcurl -lz\(.*\)/usr/lib/libexpat.la\(.*\)$(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)\(.*\)#-L/usr/lib -lcurl -lz /usr/lib/libexpat.la\2/usr\3#g" $(1)/usr
/lib
/lib
$(PKG_NAME
).la
)
662 define Package
/$(PKG_NAME
)-collection-upstream-defaults
/install
663 $(INSTALL_DIR
) $(1)/etc
/$(PKG_NAME
)
667 define Package
/$(PKG_NAME
)-example-config
/install
668 $(INSTALL_DIR
) $(1)/usr
/share
/$(PKG_NAME
)/examples
/conf
669 $(CP
) $(PKG_INSTALL_DIR
)/etc
/$(PKG_NAME
)/* $(1)/usr
/share
/$(PKG_NAME
)/examples
/conf
/
673 define Package
/$(PKG_NAME
)-config-upstream-defaults
/install
674 $(INSTALL_DIR
) $(1)/etc
/$(PKG_NAME
)
675 $(CP
) $(PKG_INSTALL_DIR
)/etc
/$(PKG_NAME
) $(1)/etc
679 define Package
/$(PKG_NAME
)-collection-minimal
/install
680 $(INSTALL_DIR
) $(1)/etc
/$(PKG_NAME
)
684 define Package
/$(PKG_NAME
)-collection-uci-minimal
/install
685 $(INSTALL_DIR
) $(1)/etc
/$(PKG_NAME
)
689 define Package
/$(PKG_NAME
)-config-minimal
/install
690 $(INSTALL_DIR
) $(1)/etc
/$(PKG_NAME
)/autoload_configs
693 # Copying dialplan directory jingle_profiles sip_profiles $(PKG_NAME).xml
694 # fur_elise.ttml mime.types tetris.ttml tones.conf vars.xml
696 $(foreach f
,dialplan directory jingle_profiles sip_profiles
$(PKG_NAME
).xml fur_elise.ttml mime.types tetris.ttml vars.xml
,$(if
$(PKG_BUILD_DIR
)/conf
/vanilla
/$(f
),$(CP
) $(PKG_BUILD_DIR
)/conf
/vanilla
/$(f
) $(1)/etc
/$(PKG_NAME
);))
699 # Copying acl ivr modules post_load_modules switch timezones
701 $(foreach f
,acl ivr modules post_load_modules switch timezones
,$(if
$(PKG_BUILD_DIR
)/conf
/vanilla
/autoload_configs
/$(f
).conf.xml
,$(CP
) $(PKG_BUILD_DIR
)/conf
/vanilla
/autoload_configs
/$(f
).conf.xml
$(1)/etc
/$(PKG_NAME
)/autoload_configs
;))
705 define Package
/$(PKG_NAME
)-sounds-en-08KHz
/install
709 for
dir in
`(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
711 [ -d
$(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/8000 ] ||
$(INSTALL_DIR
) $(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/8000; \
712 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/8000/* $(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/8000; \
717 define Package
/$(PKG_NAME
)-sounds-en-16KHz
/install
721 for
dir in
`(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
723 [ -d
$(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/16000 ] ||
$(INSTALL_DIR
) $(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/16000; \
724 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/16000/* $(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/16000; \
729 define Package
/$(PKG_NAME
)-sounds-en-32KHz
/install
733 for
dir in
`(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
735 [ -d
$(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/32000 ] ||
$(INSTALL_DIR
) $(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/32000; \
736 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/32000/* $(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/32000; \
741 define Package
/$(PKG_NAME
)-sounds-en-48KHz
/install
745 for
dir in
`(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
747 [ -d
$(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/48000 ] ||
$(INSTALL_DIR
) $(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/48000; \
748 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/48000/* $(1)/usr
/share
/$(PKG_NAME
)/sounds
/en
/us
/callie
/$$$${dir}/48000; \
753 define Package
/$(PKG_NAME
)-sounds-moh-08KHz
/install
757 [ -d
$(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
/8000 ] ||
$(INSTALL_DIR
) $(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
/8000;
758 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/$(PKG_NAME
)/sounds
/music
/8000 $(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
;
762 define Package
/$(PKG_NAME
)-sounds-moh-16KHz
/install
766 [ -d
$(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
/16000 ] ||
$(INSTALL_DIR
) $(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
/16000;
767 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/$(PKG_NAME
)/sounds
/music
/16000 $(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
;
771 define Package
/$(PKG_NAME
)-sounds-moh-32KHz
/install
775 [ -d
$(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
/32000 ] ||
$(INSTALL_DIR
) $(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
/32000;
776 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/$(PKG_NAME
)/sounds
/music
/32000 $(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
;
780 define Package
/$(PKG_NAME
)-sounds-moh-48KHz
/install
784 [ -d
$(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
/48000 ] ||
$(INSTALL_DIR
) $(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
/48000;
785 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/$(PKG_NAME
)/sounds
/music
/48000 $(1)/usr
/share
/$(PKG_NAME
)/sounds
/music
;
789 define Package
/$(PKG_NAME
)-tools
/install
790 $(INSTALL_DIR
) $(1)/usr
/bin
791 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/fs_cli
$(1)/usr
/bin
/
792 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/fs_encode
$(1)/usr
/bin
/
793 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/fs_ivrd
$(1)/usr
/bin
/
794 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/fsxs
$(1)/usr
/bin
/
795 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/gentls_cert
$(1)/usr
/bin
/
796 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/tone2wav
$(1)/usr
/bin
/
802 # 3. Selection on module configuration file
803 # 4. Files (module files include different names)
804 # 5. Files (supporting files include different names)
805 # 6. Inter module depends
809 define Package
/$(PKG_NAME
)-mod-
$(1)
810 $$(call Package
/$(PKG_NAME
)/Default
)
811 TITLE
:= FS
$(2) module
812 DEPENDS
:= $(PKG_NAME
) $(foreach m
,$(6),+$(PKG_NAME
)-mod-
$(m
)) $(7)
815 define Package
/$(PKG_NAME
)-mod-
$(1)/install
816 [ -z
"mod_$(subst -,_,$(1))" ] ||
$(INSTALL_DIR
) $$(1)/usr
/lib
/$(PKG_NAME
)
818 for f in
$$$$(realpath
$$$$(wildcard $(PKG_INSTALL_DIR
)/usr
/lib
/$(PKG_NAME
)/mod_
$(subst -,_
,$(1)).
*)) $$$$(wildcard $(PKG_INSTALL_DIR
)/usr
/lib
/$(PKG_NAME
)/$(4)_
*); \
820 $(CP
) $$$$$$$${f} $$(1)/usr
/lib
/$(PKG_NAME
)/; \
824 # mod_$(subst -,_,$(1)): $(5)
826 $(foreach f
,$(5),[ -d
$(dir $$(1)/usr
/${f}) ] ||
$(INSTALL_DIR
) $(dir $$(1)/usr
/${f});$(CP
) $$$$(wildcard $(PKG_INSTALL_DIR
)/usr
/${f}*) $(dir $$(1)/usr
/${f});)
829 # mod_$(subst -,_,$(1)): Clean installed library control files from referencig to OpenWRT PATH.
831 for f in
`ls $$(1)/usr/lib/$(PKG_NAME)/*.la`; \
833 sed
-i
-e
"s#' \(.*\)/usr/lib/libexpat.la\(.*\)$(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)\(.*\)#' -L/usr/lib -L/usr/lib/libiconv-full/lib -L/usr/lib/libintl-full/lib /usr/lib/lib$(PKG_NAME).la /usr/lib/libexpat.la\2/usr\3#g;s#' \(.*\)/usr/lib/libintl-full/lib#' -L/usr/lib -L/usr/lib/libiconv-full/lib -L/usr/lib/libintl-full/lib#g;s#-L\.\.##g;s#$(PKG_BUILD_DIR)\(.*\)/usr/lib/libtiff.la\(.*\)#/usr/lib/libtiff.la\2#g" $$$$$$$${f}; \
837 # 1. mod_$(subst -,_,$(1)) XML configuration files from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/conf/$(3)/autoload_configs/$(subst -,_,$(1)).conf.xml)))
839 $$$$(if
$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR
)/conf
/$(3)/autoload_configs
/$(subst -,_
,$(1)).conf.xml
)),[ -d
$$(1)/etc
/$(PKG_NAME
)/autoload_configs
] ||
$(INSTALL_DIR
) $$(1)/etc
/$(PKG_NAME
)/autoload_configs
;$(CP
) $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR
)/conf
/$(3)/autoload_configs
/$(subst -,_
,$(1)).conf.xml
)) $$(1)/etc
/$(PKG_NAME
)/autoload_configs
)
842 # 2. mod_$(subst -,_,$(1)) XML configuration files from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/$(3)/$(1)/*/$(subst -,_,$(1)).conf.xml)))
844 $$$$(if
$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR
)/$(3)/$(1)/*/$(subst -,_
,$(1)).conf.xml
)),[ -d
$$(1)/etc
/$(PKG_NAME
)/autoload_configs
] ||
$(INSTALL_DIR
) $$(1)/etc
/$(PKG_NAME
)/autoload_configs
;$(CP
) $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR
)/$(3)/$(1)/*/$(subst -,_
,$(1)).conf.xml
)) $$(1)/etc
/$(PKG_NAME
)/autoload_configs
)
847 # 3. mod_$(subst -,_,$(1)) XML configuration files from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/conf/autoload_configs/$(subst -,_,$(1)).conf.xml)))
849 $$$$(if
$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR
)/src
/$(3)/*/mod_
$(subst -,_
,$(1))/conf
/autoload_configs
/$(subst -,_
,$(1)).conf.xml
)),[ -d
$$(1)/etc
/$(PKG_NAME
)/autoload_configs
] ||
$(INSTALL_DIR
) $$(1)/etc
/$(PKG_NAME
)/autoload_configs
;$(CP
) $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR
)/src
/$(3)/*/mod_
$(subst -,_
,$(1))/conf
/autoload_configs
/$(subst -,_
,$(1)).conf.xml
)) $$(1)/etc
/$(PKG_NAME
)/autoload_configs
)
852 # 4. mod_$(subst -,_,$(1)) XML configuration files from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/conf*/$(subst -,_,$(1)).conf.xml)))
854 $$$$(if
$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR
)/src
/$(3)/*/mod_
$(subst -,_
,$(1))/conf
*/$(subst -,_
,$(1)).conf.xml
)),[ -d
$$(1)/etc
/$(PKG_NAME
)/autoload_configs
] ||
$(INSTALL_DIR
) $$(1)/etc
/$(PKG_NAME
)/autoload_configs
;$(CP
) $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR
)/src
/$(3)/*/mod_
$(subst -,_
,$(1))/conf
*/$(subst -,_
,$(1)).conf.xml
)) $$(1)/etc
/$(PKG_NAME
)/autoload_configs
)
857 # 5. mod_$(subst -,_,$(1)) XML configuration files from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/src/$(3)/*/mod_$(subst -,_,$(1))/$(subst -,_,$(1)).conf.xml)))
859 $$$$(if
$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR
)/src
/$(3)/*/mod_
$(subst -,_
,$(1))/$(subst -,_
,$(1)).conf.xml
)),[ -d
$$(1)/etc
/$(PKG_NAME
)/autoload_configs
] ||
$(INSTALL_DIR
) $$(1)/etc
/$(PKG_NAME
)/autoload_configs
;$(CP
) $$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR
)/src
/$(3)/*/mod_
$(subst -,_
,$(1))/$(subst -,_
,$(1)).conf.xml
)) $$(1)/etc
/$(PKG_NAME
)/autoload_configs
)
862 # 6. Additional configuration files for mod_$(subst -,_,$(1)) from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/conf/$(3)/$(1)/*.$(1))))
864 $$$$(if
$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR
)/conf
/$(3)/$(1)/*.
$(1))),[ -d
$$(1)/etc
/$(PKG_NAME
)/$(1) ] ||
$(INSTALL_DIR
) $$(1)/etc
/$(PKG_NAME
)/$(1);$(CP
) $(PKG_BUILD_DIR
)/conf
/$(3)/$(1) $$(1)/etc
/$(PKG_NAME
))
867 define Package
/$(PKG_NAME
)-mod-
$(1)/postinst
869 sed
-i
-e
's|^\([ \t]*\)<!-- *\(.*\)"mod_$(subst -,_,$(1))"\(.*\) *-->\(.*\)$$$$|\1\2"mod_$(subst -,_,$(1))"\3\4|' $$$${IPKG_INSTROOT}/etc
/$(PKG_NAME
)/autoload_configs
/modules.conf.xml
872 define Package
/$(PKG_NAME
)-mod-
$(1)/prerm
874 sed
-i
-e
's|^\([ \t]*\)\(.*\)"mod_$(subst -,_,$(1))"\(.*\)$$$$|\1<!-- \2"mod_$(subst -,_,$(1))"\3 -->|' $$$${IPKG_INSTROOT}/etc
/$(PKG_NAME
)/autoload_configs
/modules.conf.xml
877 $$(eval
$$(call BuildPackage
,$(PKG_NAME
)-mod-
$(1)))
881 $(eval
$(call BuildPackage
,$(PKG_NAME
)))
882 $(eval
$(call BuildPackage
,$(PKG_NAME
)-collection-upstream-defaults
))
883 $(eval
$(call BuildPackage
,$(PKG_NAME
)-collection-minimal
))
884 $(eval
$(call BuildPackage
,$(PKG_NAME
)-sounds-en-08KHz
))
885 $(eval
$(call BuildPackage
,$(PKG_NAME
)-sounds-en-16KHz
))
886 $(eval
$(call BuildPackage
,$(PKG_NAME
)-sounds-en-32KHz
))
887 $(eval
$(call BuildPackage
,$(PKG_NAME
)-sounds-en-48KHz
))
888 $(eval
$(call BuildPackage
,$(PKG_NAME
)-sounds-moh-08KHz
))
889 $(eval
$(call BuildPackage
,$(PKG_NAME
)-sounds-moh-16KHz
))
890 $(eval
$(call BuildPackage
,$(PKG_NAME
)-sounds-moh-32KHz
))
891 $(eval
$(call BuildPackage
,$(PKG_NAME
)-sounds-moh-48KHz
))
892 $(eval
$(call BuildPackage
,$(PKG_NAME
)-tools
))
893 $(eval
$(call BuildPackage
,$(PKG_NAME
)-example-config
))
894 $(eval
$(call BuildPackage
,$(PKG_NAME
)-config-upstream-defaults
))
895 $(eval
$(call BuildPackage
,$(PKG_NAME
)-config-minimal
))
899 # $(eval $(call BuildPlugin,Name,Title,Selection on module Conf File,Files,Inter Depends,Extra Depends))
901 $(eval
$(call BuildPlugin
,abstraction
,An Abstraction To API Call
,vanilla
,,,,))
902 $(eval
$(call BuildPlugin
,alsa
,Alsa Endpoint
,vanilla
,,,,+FS_WITH_ALSA
:alsa-lib @FS_WITH_ALSA
))
903 $(eval
$(call BuildPlugin
,amr
,Adaptive Multi-Rate On Bandwidth Codec
,vanilla
,,,,))
904 $(eval
$(call BuildPlugin
,amrwb
,Wide Band AMR
,vanilla
,,,,))
905 $(eval
$(call BuildPlugin
,avmd
,Advanced Voice Mail Detection
,vanilla
,,,,))
906 $(eval
$(call BuildPlugin
,blacklist
,Blacklist
,vanilla
,,,,))
907 $(eval
$(call BuildPlugin
,bv
,BroadVoice
16/32-bit Audio Codec
,vanilla
,,,,))
908 $(eval
$(call BuildPlugin
,callcenter
,Call Center
,vanilla
,,,,))
909 $(eval
$(call BuildPlugin
,cdr-csv
,CSV-CDR Handler
,mod
,,,,)) # ~/conf
910 $(eval
$(call BuildPlugin
,cdr-pg-csv
,PostgreSQL CDR Handler
,vanilla
,,,,+coreutils
+FS_WITH_POSTGRESQL
:libpq @FS_WITH_POSTGRESQL
))
911 $(eval
$(call BuildPlugin
,cdr-sqlite
,SQLite3 CDR Handler
,vanilla
,,,,@FS_WITH_SQLITE3
))
912 $(eval
$(call BuildPlugin
,celt
,CELT Ultra-Low Delay Codec
,vanilla
,,,,+libogg
))
913 $(eval
$(call BuildPlugin
,cepstral
,Cepstral Interface
,vanilla
,,,,@BROKEN
)) # needs <swift.h>
914 $(eval
$(call BuildPlugin
,cidlookup
,Data Query For CID-
>NAME Services
,mod
,,,,+libcurl
)) # ~/conf
915 $(eval
$(call BuildPlugin
,cluechoo
,Framework Demo
,vanilla
,,,,))
916 $(eval
$(call BuildPlugin
,codec2
,CoDec
2,,,,,))
917 $(eval
$(call BuildPlugin
,commands
,API Commands
,vanilla
,,,,))
918 $(eval
$(call BuildPlugin
,conference
,Conference Room
,vanilla
,,,,))
919 $(eval
$(call BuildPlugin
,console
,Console Logger
,vanilla
,,,,))
920 $(eval
$(call BuildPlugin
,curl
,HTTP Request
,vanilla
,,,,+libcurl
))
921 $(eval
$(call BuildPlugin
,dahdi-codec
,DAHDI Codecs
,vanilla
,,,,))
922 $(eval
$(call BuildPlugin
,db
,Database Backend
,vanilla
,,,,))
923 $(eval
$(call BuildPlugin
,dialplan-asterisk
,Asterisk Dialplan Parser
,vanilla
,,,,))
924 $(eval
$(call BuildPlugin
,dialplan-directory
,Dialplan Directory
,vanilla
,,,,))
925 $(eval
$(call BuildPlugin
,dialplan-xml
,Dialplan-XML Interface
,vanilla
,,,,))
926 $(eval
$(call BuildPlugin
,dingaling
,Jabber Interface
,vanilla
,,,,+libopenssl
))
927 $(eval
$(call BuildPlugin
,directory
,Search By Name Directory IVR
,vanilla
,,,,))
928 $(eval
$(call BuildPlugin
,distributor
,Simple Robin-Round Load
,vanilla
,,,,))
929 $(eval
$(call BuildPlugin
,dptools
,Dialplan Tools
,vanilla
,,,,))
930 $(eval
$(call BuildPlugin
,easyroute
,Simple DID Routing
,vanilla
,,,,))
931 $(eval
$(call BuildPlugin
,enum
,ENUM Routing
,,,,,))
932 $(eval
$(call BuildPlugin
,erlang-event
,Erlang Event Handler
,vanilla
,,,,+erlang @BROKEN
))
933 $(eval
$(call BuildPlugin
,esf
,Extra SIP Functionality
,vanilla
,,,,))
934 $(eval
$(call BuildPlugin
,event-multicast
,Multicast Event Handler
,vanilla
,,,,))
935 $(eval
$(call BuildPlugin
,event-socket
,Socket Event Handler
,vanilla
,,,,))
936 $(eval
$(call BuildPlugin
,event-zmq
,Socket Event Handler By Zero MQ
,vanilla
,,,,+libuuid
))
937 $(eval
$(call BuildPlugin
,expr
,Expression Evaluation
,vanilla
,,,,))
938 $(eval
$(call BuildPlugin
,fifo
,FIFO
,vanilla
,,,,))
939 $(eval
$(call BuildPlugin
,file-string
,Streaming Multiple Sound Files Sequentially
,vanilla
,,,,@OBSOLETE
)) # merged into dptools
940 $(eval
$(call BuildPlugin
,flite
,Festival TTS
,vanilla
,,,,@
(!(armeb||avr32
)||BROKEN
)))
941 $(eval
$(call BuildPlugin
,format-cdr
,XML CDR Module to files or curl
,vanilla
,,,,))
942 $(eval
$(call BuildPlugin
,fsk
,Bell-202
1200-Baud FSK Decoder
,vanilla
,,,,))
943 $(eval
$(call BuildPlugin
,fsv
,Video Player
/ Recorder
,vanilla
,,,,))
944 $(eval
$(call BuildPlugin
,g723-1
,G
.723.1 Codec
,vanilla
,,,,))
945 $(eval
$(call BuildPlugin
,g729
,G
.729 Codec
,vanilla
,,,,))
946 $(eval
$(call BuildPlugin
,gsmopen
,GSM Modem compatible Endpoint
,mod
,,,alsa
,+FS_WITH_ALSA
:alsa-lib @FS_WITH_ALSA @BROKEN
)) # needs gsmlib
947 $(eval
$(call BuildPlugin
,h26x
,H26X Linear Codec
,vanilla
,,,,))
948 $(eval
$(call BuildPlugin
,h323
,H323 Endpoint
,mod
,,,,@BROKEN
)) # Req. H323Plus v1.24.x or newer
949 $(eval
$(call BuildPlugin
,hash
,API For Manipulating A Hash Table
,vanilla
,,,,))
950 #$(eval $(call BuildPlugin,html5,HTML5 Endpoint Module,vanilla,,,,)) # defunct?
951 $(eval
$(call BuildPlugin
,httapi
,HT Telephony API and HTTP Caching
,mod
,,,,)) # ~/conf
952 $(eval
$(call BuildPlugin
,http-cache
,HTTP GET With Caching
,mod
,,,,+libcurl
)) # ~/conf
953 $(eval
$(call BuildPlugin
,ilbc
,ILBC Codec
,vanilla
,,,,))
954 $(eval
$(call BuildPlugin
,isac
,iSAC Codec
,vanilla
,,,,))
955 $(eval
$(call BuildPlugin
,java
,Java Language Interface
,vanilla
,,,,@BROKEN
)) # needs java
956 $(eval
$(call BuildPlugin
,json-cdr
,JSon-CDR Interface
,mod
,,,,+libcurl
))
957 $(eval
$(call BuildPlugin
,lcr
,Least Cost Routing
,vanilla
,,,,))
958 $(eval
$(call BuildPlugin
,local-stream
,Multi-Channel On Same Stream
,vanilla
,,,,))
959 $(eval
$(call BuildPlugin
,logfile
,File Logger
,vanilla
,,,,))
960 $(eval
$(call BuildPlugin
,loopback
,Loopback to Dialplan Endpoint
,vanilla
,,,,))
961 $(eval
$(call BuildPlugin
,lua
,LUA Language Interface
,vanilla
,,,,))
962 $(eval
$(call BuildPlugin
,managed
,Media Switching Software Library
,vanilla
,,,,+glib2 @BROKEN
)) # needs Mono
963 $(eval
$(call BuildPlugin
,mp4
,MP4 File Format Support For Video
,vanilla
,,,,@BROKEN
)) # needs libmp4v2
964 $(eval
$(call BuildPlugin
,mp4v
,MP4 CoDec Support For Video
,vanilla
,,,,))
965 $(eval
$(call BuildPlugin
,native-file
,WAV Format Sound Player
,vanilla
,,,,))
966 $(eval
$(call BuildPlugin
,nibblebill
,Credit
/ Debit Billing
,vanilla
,,,,))
967 $(eval
$(call BuildPlugin
,openzap
,Zaptel
(Superseded by FreeTDM
),libs
,ozmod
,lib
/libopenzap lib
/pkgconfig
/openzap
,,+libpcap
))
968 $(eval
$(call BuildPlugin
,opus
,Opus CoDec
,vanilla
,,,,))
969 $(eval
$(call BuildPlugin
,oreka
,Media Recording with Oreka
,vanilla
,,,,))
970 $(eval
$(call BuildPlugin
,portaudio
,Portaudio To Sound Card Interface
,vanilla
,,,alsa
,+FS_WITH_ALSA
:alsa-lib @FS_WITH_ALSA
))
971 $(eval
$(call BuildPlugin
,portaudio-stream
,Portaudio Streaming Interface
,vanilla
,,,alsa
,+FS_WITH_ALSA
:alsa-lib @FS_WITH_ALSA
))
972 $(eval
$(call BuildPlugin
,posix-timer
,POSIX Compliant Soft Timer
,vanilla
,,,,))
973 $(eval
$(call BuildPlugin
,radius-cdr
,Radius-CDR interface
,vanilla
,,,,@BROKEN
)) # fails in freeradius-client
974 $(eval
$(call BuildPlugin
,rayo
,Rayo server
& node implementation
,vanilla
,,,,))
975 $(eval
$(call BuildPlugin
,redis
,Redis Limited Backend
,vanilla
,,,,))
976 $(eval
$(call BuildPlugin
,rss
,RRS Feeds via TTS
,vanilla
,,,,))
977 $(eval
$(call BuildPlugin
,rtmp
,RTMP Protocol Handler
,vanilla
,,,,))
978 $(eval
$(call BuildPlugin
,sangoma-codec
,Sangoma Codec
,vanilla
,,,,@BROKEN
)) # Req. Sangoma CoDec source
979 $(eval
$(call BuildPlugin
,say-de
,German Say
,vanilla
,,,,))
980 $(eval
$(call BuildPlugin
,say-en
,English Say
,vanilla
,,,,))
981 $(eval
$(call BuildPlugin
,say-es
,Spanish Say
,vanilla
,,,,))
982 $(eval
$(call BuildPlugin
,say-fa
,Persian Say
,vanilla
,,,,))
983 $(eval
$(call BuildPlugin
,say-fr
,French Say
,vanilla
,,,,))
984 $(eval
$(call BuildPlugin
,say-hu
,Hungarian Say
,vanilla
,,,,))
985 $(eval
$(call BuildPlugin
,say-it
,Italian Say
,vanilla
,,,,))
986 $(eval
$(call BuildPlugin
,say-nl
,Dutch Say
,vanilla
,,,,))
987 $(eval
$(call BuildPlugin
,say-pt
,Portugeese Say
,vanilla
,,,,))
988 $(eval
$(call BuildPlugin
,say-ru
,Russian Say
,vanilla
,,,,))
989 $(eval
$(call BuildPlugin
,say-th
,Thai Say
,vanilla
,,,,))
990 $(eval
$(call BuildPlugin
,say-zh
,Chineese Say
,vanilla
,,,,))
991 $(eval
$(call BuildPlugin
,shell-stream
,Streaming Audio Through CLI
,vanilla
,,,,))
992 $(eval
$(call BuildPlugin
,silk
,Skype
(TM
) SILK Codec Module
,vanilla
,,,,))
993 $(eval
$(call BuildPlugin
,siren
,G
.722.1 Codec
,vanilla
,,,,))
994 $(eval
$(call BuildPlugin
,skel
,Template For New Module
,vanilla
,,,,))
995 $(eval
$(call BuildPlugin
,skinny
,Skinny Call Control Protocol
(SCCP
),vanilla
,,,,))
996 $(eval
$(call BuildPlugin
,skypopen
,Skype Compatible Endpoint
,mod
,,,,@FEATURE_drawing-backend_libX11
))
997 $(eval
$(call BuildPlugin
,sms
,SMS
,vanilla
,,,,))
998 $(eval
$(call BuildPlugin
,snapshot
,Record Audio Snapshot to File
,vanilla
,,,,))
999 $(eval
$(call BuildPlugin
,sndfile
,Multi-Format Sound File
,vanilla
,,,,))
1000 $(eval
$(call BuildPlugin
,snipe-hunt
,Snipe Hunt
(Simple Example Module
),vanilla
,,,,))
1001 $(eval
$(call BuildPlugin
,snmp
,SNMP AgentX Subagent
,vanilla
,,,,+libnetsnmp
))
1002 $(eval
$(call BuildPlugin
,snom
,SNOM specific features
,vanilla
,,,,))
1003 $(eval
$(call BuildPlugin
,sofia
,SOFIA SIP
,mod
,,,,)) # ~/conf
1004 $(eval
$(call BuildPlugin
,sonar
,Sonar Ping Timer
,vanilla
,,,,))
1005 $(eval
$(call BuildPlugin
,spandsp
,Span DSP
,mod
,,,,+libjpeg
+FS_WITH_LZMA
:liblzma @FS_WITH_LZMA
)) # ~/conf
1006 $(eval
$(call BuildPlugin
,speex
,Speex codec
,mod
,,,,))
1007 $(eval
$(call BuildPlugin
,spidermonkey
,JavaScript
,vanilla
,,,,@BROKEN
)) # fails in js
1008 $(eval
$(call BuildPlugin
,spidermonkey-core_db
,JavaScript DB
,vanilla
,,,,@BROKEN
))
1009 $(eval
$(call BuildPlugin
,spidermonkey-curl
,JavaScript Curl
,vanilla
,,,,@BROKEN
))
1010 $(eval
$(call BuildPlugin
,spidermonkey-odbc
,JavaScript ODBC
,vanilla
,,,,@BROKEN
))
1011 $(eval
$(call BuildPlugin
,spidermonkey-socket
,JavaScript Socket
,vanilla
,,,,@BROKEN
))
1012 $(eval
$(call BuildPlugin
,spidermonkey-teletone
,JavaScript Teletone
,vanilla
,,,,@BROKEN
))
1013 $(eval
$(call BuildPlugin
,spy
,User Spy
,vanilla
,,,,))
1014 $(eval
$(call BuildPlugin
,ssml
,SSML audio rendering format
,mod
,,,rayo
,))
1015 $(eval
$(call BuildPlugin
,stress
,Voice Stress Detection
,vanilla
,,,,))
1016 $(eval
$(call BuildPlugin
,syslog
,SysLog logger
,vanilla
,,,,))
1017 $(eval
$(call BuildPlugin
,timerfd
,Linux Kernel timerfd API
,vanilla
,,,,))
1018 $(eval
$(call BuildPlugin
,tone-stream
,Tone Generation Stream
,vanilla
,,,,))
1019 $(eval
$(call BuildPlugin
,tts-commandline
,ASR TTS Command Interface
,vanilla
,,,,))
1020 $(eval
$(call BuildPlugin
,unimrcp
,UniMRCP
(MRCP Client
),vanilla
,,,,@BROKEN
))
1021 $(eval
$(call BuildPlugin
,valet-parking
,Valet Parking Application
,vanilla
,,,,))
1022 $(eval
$(call BuildPlugin
,vmd
,VoiceMail Beep Detection
,vanilla
,,,,))
1023 $(eval
$(call BuildPlugin
,voicemail
,VoiceMail
,vanilla
,,,,))
1024 $(eval
$(call BuildPlugin
,voicemail-ivr
,VoiceMail IVR
,vanilla
,,,,))
1025 $(eval
$(call BuildPlugin
,vp8
,VP8 Video Codec
,vanilla
,,,,))
1026 $(eval
$(call BuildPlugin
,xml-cdr
,XML-CDR Handler
,vanilla
,,,,+libcurl
))
1027 $(eval
$(call BuildPlugin
,xml-curl
,XML-Curl Gateway
,vanilla
,,,,+libcurl
))
1028 $(eval
$(call BuildPlugin
,xml-rpc
,XML-RPC Interface
,vanilla
,,,,))
1029 $(eval
$(call BuildPlugin
,xml-radius
,Radius authentication and authorization
,vanilla
,,,,+freeradius-client @BROKEN
)) # freeradius-client isn't yet supported by OpenWRT.
1030 $(eval
$(call BuildPlugin
,xml-scgi
,SCGI XML Gateway
,vanilla
,,,,))
1031 $(eval
$(call BuildPlugin
,yaml
,YAML langunage
,vanilla
,,,,))