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 FS_WITH_DEFAULT_HEAD:=757b7440104e34cf57ab30a411e081470ce2e180
22 PKG_SOURCE_URL:=git://git.$(PKG_NAME).org/$(PKG_NAME).git
23 PKG_SOURCE_VERSION:=$(if $(CONFIG_FS_WITH_LATEST_HEAD),$(shell git ls-remote $(PKG_SOURCE_URL) HEAD|cut -f1),$(FS_WITH_DEFAULT_HEAD))
24 FS_WITH_DEFAULT_HEAD_SHORT:=$(shell echo $(FS_WITH_DEFAULT_HEAD)|cut -b -7)
25 PKG_SOURCE_VERSION_SHORT:=$(shell echo $(PKG_SOURCE_VERSION)|cut -b -7)
26 PKG_RELEASE:=$(PKG_SOURCE_VERSION_SHORT)
27 PKG_SOURCE_SUBDIR:=$(PKG_DISTNAME)
28 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR)-$(if $(CONFIG_FS_WITH_LOCAL_SOURCE),$(FS_WITH_DEFAULT_HEAD_SHORT).tar.xz,$(PKG_SOURCE_VERSION_SHORT).tar.bz2)
29 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
32 PKG_FIXUP:=libtool autoreconf
36 ifeq ($(CONFIG_DEVEL),y)
42 FS_WITH_CORE_LIBEDIT_SUPPORT:libedit \
43 FS_WITH_MYSQL:libmysqlclient \
44 FS_WITH_POSTGRESQL:libpq \
45 FS_WITH_SQLITE3:libsqlite3 \
49 TAR_OPTIONS+= --strip-components=1 -C $(PKG_BUILD_DIR)
165 spidermonkey-core-db \
168 spidermonkey-socket \
169 spidermonkey-teletone \
192 PKG_CONFIG_DEPENDS:= \
193 CONFIG_FS_WITH_ALSA \
194 CONFIG_FS_WITH_BUILTIN_ZRTP \
195 CONFIG_FS_WITH_CORE_LIBEDIT_SUPPORT \
196 CONFIG_FS_WITH_DEFAULT_HEAD \
197 CONFIG_FS_WITH_ERLANG \
199 CONFIG_FS_WITH_FIXED_POINT \
200 CONFIG_FS_WITH_IPV6 \
201 CONFIG_FS_WITH_KERNEL_LINUX \
202 CONFIG_FS_WITH_LATEST_HEAD \
203 CONFIG_FS_WITH_LOCAL_SOURCE \
204 CONFIG_FS_WITH_LZMA \
205 CONFIG_FS_WITH_MYSQL \
206 CONFIG_FS_WITH_ODBC \
207 CONFIG_FS_WITH_OPENSSL \
208 CONFIG_FS_WITH_OPENWRT_SOURCE \
210 CONFIG_FS_WITH_POSTGRESQL \
211 CONFIG_FS_WITH_SQLITE3 \
212 CONFIG_FS_WITH_SCTP \
213 CONFIG_FS_WITH_SRTP \
214 CONFIG_FS_WITH_SRTP_GENERIC_AESICM \
215 CONFIG_FS_WITH_SRTP_OPENSSL \
216 CONFIG_FS_WITH_THREADS \
217 CONFIG_FS_WITH_VISIBILITY \
218 $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-mod-%,$(FS_MOD_AVAILABLE)) \
221 include $(INCLUDE_DIR)/package.mk
222 include $(INCLUDE_DIR)/nls.mk
225 define Package/$(PKG_NAME)/Default
229 URL:=http://www.$(PKG_NAME).org/
230 MAINTAINER:=Mazi Lo <openwrt.mazilo@recursor.net>
234 define Package/$(PKG_NAME)
235 $(call Package/$(PKG_NAME)/Default)
236 TITLE:=FreeSWITCH open source telephony platform ($(PKG_SOURCE_VERSION_SHORT))
237 DEPENDS:=+FS_WITH_CORE_LIBEDIT_SUPPORT:libedit +FS_WITH_OPENSSL:libopenssl +libcurl +libiconv-full +libintl-full +libjpeg +libncurses +PACKAGE_$(PKG_NAME)-mod-ldap:libopenldap +libpcre +libpthread +librt +libspeex +libspeexdsp +FS_WITH_SQLITE3:libsqlite3 +FS_WITH_SRTP:libsrtp +libstdcpp +libuuid
242 define Package/$(PKG_NAME)/description
243 FreeSWITCH is an open source telephony platform designed to
244 facilitate the creation of voice and chat driven products
245 scaling from a soft-phone up to a soft-switch.
249 define Package/$(PKG_NAME)/config
250 source "$(SOURCE)/Config.in"
254 define Package/$(PKG_NAME)-mod-spandsp/config
255 config FS_WITH_FIXED_POINT
256 depends on PACKAGE_$(PKG_NAME)-mod-spandsp
257 bool "Enable fixed point support for spandsp (may degrade performance)"
260 Compile spandsp package with a fixed point support. ONLY enabled this option when
261 necessary, i.e. CPU doesn't support floating computation.
265 define Package/$(PKG_NAME)-example-config
266 $(call Package/$(PKG_NAME)/Default)
267 TITLE:=FreeSWITCH example config (commented)
268 DEPENDS:= $(PKG_NAME)
272 define Package/$(PKG_NAME)-example-config/description
273 The default configuration included with FreeSWITCH. It is not intended to be
274 a final product, and is thus moved to /usr/share/$(PKG_NAME)/examples/conf to
275 be an example of how FreeSWITCH can be configured.
279 define Package/$(PKG_NAME)-config-upstream-defaults
280 $(call Package/$(PKG_NAME)/Default)
281 TITLE:=FreeSWITCH upstream config
282 DEPENDS:= $(PKG_NAME)
286 define Package/$(PKG_NAME)-config-upstream-defaults/description
287 The default configuration included with FreeSWITCH. It is not intended to be
288 a final product, and but is included for those who don't want to use the
289 OpenWRT configuration and/or want to try things as prepared by upstream.
293 define Package/$(PKG_NAME)-config-minimal
294 $(call Package/$(PKG_NAME)/Default)
295 TITLE:=FreeSWITCH minimal config
296 DEPENDS:= $(PKG_NAME)
300 define Package/$(PKG_NAME)-config-minimal/description
301 A minimal configuration of FreeSWITCH for OpenWRT devices. Is what the UCI
302 configuration began with.
306 define Package/$(PKG_NAME)-collection-upstream-defaults
307 $(call Package/$(PKG_NAME)/Default)
308 TITLE:=FS upstream def sample conf
309 DEPENDS:= $(PKG_NAME) \
310 +$(PKG_NAME)-config-upstream-defaults \
311 +$(PKG_NAME)-mod-callcenter \
312 +$(PKG_NAME)-mod-codec2 \
313 +$(PKG_NAME)-mod-commands \
314 +$(PKG_NAME)-mod-conference \
315 +$(PKG_NAME)-mod-curl \
316 +$(PKG_NAME)-mod-dialplan-xml \
317 +$(PKG_NAME)-mod-dingaling \
318 +$(PKG_NAME)-mod-dptools \
319 +$(PKG_NAME)-mod-event-socket \
320 +$(PKG_NAME)-mod-g723-1 \
321 +$(PKG_NAME)-mod-g729 \
322 +$(PKG_NAME)-mod-hash \
323 +$(PKG_NAME)-mod-http-cache \
324 +$(PKG_NAME)-mod-ilbc \
325 +$(PKG_NAME)-mod-local-stream \
326 +$(PKG_NAME)-mod-lua \
327 +$(PKG_NAME)-mod-native-file \
328 +$(PKG_NAME)-mod-say-en \
329 +$(PKG_NAME)-mod-sndfile \
330 +$(PKG_NAME)-mod-sofia \
331 +$(PKG_NAME)-mod-speex \
332 +$(PKG_NAME)-mod-syslog \
333 +$(PKG_NAME)-mod-tone-stream \
334 +$(PKG_NAME)-mod-xml-curl \
335 +$(PKG_NAME)-mod-xml-rpc \
340 define Package/$(PKG_NAME)-collection-minimal
341 $(call Package/$(PKG_NAME)/Default)
342 TITLE:=FreeSWITCH minimal package collection
344 DEPENDS:= $(PKG_NAME) \
345 +$(PKG_NAME)-config-minimal \
346 +$(PKG_NAME)-mod-codec2 \
347 +$(PKG_NAME)-mod-commands \
348 +$(PKG_NAME)-mod-dialplan-xml \
349 +$(PKG_NAME)-mod-dptools \
350 +$(PKG_NAME)-mod-event-socket \
351 +$(PKG_NAME)-mod-hash \
352 +$(PKG_NAME)-mod-local-stream \
353 +$(PKG_NAME)-mod-sndfile \
354 +$(PKG_NAME)-mod-sofia \
355 +$(PKG_NAME)-mod-syslog \
356 +$(PKG_NAME)-mod-tone-stream \
361 define Package/$(PKG_NAME)-sounds-en-08KHz
362 $(call Package/$(PKG_NAME)/Default)
363 TITLE:=FreeSWITCH 8KHz english sounds
364 DEPENDS:= $(PKG_NAME)
368 define Package/$(PKG_NAME)-sounds-en-16KHz
369 $(call Package/$(PKG_NAME)/Default)
370 TITLE:=FreeSWITCH 16KHz english sounds
371 DEPENDS:= +$(PKG_NAME)-sounds-en-08KHz
375 define Package/$(PKG_NAME)-sounds-en-32KHz
376 $(call Package/$(PKG_NAME)/Default)
377 TITLE:=FreeSWITCH 32KHz english sounds
378 DEPENDS:= +$(PKG_NAME)-sounds-en-16KHz
382 define Package/$(PKG_NAME)-sounds-en-48KHz
383 $(call Package/$(PKG_NAME)/Default)
384 TITLE:=FreeSWITCH 48KHz english sounds
385 DEPENDS:= +$(PKG_NAME)-sounds-en-32KHz
389 define Package/$(PKG_NAME)-sounds-moh-08KHz
390 $(call Package/$(PKG_NAME)/Default)
391 TITLE:=FreeSWITCH 8KHz music-on-hold sounds
392 DEPENDS:= $(PKG_NAME)
396 define Package/$(PKG_NAME)-sounds-moh-16KHz
397 $(call Package/$(PKG_NAME)/Default)
398 TITLE:=FreeSWITCH 16KHz music-on-hold sounds
399 DEPENDS:= +$(PKG_NAME)-sounds-moh-08KHz
403 define Package/$(PKG_NAME)-sounds-moh-32KHz
404 $(call Package/$(PKG_NAME)/Default)
405 TITLE:=FreeSWITCH 32KHz music-on-hold sounds
406 DEPENDS:= +$(PKG_NAME)-sounds-moh-16KHz
410 define Package/$(PKG_NAME)-sounds-moh-48KHz
411 $(call Package/$(PKG_NAME)/Default)
412 TITLE:=FreeSWITCH 48KHz music-on-hold sounds
413 DEPENDS:= +$(PKG_NAME)-sounds-moh-32KHz
417 define Package/$(PKG_NAME)-tools
418 $(call Package/$(PKG_NAME)/Default)
419 TITLE:=FreeSWITCH control tools
420 DEPENDS:= $(PKG_NAME)
424 define Download/files
427 URL:=$(if $(4),$(4),http://files.$(PKG_NAME).org)/$(5)
431 $(LN) $(DL_DIR)/$(2) $(PKG_BUILD_DIR)/$(6)
433 $$(eval $$(call Download,$(1)))
437 MAKE_INSTALL_TARGETS:=install
440 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-celt),)
441 $(eval $(call Download/files,celt,celt-0.10.0.tar.gz,a656f6176e9be84027c0e51ceedd710f,,downloads/libs/,libs/))
445 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-curl),)
446 $(eval $(call Download/files,json-cdr,json-c-0.9.tar.gz,4653b3b9c568bb9c782178abfaac128d,,downloads/libs/,libs/))
450 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event-zmq),)
451 $(eval $(call Download/files,event-zmq,zeromq-2.1.9.tar.gz,94c5e0262a79c5f82bc0b178c1f8a33d,http://download.zeromq.org http://download.zeromq.org/historic,,libs/))
455 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-flite),)
456 $(eval $(call Download/files,flite,flite-1.5.4-current.tar.bz2,f3a2d88b1059f6f4ff3c20a8169bc0f4,,downloads/libs/,libs/))
460 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-memcache),)
461 $(eval $(call Download/files,memcache,libmemcached-0.32.tar.gz,2f06059803737b6bf6135edfc86db4b3,,downloads/libs/,libs/))
465 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-mongo),)
466 $(eval $(call Download/files,mongo,mongo-c-driver-0.92.2.tar.gz,afab25a33abd3f1e0ba79c5a9da92651,,downloads/libs/,libs/))
470 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-opus),)
471 $(eval $(call Download/files,opus,opus-1.1-p2.tar.gz,5da7cb39925bfb7dd60ea2e810f71357,,downloads/libs/,libs/))
475 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-ldap)|$(CONFIG_PACKAGE_$(PKG_NAME)-mod-xml-ldap),)
476 $(eval $(call Download/files,ldap,openldap-2.4.19.tar.gz,4a6dab2711fcf141f19bb680bc335887,,downloads/libs/,libs/))
480 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-08KHz),)
481 $(eval $(call Download/files,sounds-en-08KHz,$(PKG_NAME)-sounds-en-us-callie-8000-1.0.25.tar.gz,1140efad453ed1a72259d799f7fef0fc,,,))
482 MAKE_INSTALL_TARGETS+= sounds-install
486 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-16KHz),)
487 $(eval $(call Download/files,sounds-en-16KHz,$(PKG_NAME)-sounds-en-us-callie-16000-1.0.25.tar.gz,20b9bf1b1637be2abe838113fb675c41,,,))
488 MAKE_INSTALL_TARGETS+= hd-sounds-install
492 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-32KHz),)
493 $(eval $(call Download/files,sounds-en-32KHz,$(PKG_NAME)-sounds-en-us-callie-32000-1.0.25.tar.gz,977d453d8ffa9a5b0fadee8408e84f60,,,))
494 MAKE_INSTALL_TARGETS+= uhd-sounds-install
498 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-48KHz),)
499 $(eval $(call Download/files,sounds-en-48KHz,$(PKG_NAME)-sounds-en-us-callie-48000-1.0.25.tar.gz,96ec0df908eb1c535063fdc8580626d2,,,))
500 MAKE_INSTALL_TARGETS+= cd-sounds-install
504 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-08KHz),)
505 $(eval $(call Download/files,sounds-moh-08KHz,$(PKG_NAME)-sounds-music-8000-1.0.8.tar.gz,f63ef3cc3507af079ae5c7b8b8a01e42,,,))
506 MAKE_INSTALL_TARGETS+= moh-install
510 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-16KHz),)
511 $(eval $(call Download/files,sounds-moh-16KHz,$(PKG_NAME)-sounds-music-16000-1.0.8.tar.gz,7fd0ca9a9e3878783baa39b8187743bf,,,))
512 MAKE_INSTALL_TARGETS+= hd-moh-install
516 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-32KHz),)
517 $(eval $(call Download/files,sounds-moh-32KHz,$(PKG_NAME)-sounds-music-32000-1.0.8.tar.gz,7e03932ea81b8d0bf6d686f838b060b4,,,))
518 MAKE_INSTALL_TARGETS+= uhd-moh-install
522 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-48KHz),)
523 $(eval $(call Download/files,sounds-moh-48KHz,$(PKG_NAME)-sounds-music-48000-1.0.8.tar.gz,d06cd2a80379f224affab21f5180e4c6,,,))
524 MAKE_INSTALL_TARGETS+= cd-moh-install
529 # XXX: -fgnu89-inline is not supported on all compiler versions, so only enable it on avr32 where it solves build issues
531 ifneq ($(CONFIG_avr32),)
532 TARGET_CFLAGS += -fgnu89-inline
533 TARGET_CXXFLAGS += -fgnu89-inline
537 ifneq ($(CONFIG_USE_EGLIBC),)
538 ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)
539 TARGET_CFLAGS += -DNO_GETLOGIN
544 FS_TARGET_CFLAGS:= $(TARGET_CFLAGS) -DLUA_USE_LINUX $(FPIC) -std=gnu99 -Wno-format -Wno-unused-variable -Wno-unused-but-set-variable -Wno-implicit-function-declaration
545 FS_TARGET_CXXFLAGS:= $(TARGET_CXXFLAGS)
546 FS_TARGET_CPPFLAGS:= -I. -I./lua $(TARGET_CPPFLAGS) $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-json-cdr),-Wno-error) -I`ls -d $(PKG_BUILD_DIR)/libs/*|grep tiff`/libtiff -I$(PKG_BUILD_DIR)/libs/spandsp/src
550 OPT_FLAGS+="$(TARGET_CFLAGS)"
554 AR="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ar" \
555 CC="$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)" \
556 CXX="$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX)" \
557 RANLIB="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ranlib" \
558 CC_FOR_BUILD="$(HOSTCC)" \
562 --host=$(GNU_TARGET_NAME) \
563 --build=$(GNU_HOST_NAME) \
564 --prefix="/usr/share/$(PKG_NAME)" \
565 --bindir="/usr/bin" \
566 --libdir="/usr/lib" \
567 --srcdir="$(PKG_BUILD_DIR)" \
568 --sysconfdir="/etc/$(PKG_NAME)" \
569 --with-modinstdir="/usr/lib/$(PKG_NAME)" \
570 --with-random="/dev/urandom" \
571 $(call autoconf_bool,CONFIG_FS_WITH_BUILTIN_ZRTP,zrtp) \
572 $(call autoconf_bool,CONFIG_FS_WITH_CORE_LIBEDIT_SUPPORT,core-libedit-support) \
573 $(call autoconf_bool,CONFIG_FS_WITH_FHS,fhs) \
574 $(call autoconf_bool,CONFIG_FS_WITH_IPV6,ipv6) \
575 $(call autoconf_bool,CONFIG_FS_WITH_KERNEL_LINUX,kernel-linux) \
576 $(call autoconf_bool,CONFIG_FS_WITH_LZMA,lzma) \
577 $(call autoconf_bool,CONFIG_FS_WITH_ODBC,core-odbc-support) \
578 $(call autoconf_bool,CONFIG_FS_WITH_OPT,optimization) \
579 $(call autoconf_bool,CONFIG_FS_WITH_POSTGRESQL,core-pgsql-pkgconfig) \
580 $(call autoconf_bool,CONFIG_FS_WITH_POSTGRESQL,core-pgsql-support) \
581 $(call autoconf_bool,CONFIG_FS_WITH_SRTP,srtp) \
582 $(call autoconf_bool,CONFIG_FS_WITH_SRTP_GENERIC_AESICM,generic-aesicm) \
583 $(call autoconf_bool,CONFIG_FS_WITH_THREADS,threads) \
584 $(call autoconf_bool,CONFIG_FS_WITH_VISIBILITY,visibility) \
585 $(call autoconf_bool,CONFIG_PACKAGE_$(PKG_NAME)-mod-spandsp && CONFIG_FS_WITH_FIXED_POINT,fixed-point) \
586 $(call autoconf_bool,CONFIG_PACKAGE_$(PKG_NAME)-mod-spandsp,builtin-tiff) \
587 $(call autoconf_bool,CONFIG_PACKAGE_$(PKG_NAME)-mod-timerfd,timerfd-wrapper) \
588 $(if $(CONFIG_FS_WITH_MYSQL),--with,--without)-mysql \
589 $(if $(CONFIG_FS_WITH_ODBC),--with-odbc-lib="$(STAGING_DIR)/usr/lib") \
590 $(if $(CONFIG_FS_WITH_ODBC),--with-odbc="$(STAGING_DIR)/usr") \
591 $(if $(CONFIG_FS_WITH_OPENSSL),--with,--without)-openssl \
592 $(if $(CONFIG_FS_WITH_POSTGRESQL),--with,--without)-pgsql \
593 $(if $(CONFIG_FS_WITH_SQLITE3),--with,--without)-sqlite3 \
594 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-celt),--with-ogg="$(STAGING_DIR)/usr",--without-ogg) \
595 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-erlang-event),--with-erlang="$(CONFIG_FS_WITH_ERLANG)",--without-erlang) \
596 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-java),--with-java="$(STAGING_DIR)/usr",--without-java) \
597 $(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) \
601 CONFIGURE_ARGS+= --enable-arm5e-asm \
607 config_TARGET_CC="$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)" \
608 config_TARGET_CXX="$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX)" \
609 config_TARGET_CFLAGS="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CFLAGS)" \
610 config_TARGET_CXXFLAGS="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CXXFLAGS)" \
611 config_TARGET_CPPFLAGS="$(FS_TARGET_CPPFLAGS)" \
612 config_TARGET_READLINE_INC="$(FS_TARGET_CPPFLAGS)" \
613 config_TARGET_READLINE_LIBS="$(TARGET_LDFLAGS) -lreadline -lncurses" \
614 config_TARGET_LIBS="$(TARGET_LDFLAGS) -lpthread -ldl" \
615 config_BUILD_CC="$(HOSTCC)" \
616 CC_FOR_BUILD="$(HOSTCC)" \
617 BUILDTOOL_CC="$(HOSTCC)" \
618 BUILDTOOL_CCLD="$(HOSTCC)" \
619 LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
620 CC="$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)" \
621 CXX="$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX)" \
622 AR="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ar" \
623 RANLIB="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)ranlib" \
624 CFLAGS="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CFLAGS)" \
625 CXXFLAGS="$(FS_TARGET_CPPFLAGS) $(FS_TARGET_CXXFLAGS)" \
626 CPPFLAGS="$(FS_TARGET_CPPFLAGS)" \
627 LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath-link=\"$(STAGING_DIR)/usr/lib\"" \
628 HOST_CC="/usr/bin/cc" \
629 HOST_CXX="/usr/bin/g++" \
631 ax_cv_c_compiler_vendor="gnu" \
632 ac_cv_cflags_warn_all_ansi='-Wall -std=c99 -Wno-unused-variable' \
633 ac_cv_dev_urandom="yes" \
634 ac_cv_file_dbd_apr_dbd_mysql_c="no" \
635 ac_cv_file__dev_random="no" \
636 ac_cv_file__dev_urandom="yes" \
637 ac_cv_file___dev_urandom_="yes" \
638 ac_cv_func_mmap_fixed_mapped="yes" \
639 ac_cv_func_pthread_rwlock_init="yes" \
640 ac_cv_struct_rlimit="yes" \
641 apr_cv_mutex_recursive="yes" \
642 apr_cv_process_shared_works="no" \
643 apr_cv_tcp_nodelay_with_cork="yes" \
644 apr_cv_type_rwlock_t="yes" \
645 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-perl),ac_cv_path_PERL="yes",) \
646 libzmq_cv_cxx_werror_flag="" \
650 $(call Build/Prepare/Default)
652 $(call Prepare/event-zmq)
653 $(call Prepare/flite)
654 $(call Prepare/json-cdr)
656 $(call Prepare/memcache)
657 $(call Prepare/mongo)
659 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-08KHz),$(call Prepare/sounds-en-08KHz))
660 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-16KHz),$(call Prepare/sounds-en-16KHz))
661 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-32KHz),$(call Prepare/sounds-en-32KHz))
662 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en-48KHz),$(call Prepare/sounds-en-48KHz))
663 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-08KHz),$(call Prepare/sounds-moh-08KHz))
664 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-16KHz),$(call Prepare/sounds-moh-16KHz))
665 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-32KHz),$(call Prepare/sounds-moh-32KHz))
666 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh-48KHz),$(call Prepare/sounds-moh-48KHz))
670 define Build/Configure
672 ifeq ($(CONFIG_FS_WITH_LOCAL_SOURCE),y)
673 (cd $(PKG_BUILD_DIR); $(if $(CONFIG_FS_WITH_LATEST_HEAD),if $(QUILT_CMD) top > /dev/null 2>&1; then $(QUILT_CMD) pop -a; fi; git pull; if $(QUILT_CMD) next > /dev/null 2>&1; then $(QUILT_CMD) push -a; fi))
675 (cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./bootstrap.sh)
676 $(call Build/Configure/Default)
677 $(foreach m,$(FS_MOD_AVAILABLE),
678 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-$(m)),
679 $(SED) 's|^[ #]*\([^#]*/mod_$(subst -,_,$(m))\)$$$$|\1|g' $(PKG_BUILD_DIR)/modules.conf
681 $(SED) 's|^\([^#]*/mod_$(subst -,_,$(m))\)$$$$|#\1|g' $(PKG_BUILD_DIR)/modules.conf
688 $(call Build/Compile/Default, \
689 DESTDIR="$(PKG_INSTALL_DIR)" \
690 all $(MAKE_INSTALL_TARGETS) \
692 $(SED) 's|^\([ \t]*\)\(.*\)"mod_console"\(.*\)$$$$|\1<!-- \2"mod_console"\3 -->|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
693 $(SED) 's|^\([ \t]*\)<!-- *\(.*\)"mod_syslog"\(.*\) *-->\(.*\)$$$$|\1\2"mod_syslog"\3\4|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
697 define Build/InstallDev
698 $(INSTALL_DIR) $(1)/usr/include
699 $(INSTALL_DIR) $(1)/usr/lib
700 $(CP) $(PKG_INSTALL_DIR)/usr/include $(1)/usr
701 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).{a,so*} $(1)/usr/lib/
705 define Package/$(PKG_NAME)/install
706 $(INSTALL_DIR) $(1)/etc/config
707 $(INSTALL_DIR) $(1)/etc/default
708 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
709 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)/scripts
710 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
711 $(INSTALL_DIR) $(1)/etc/init.d
712 $(INSTALL_DIR) $(1)/usr/bin
713 $(INSTALL_DIR) $(1)/usr/include
714 $(INSTALL_DIR) $(1)/usr/lib
715 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
716 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
717 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
718 $(INSTALL_DATA) ./files/$(PKG_NAME).default $(1)/etc/default/$(PKG_NAME)
719 $(INSTALL_DATA) ./files/$(PKG_NAME).hotplug $(1)/etc/hotplug.d/iface/90-$(PKG_NAME)
720 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
721 $(CP) $(PKG_INSTALL_DIR)/usr/include $(1)/usr/
722 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME)* $(1)/usr/lib/
723 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/$(PKG_NAME).pc $(1)/usr/lib/pkgconfig/
724 $(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)
728 define Package/$(PKG_NAME)-collection-upstream-defaults/install
729 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
733 define Package/$(PKG_NAME)-example-config/install
734 $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/examples/conf
735 $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/usr/share/$(PKG_NAME)/examples/conf/
739 define Package/$(PKG_NAME)-config-upstream-defaults/install
740 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
741 $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME) $(1)/etc
745 define Package/$(PKG_NAME)-collection-minimal/install
746 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
750 define Package/$(PKG_NAME)-collection-uci-minimal/install
751 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
755 define Package/$(PKG_NAME)-config-minimal/install
756 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)/autoload_configs
759 # Copying dialplan directory jingle_profiles sip_profiles $(PKG_NAME).xml
760 # fur_elise.ttml mime.types tetris.ttml tones.conf vars.xml
762 $(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);))
765 # Copying acl ivr modules post_load_modules switch timezones
767 $(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;))
771 define Package/$(PKG_NAME)-sounds-en-08KHz/install
775 for dir in `(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
777 [ -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; \
778 $(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; \
783 define Package/$(PKG_NAME)-sounds-en-16KHz/install
787 for dir in `(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
789 [ -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; \
790 $(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; \
795 define Package/$(PKG_NAME)-sounds-en-32KHz/install
799 for dir in `(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
801 [ -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; \
802 $(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; \
807 define Package/$(PKG_NAME)-sounds-en-48KHz/install
811 for dir in `(cd $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en/us/callie;ls)`; \
813 [ -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; \
814 $(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; \
819 define Package/$(PKG_NAME)-sounds-moh-08KHz/install
823 [ -d $(1)/usr/share/$(PKG_NAME)/sounds/music/8000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/music/8000;
824 $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music/8000 $(1)/usr/share/$(PKG_NAME)/sounds/music;
828 define Package/$(PKG_NAME)-sounds-moh-16KHz/install
832 [ -d $(1)/usr/share/$(PKG_NAME)/sounds/music/16000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/music/16000;
833 $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music/16000 $(1)/usr/share/$(PKG_NAME)/sounds/music;
837 define Package/$(PKG_NAME)-sounds-moh-32KHz/install
841 [ -d $(1)/usr/share/$(PKG_NAME)/sounds/music/32000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/music/32000;
842 $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music/32000 $(1)/usr/share/$(PKG_NAME)/sounds/music;
846 define Package/$(PKG_NAME)-sounds-moh-48KHz/install
850 [ -d $(1)/usr/share/$(PKG_NAME)/sounds/music/48000 ] || $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds/music/48000;
851 $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music/48000 $(1)/usr/share/$(PKG_NAME)/sounds/music;
855 define Package/$(PKG_NAME)-tools/install
856 $(INSTALL_DIR) $(1)/usr/bin
857 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_cli $(1)/usr/bin/
858 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_encode $(1)/usr/bin/
859 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_ivrd $(1)/usr/bin/
860 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fsxs $(1)/usr/bin/
861 $(CP) $(PKG_INSTALL_DIR)/usr/bin/gentls_cert $(1)/usr/bin/
862 $(CP) $(PKG_INSTALL_DIR)/usr/bin/tone2wav $(1)/usr/bin/
868 # 3. Selection on module configuration file
869 # 4. Files (module files include different names)
870 # 5. Files (supporting files include different names)
871 # 6. Inter module depends
875 define Package/$(PKG_NAME)-mod-$(1)
876 $$(call Package/$(PKG_NAME)/Default)
877 TITLE:= FS $(2) module
878 DEPENDS:= $(PKG_NAME) $(foreach m,$(6),+$(PKG_NAME)-mod-$(m)) $(7)
881 define Package/$(PKG_NAME)-mod-$(1)/install
882 [ -z "mod_$(subst -,_,$(1))" ] || $(INSTALL_DIR) $$(1)/usr/lib/$(PKG_NAME)
884 for f in $$$$(realpath $$$$(wildcard $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)/mod_$(subst -,_,$(1)).*)) $$$$(wildcard $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)/$(4)_*); \
886 $(CP) $$$$$$$${f} $$(1)/usr/lib/$(PKG_NAME)/; \
890 # mod_$(subst -,_,$(1)): $(5)
892 $(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});)
895 # mod_$(subst -,_,$(1)): Clean installed library control files from referencig to OpenWRT PATH.
897 for f in `ls $$(1)/usr/lib/$(PKG_NAME)/*.la`; \
899 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}; \
903 # 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)))
905 $$$$(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)
908 # 2. mod_$(subst -,_,$(1)) XML configuration files from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/$(3)/$(1)/*/$(subst -,_,$(1)).conf.xml)))
910 $$$$(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)
913 # 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)))
915 $$$$(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)
918 # 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)))
920 $$$$(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)
923 # 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)))
925 $$$$(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)
928 # 6. Additional configuration files for mod_$(subst -,_,$(1)) from: $$$$(patsubst $(PKG_BUILD_DIR)/%,%,$$$$(firstword $$$$(wildcard $(PKG_BUILD_DIR)/conf/$(3)/$(1)/*.$(1))))
930 $$$$(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))
933 define Package/$(PKG_NAME)-mod-$(1)/postinst
935 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
938 define Package/$(PKG_NAME)-mod-$(1)/prerm
940 sed -i -e 's|^\([ \t]*\)\(.*\)"mod_$(subst -,_,$(1))"\(.*\)$$$$|\1<!-- \2"mod_$(subst -,_,$(1))"\3 -->|' $$$${IPKG_INSTROOT}/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
943 $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
947 $(eval $(call BuildPackage,$(PKG_NAME)))
948 $(eval $(call BuildPackage,$(PKG_NAME)-collection-upstream-defaults))
949 $(eval $(call BuildPackage,$(PKG_NAME)-collection-minimal))
950 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-en-08KHz))
951 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-en-16KHz))
952 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-en-32KHz))
953 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-en-48KHz))
954 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-moh-08KHz))
955 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-moh-16KHz))
956 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-moh-32KHz))
957 $(eval $(call BuildPackage,$(PKG_NAME)-sounds-moh-48KHz))
958 $(eval $(call BuildPackage,$(PKG_NAME)-tools))
959 $(eval $(call BuildPackage,$(PKG_NAME)-example-config))
960 $(eval $(call BuildPackage,$(PKG_NAME)-config-upstream-defaults))
961 $(eval $(call BuildPackage,$(PKG_NAME)-config-minimal))
965 # $(eval $(call BuildPlugin,Name,Title,Selection on module Conf File,Files,Inter Depends,Extra Depends))
967 $(eval $(call BuildPlugin,abstraction,An Abstraction To API Call,vanilla,,,,))
968 $(eval $(call BuildPlugin,alsa,Alsa Endpoint,vanilla,,,,+FS_WITH_ALSA:alsa-lib @FS_WITH_ALSA))
969 $(eval $(call BuildPlugin,amr,Adaptive Multi-Rate On Bandwidth Codec,vanilla,,,,))
970 $(eval $(call BuildPlugin,amrwb,Wide Band AMR,vanilla,,,,))
971 $(eval $(call BuildPlugin,avmd,Advanced Voice Mail Detection,vanilla,,,,))
972 $(eval $(call BuildPlugin,basic,BASIC,vanilla,,,,))
973 $(eval $(call BuildPlugin,blacklist,Blacklist,vanilla,,,,))
974 $(eval $(call BuildPlugin,bv,BroadVoice 16/32-bit Audio Codec,vanilla,,,,))
975 $(eval $(call BuildPlugin,callcenter,Call Center,vanilla,,,,))
976 $(eval $(call BuildPlugin,cdr-csv,CSV-CDR Handler,mod,,,,)) # ~/conf
977 $(eval $(call BuildPlugin,cdr-mongodb,MongoDB CDR logger,vanilla,,,,))
978 $(eval $(call BuildPlugin,cdr-pg-csv,PostgreSQL CDR Handler,vanilla,,,,+coreutils +FS_WITH_POSTGRESQL:libpq @FS_WITH_POSTGRESQL))
979 $(eval $(call BuildPlugin,cdr-sqlite,SQLite3 CDR Handler,vanilla,,,,@FS_WITH_SQLITE3))
980 $(eval $(call BuildPlugin,celt,CELT Ultra-Low Delay Codec,vanilla,,,,+libogg))
981 $(eval $(call BuildPlugin,cepstral,Cepstral Interface,vanilla,,,,@BROKEN)) # needs <swift.h>
982 $(eval $(call BuildPlugin,cidlookup,Data Query For CID->NAME Services,mod,,,,+libcurl)) # ~/conf
983 $(eval $(call BuildPlugin,cluechoo,Framework Demo,vanilla,,,,))
984 $(eval $(call BuildPlugin,codec2,CoDec 2,,,,,))
985 $(eval $(call BuildPlugin,commands,API Commands,vanilla,,,,))
986 $(eval $(call BuildPlugin,conference,Conference Room,vanilla,,,,))
987 $(eval $(call BuildPlugin,console,Console Logger,vanilla,,,,))
988 $(eval $(call BuildPlugin,curl,HTTP Request,vanilla,,,,+libcurl))
989 $(eval $(call BuildPlugin,dahdi-codec,DAHDI Codecs,vanilla,,,,))
990 $(eval $(call BuildPlugin,db,Database Backend,vanilla,,,,))
991 $(eval $(call BuildPlugin,dialplan-asterisk,Asterisk Dialplan Parser,vanilla,,,,))
992 $(eval $(call BuildPlugin,dialplan-directory,Dialplan Directory,vanilla,,,,))
993 $(eval $(call BuildPlugin,dialplan-xml,Dialplan-XML Interface,vanilla,,,,))
994 $(eval $(call BuildPlugin,dingaling,Jabber Interface,vanilla,,,,+libopenssl))
995 $(eval $(call BuildPlugin,directory,Search By Name Directory IVR,vanilla,,,,))
996 $(eval $(call BuildPlugin,distributor,Simple Robin-Round Load,vanilla,,,,))
997 $(eval $(call BuildPlugin,dptools,Dialplan Tools,vanilla,,,,))
998 $(eval $(call BuildPlugin,easyroute,Simple DID Routing,vanilla,,,,))
999 $(eval $(call BuildPlugin,enum,ENUM Routing,,,,,+libldns))
1000 $(eval $(call BuildPlugin,erlang-event,Erlang Event Handler,vanilla,,,,+erlang))
1001 $(eval $(call BuildPlugin,esf,Extra SIP Functionality,vanilla,,,,))
1002 $(eval $(call BuildPlugin,event-multicast,Multicast Event Handler,vanilla,,,,))
1003 $(eval $(call BuildPlugin,event-socket,Socket Event Handler,vanilla,,,,))
1004 $(eval $(call BuildPlugin,event-zmq,Socket Event Handler By Zero MQ,vanilla,,,,+libuuid))
1005 $(eval $(call BuildPlugin,expr,Expression Evaluation,vanilla,,,,))
1006 $(eval $(call BuildPlugin,fifo,FIFO,vanilla,,,,))
1007 $(eval $(call BuildPlugin,file-string,Streaming Multiple Sound Files Sequentially,vanilla,,,,@OBSOLETE)) # merged into dptools
1008 $(eval $(call BuildPlugin,flite,Festival TTS,vanilla,,,,@(!(armeb||avr32)||BROKEN)))
1009 $(eval $(call BuildPlugin,format-cdr,XML CDR Module to files or curl,vanilla,,,,))
1010 $(eval $(call BuildPlugin,fsk,Bell-202 1200-Baud FSK Decoder,vanilla,,,,))
1011 $(eval $(call BuildPlugin,fsv,Video Player / Recorder,vanilla,,,,))
1012 $(eval $(call BuildPlugin,g723-1,G.723.1 Codec,vanilla,,,,))
1013 $(eval $(call BuildPlugin,g729,G.729 Codec,vanilla,,,,))
1014 $(eval $(call BuildPlugin,gsmopen,GSM Modem compatible Endpoint,mod,,,alsa,+FS_WITH_ALSA:alsa-lib +FS_WITH_LZMA:liblzma @FS_WITH_ALSA @BROKEN)) # needs gsmlib
1015 $(eval $(call BuildPlugin,h26x,H26X Linear Codec,vanilla,,,,))
1016 $(eval $(call BuildPlugin,h323,H323 Endpoint,mod,,,,@BROKEN)) # Req. H323Plus v1.24.x or newer
1017 $(eval $(call BuildPlugin,hash,API For Manipulating A Hash Table,vanilla,,,,))
1018 #$(eval $(call BuildPlugin,html5,HTML5 Endpoint Module,vanilla,,,,)) # defunct?
1019 $(eval $(call BuildPlugin,httapi,HT Telephony API and HTTP Caching,mod,,,,)) # ~/conf
1020 $(eval $(call BuildPlugin,http-cache,HTTP GET With Caching,mod,,,,+libcurl)) # ~/conf
1021 $(eval $(call BuildPlugin,ilbc,ILBC Codec,vanilla,,,,))
1022 $(eval $(call BuildPlugin,isac,iSAC Codec,vanilla,,,,))
1023 $(eval $(call BuildPlugin,java,Java Language Interface,vanilla,,,,@BROKEN)) # needs java
1024 $(eval $(call BuildPlugin,json-cdr,JSon-CDR Interface,mod,,,,+libcurl))
1025 $(eval $(call BuildPlugin,ldap,LDAP interface,vanilla,,,,+libsasl2))
1026 $(eval $(call BuildPlugin,lcr,Least Cost Routing,vanilla,,,,))
1027 $(eval $(call BuildPlugin,local-stream,Multi-Channel On Same Stream,vanilla,,,,))
1028 $(eval $(call BuildPlugin,logfile,File Logger,vanilla,,,,))
1029 $(eval $(call BuildPlugin,loopback,Loopback to Dialplan Endpoint,vanilla,,,,))
1030 $(eval $(call BuildPlugin,lua,LUA Language Interface,vanilla,,,,))
1031 $(eval $(call BuildPlugin,managed,Media Switching Software Library,vanilla,,,,+glib2 @BROKEN)) # needs Mono
1032 $(eval $(call BuildPlugin,memcache,MemCached Interface,vanilla,,,,+libmemcached @BROKEN)) # Req libmemcached
1033 $(eval $(call BuildPlugin,mongo,A Document-Oriented Database,vanilla,,,,))
1034 $(eval $(call BuildPlugin,mp4,MP4 File Format Support For Video,vanilla,,,,@BROKEN)) # needs libmp4v2
1035 $(eval $(call BuildPlugin,mp4v,MP4 CoDec Support For Video,vanilla,,,,))
1036 $(eval $(call BuildPlugin,native-file,WAV Format Sound Player,vanilla,,,,))
1037 $(eval $(call BuildPlugin,nibblebill,Credit / Debit Billing,vanilla,,,,))
1038 $(eval $(call BuildPlugin,opus,Opus CoDec,vanilla,,,,))
1039 $(eval $(call BuildPlugin,oreka,Media Recording with Oreka,vanilla,,,,))
1040 $(eval $(call BuildPlugin,portaudio,Portaudio To Sound Card Interface,vanilla,,,alsa,+FS_WITH_ALSA:alsa-lib @FS_WITH_ALSA))
1041 $(eval $(call BuildPlugin,portaudio-stream,Portaudio Streaming Interface,vanilla,,,alsa,+FS_WITH_ALSA:alsa-lib @FS_WITH_ALSA))
1042 $(eval $(call BuildPlugin,posix-timer,POSIX Compliant Soft Timer,vanilla,,,,))
1043 $(eval $(call BuildPlugin,radius-cdr,Radius-CDR interface,vanilla,,,,@BROKEN)) # fails in freeradius-client
1044 $(eval $(call BuildPlugin,rayo,Rayo server & node implementation,vanilla,,,,))
1045 $(eval $(call BuildPlugin,redis,Redis Limited Backend,vanilla,,,,))
1046 $(eval $(call BuildPlugin,rss,RRS Feeds via TTS,vanilla,,,,))
1047 $(eval $(call BuildPlugin,rtmp,RTMP Protocol Handler,vanilla,,,,))
1048 $(eval $(call BuildPlugin,sangoma-codec,Sangoma Codec,vanilla,,,,@BROKEN)) # Req. Sangoma CoDec source
1049 $(eval $(call BuildPlugin,say-de,German Say,vanilla,,,,))
1050 $(eval $(call BuildPlugin,say-en,English Say,vanilla,,,,))
1051 $(eval $(call BuildPlugin,say-es,Spanish Say,vanilla,,,,))
1052 $(eval $(call BuildPlugin,say-fa,Persian Say,vanilla,,,,))
1053 $(eval $(call BuildPlugin,say-fr,French Say,vanilla,,,,))
1054 $(eval $(call BuildPlugin,say-hu,Hungarian Say,vanilla,,,,))
1055 $(eval $(call BuildPlugin,say-it,Italian Say,vanilla,,,,))
1056 $(eval $(call BuildPlugin,say-nl,Dutch Say,vanilla,,,,))
1057 $(eval $(call BuildPlugin,say-pt,Portugeese Say,vanilla,,,,))
1058 $(eval $(call BuildPlugin,say-ru,Russian Say,vanilla,,,,))
1059 $(eval $(call BuildPlugin,say-th,Thai Say,vanilla,,,,))
1060 $(eval $(call BuildPlugin,say-zh,Chineese Say,vanilla,,,,))
1061 $(eval $(call BuildPlugin,shell-stream,Streaming Audio Through CLI,vanilla,,,,))
1062 $(eval $(call BuildPlugin,silk,Skype(TM) SILK Codec Module,vanilla,,,,))
1063 $(eval $(call BuildPlugin,siren,G.722.1 Codec,vanilla,,,,))
1064 $(eval $(call BuildPlugin,skel,Template For New Module,vanilla,,,,))
1065 $(eval $(call BuildPlugin,skinny,Skinny Call Control Protocol (SCCP),vanilla,,,,))
1066 $(eval $(call BuildPlugin,skypopen,Skype Compatible Endpoint,mod,,,,@FEATURE_drawing-backend_libX11))
1067 $(eval $(call BuildPlugin,sms,SMS,vanilla,,,,))
1068 $(eval $(call BuildPlugin,snapshot,Record Audio Snapshot to File,vanilla,,,,))
1069 $(eval $(call BuildPlugin,sndfile,Multi-Format Sound File,vanilla,,,,))
1070 $(eval $(call BuildPlugin,snipe-hunt,Snipe Hunt (Simple Example Module),vanilla,,,,))
1071 $(eval $(call BuildPlugin,snmp,SNMP AgentX Subagent,vanilla,,,,+libnetsnmp))
1072 $(eval $(call BuildPlugin,snom,SNOM specific features,vanilla,,,,))
1073 $(eval $(call BuildPlugin,sofia,SOFIA SIP,mod,,,,)) # ~/conf
1074 $(eval $(call BuildPlugin,sonar,Sonar Ping Timer,vanilla,,,,))
1075 $(eval $(call BuildPlugin,spandsp,Span DSP,mod,,,,+libjpeg +FS_WITH_LZMA:liblzma @FS_WITH_LZMA)) # ~/conf
1076 $(eval $(call BuildPlugin,speex,Speex codec,mod,,,,))
1077 $(eval $(call BuildPlugin,spidermonkey,JavaScript,vanilla,,,,@BROKEN)) # fails in js
1078 $(eval $(call BuildPlugin,spidermonkey-core_db,JavaScript DB,vanilla,,,,@BROKEN))
1079 $(eval $(call BuildPlugin,spidermonkey-curl,JavaScript Curl,vanilla,,,,@BROKEN))
1080 $(eval $(call BuildPlugin,spidermonkey-odbc,JavaScript ODBC,vanilla,,,,@BROKEN))
1081 $(eval $(call BuildPlugin,spidermonkey-socket,JavaScript Socket,vanilla,,,,@BROKEN))
1082 $(eval $(call BuildPlugin,spidermonkey-teletone,JavaScript Teletone,vanilla,,,,@BROKEN))
1083 $(eval $(call BuildPlugin,spy,User Spy,vanilla,,,,))
1084 $(eval $(call BuildPlugin,ssml,SSML audio rendering format,mod,,,rayo,))
1085 $(eval $(call BuildPlugin,stress,Voice Stress Detection,vanilla,,,,))
1086 $(eval $(call BuildPlugin,syslog,SysLog logger,vanilla,,,,))
1087 $(eval $(call BuildPlugin,timerfd,Linux Kernel timerfd API,vanilla,,,,))
1088 $(eval $(call BuildPlugin,tone-stream,Tone Generation Stream,vanilla,,,,))
1089 $(eval $(call BuildPlugin,tts-commandline,ASR TTS Command Interface,vanilla,,,,))
1090 $(eval $(call BuildPlugin,unimrcp,UniMRCP (MRCP Client),vanilla,,,,@BROKEN))
1091 $(eval $(call BuildPlugin,valet-parking,Valet Parking Application,vanilla,,,,))
1092 $(eval $(call BuildPlugin,vmd,VoiceMail Beep Detection,vanilla,,,,))
1093 $(eval $(call BuildPlugin,voicemail,VoiceMail,vanilla,,,,))
1094 $(eval $(call BuildPlugin,voicemail-ivr,VoiceMail IVR,vanilla,,,,))
1095 $(eval $(call BuildPlugin,vp8,VP8 Video Codec,vanilla,,,,))
1096 $(eval $(call BuildPlugin,xml-cdr,XML-CDR Handler,vanilla,,,,+libcurl))
1097 $(eval $(call BuildPlugin,xml-curl,XML-Curl Gateway,vanilla,,,,+libcurl))
1098 $(eval $(call BuildPlugin,xml-ldap,LDAP-XML Gateway,vanilla,,,,+libsasl2 +PACKAGE_$(PKG_NAME)-mod-ldap:libopenldap))
1099 $(eval $(call BuildPlugin,xml-rpc,XML-RPC Interface,vanilla,,,,))
1100 $(eval $(call BuildPlugin,xml-radius,Radius authentication and authorization,vanilla,,,,+freeradius-client @BROKEN)) # freeradius-client isn't yet supported by OpenWRT.
1101 $(eval $(call BuildPlugin,xml-scgi,SCGI XML Gateway,vanilla,,,,))
1102 $(eval $(call BuildPlugin,yaml,YAML langunage,vanilla,,,,+libyaml))