Merge pull request #158 from micmac1/PR
[feed/telephony.git] / net / freeswitch-stable / Makefile
1 #
2 # Copyright (C) 2017 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.18
13 PKG_RELEASE:=1
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_MD5SUM:=ac1b32f61e5c35680c5a2d6f145bc480cf26e6527af07d8b8b9fa2d5280252cd
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PRG_NAME)-$(PKG_VERSION)
21
22 # configure fails without libjpeg, but it's only needed for mod_spandsp
23 PKG_BUILD_DEPENDS:= \
24 erlang \
25 libjpeg \
26 python
27
28 # With mod_ssml and mod_rayo enabled the parallel compiles always failed
29 #PKG_BUILD_PARALLEL:=1
30 PKG_INSTALL:=1
31
32 PKG_LICENSE:= \
33 AGPL-3.0 \
34 Apache-2.0 \
35 BSD-2-Clause \
36 BSD-3-Clause \
37 BSD-4-Clause \
38 BSD-like \
39 Beerware \
40 GPL-1.0+ \
41 GPL-2.0 \
42 GPL-2.0+ \
43 GPL-3.0 \
44 ISC \
45 LGPL-2.0+ \
46 LGPL-2.1 \
47 LGPL-2.1+ \
48 MIT/X11 (BSD like) \
49 MPL-1.1 \
50 OpenLDAP \
51 RSA-MD \
52 zlib-acknowledgement
53
54 PKG_LICENSE_FILES:=debian/copyright
55
56 FS_STABLE_MOD_AVAILABLE:= \
57 abstraction \
58 alsa \
59 amr \
60 amrwb \
61 av \
62 avmd \
63 basic \
64 bert \
65 blacklist \
66 callcenter \
67 cdr_csv \
68 cdr_mongodb \
69 cdr_pg_csv \
70 cdr_sqlite \
71 cidlookup \
72 cluechoo \
73 commands \
74 conference \
75 console \
76 curl \
77 db \
78 dialplan_asterisk \
79 dialplan_xml \
80 dingaling \
81 directory \
82 distributor \
83 dptools \
84 easyroute \
85 enum \
86 erlang_event \
87 esf \
88 esl \
89 event_multicast \
90 event_socket \
91 expr \
92 fifo \
93 format_cdr \
94 fsk \
95 fsv \
96 g723_1 \
97 g729 \
98 graylog2 \
99 h26x \
100 hash \
101 hiredis \
102 httapi \
103 http_cache \
104 isac \
105 json_cdr \
106 kazoo \
107 lcr \
108 ldap \
109 local_stream \
110 logfile \
111 loopback \
112 lua \
113 mp4v \
114 native_file \
115 nibblebill \
116 odbc_cdr \
117 opus \
118 oreka \
119 png \
120 prefix \
121 python \
122 rayo \
123 redis \
124 rss \
125 rtc \
126 rtmp \
127 say_de \
128 say_en \
129 say_es \
130 say_es_ar \
131 say_fa \
132 say_fr \
133 say_he \
134 say_hr \
135 say_hu \
136 say_it \
137 say_ja \
138 say_nl \
139 say_pl \
140 say_pt \
141 say_ru \
142 say_sv \
143 say_th \
144 say_zh \
145 shell_stream \
146 shout \
147 skinny \
148 sms \
149 snapshot \
150 sndfile \
151 snmp \
152 snom \
153 sofia \
154 sonar \
155 spandsp \
156 spy \
157 ssml \
158 stress \
159 syslog \
160 theora \
161 tone_stream \
162 translate \
163 tts_commandline \
164 unimrcp \
165 valet_parking \
166 verto \
167 voicemail \
168 voicemail_ivr \
169 xml_cdr \
170 xml_curl \
171 xml_ldap \
172 xml_rpc \
173 xml_scgi \
174 yaml
175
176 include $(INCLUDE_DIR)/package.mk
177
178 $(call include_mk, python-version.mk)
179 PYTHON_DIR:=$(STAGING_DIR)/usr
180 PYTHON_INC_DIR:=$(PYTHON_DIR)/include/python$(PYTHON_VERSION)
181 PYTHON_PKG_DIR:=/usr/lib/python$(PYTHON_VERSION)/site-packages
182
183 define Package/$(PKG_NAME)/install/bin
184 $(INSTALL_DIR) $(1)/usr/bin
185 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(2) $(1)/usr/bin
186 endef
187
188 define Package/$(PKG_NAME)/install/dir
189 if [ -d $(2) ]; then $(INSTALL_DIR) $(1); fi
190 for dir in $$$$(shell [ -d $(2) ] && cd $(2) && find -type d -print | sed 's|^./\?||'); \
191 do \
192 $(INSTALL_DIR) $(1)/$$$$$$$$dir; \
193 done
194 for file in $$$$(shell [ -d $(2) ] && cd $(2) && find -type f -print | sed 's|^./||'); \
195 do \
196 $(INSTALL_DATA) $(2)/$$$$$$$$file $(1)/$$$$$$$$file; \
197 done
198 endef
199
200 define Package/$(PKG_NAME)/install/lib
201 $(INSTALL_DIR) $(1)/usr/lib
202 $(CP) $(PKG_INSTALL_DIR)/usr/lib/$(2).so* $(1)/usr/lib
203 endef
204
205 define Package/$(PKG_NAME)/install/mod
206 $(INSTALL_DIR) $(1)/usr/lib/$(PRG_NAME)/mod
207 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/$(PRG_NAME)/mod/mod_$(2).so \
208 $(1)/usr/lib/$(PRG_NAME)/mod
209 endef
210
211 define Package/$(PKG_NAME)/config
212 source "$(SOURCE)/Config.in"
213 endef
214
215 define Package/$(PKG_NAME)/Default
216 SUBMENU:=Telephony
217 SECTION:=net
218 CATEGORY:=Network
219 URL:=https://www.$(PRG_NAME).org
220 endef
221
222 define Package/$(PKG_NAME)
223 $(call Package/$(PKG_NAME)/Default)
224 TITLE:=Open source telephony platform, v$(PKG_VERSION)
225 MENU:=1
226 USERID:=$(PRG_NAME)=372:$(PRG_NAME)=372
227 DEPENDS:= \
228 +FS_STABLE_WITH_FREETYPE:libfreetype \
229 +FS_STABLE_WITH_LIBEDIT:libedit \
230 +FS_STABLE_WITH_ODBC:unixodbc \
231 +FS_STABLE_WITH_PGSQL:libpq \
232 +FS_STABLE_WITH_PNG:libpng \
233 +libcurl \
234 +libopenssl \
235 +libpcre \
236 +libpthread \
237 +librt \
238 +libspeex \
239 +libspeexdsp \
240 +libstdcpp \
241 +libsqlite3 \
242 +libuuid \
243 +zlib
244 CONFLICTS:=$(PRG_NAME)
245 endef
246
247 define Package/$(PKG_NAME)/description
248 FreeSWITCH is a scalable open source cross-platform telephony platform
249 designed to route and interconnect popular communication protocols
250 using audio, video, text or any other form of media.
251 endef
252
253 define Package/$(PKG_NAME)/conffiles
254 /etc/$(PRG_NAME)
255 /etc/default/$(PRG_NAME)
256 /etc/init.d/$(PRG_NAME)
257 endef
258
259 define Package/$(PKG_NAME)/install
260 $(call Package/$(PKG_NAME)/install/bin,$(1),$(PRG_NAME))
261 $(call Package/$(PKG_NAME)/install/lib,$(1),lib$(PRG_NAME))
262 $(INSTALL_DIR) $(1)/etc/$(PRG_NAME)/tls
263 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/fonts
264 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/grammar
265 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/htdocs
266 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/images
267 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/scripts
268 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/sounds
269 $(INSTALL_DIR) $(1)/etc/default
270 $(INSTALL_CONF) ./files/$(PRG_NAME).default $(1)/etc/default/$(PRG_NAME)
271 $(INSTALL_DIR) $(1)/etc/init.d
272 $(INSTALL_BIN) ./files/$(PRG_NAME).init $(1)/etc/init.d/$(PRG_NAME)
273 ifeq ($(CONFIG_FS_STABLE_WITH_LIBEDIT),)
274 $(SED) '/^ #procd_append_param command -nc -nf$$$$/s/#//' \
275 $(1)/etc/init.d/$(PRG_NAME)
276 endif
277 endef
278
279 define Package/$(PKG_NAME)/postinst
280 #!/bin/sh
281 if [ -z "$${IPKG_INSTROOT}" ]; then
282 # Prevent autostart of $(PRG_NAME)
283 touch /etc/$(PRG_NAME)_disabled
284
285 echo
286 echo "o-------------------------------------------------------------------o"
287 echo "| FreeSWITCH note |"
288 echo "o-------------------------------------------------------------------o"
289 echo "| Edit /etc/default/freeswitch to change basic init configuration. |"
290 echo "o-------------------------------------------------------------=^_^=-o"
291 echo
292 fi
293 exit 0
294 endef
295
296 define Package/$(PKG_NAME)-hotplug
297 $(call Package/$(PKG_NAME)/Default)
298 TITLE:=Hotplug script
299 DEPENDS:=$(PKG_NAME)
300 PKGARCH:=all
301 endef
302
303 define Package/$(PKG_NAME)-hotplug/description
304 This package includes a hotplug script for FreeSWITCH.
305 endef
306
307 define Package/$(PKG_NAME)-hotplug/install
308 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
309 $(INSTALL_BIN) ./files/$(PRG_NAME).hotplug \
310 $(1)/etc/hotplug.d/iface/99-$(PRG_NAME)
311 endef
312
313 define Package/$(PKG_NAME)-hotplug/postinst
314 #!/bin/sh
315 if [ -z "$${IPKG_INSTROOT}" ]; then
316 echo
317 echo "o-------------------------------------------------------------------o"
318 echo "| FreeSWITCH hotplug note |"
319 echo "o-------------------------------------------------------------------o"
320 echo "| See /etc/default/freeswitch for hotplug hints. |"
321 echo "o-------------------------------------------------------------=^_^=-o"
322 echo
323 fi
324 exit 0
325 endef
326
327 define Package/$(PKG_NAME)-python-esl
328 $(call Package/$(PKG_NAME)/Default)
329 TITLE:=Python ESL
330 DEPENDS:=$(PKG_NAME) +PACKAGE_$(PKG_NAME)-python-esl:python-light
331 endef
332
333 define Package/$(PKG_NAME)-python-esl/description
334 This package contains the Python binding for FreeSWITCH's Event Socket
335 Library (ESL).
336 endef
337
338 define Package/$(PKG_NAME)-python-esl/install
339 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
340 $(INSTALL_DATA) \
341 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/ESL.py \
342 $(1)$(PYTHON_PKG_DIR)
343 $(INSTALL_BIN) \
344 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/_ESL.so \
345 $(1)$(PYTHON_PKG_DIR)
346 endef
347
348 define Package/$(PKG_NAME)-timezones
349 $(call Package/$(PKG_NAME)/Default)
350 TITLE:=Timezones file
351 DEPENDS:=$(PKG_NAME)
352 PKGARCH:=all
353 endef
354
355 define Package/$(PKG_NAME)-timezones/description
356 This package includes a timezones file for FreeSWITCH.
357 endef
358
359 define Package/$(PKG_NAME)-timezones/install
360 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/tz
361 $(INSTALL_DATA) \
362 $(PKG_BUILD_DIR)/conf/vanilla/autoload_configs/timezones.conf.xml \
363 $(1)/usr/share/$(PRG_NAME)/tz
364 endef
365
366 define Package/$(PKG_NAME)/Example
367 define Package/$(PKG_NAME)-example-$(1)
368 $(call Package/$(PKG_NAME)/Default)
369 TITLE:=Example configuration
370 DEPENDS:=$(PKG_NAME)
371 PKGARCH:=all
372 endef
373 define Package/$(PKG_NAME)-example-$(1)/description
374 This package does not install any configuration for FreeSWITCH into
375 /etc/freeswitch. The system administrator is completely responsible
376 for that directory. If you install one of the example configuration
377 packages, it will install the corresponding sample configuration to
378 /usr/share/freeswitch/examples where you can take a look at it.
379 endef
380 define Package/$(PKG_NAME)-example-$(1)/install
381 $(call Package/$(PKG_NAME)/install/dir,$$(1)/usr/share/$(PRG_NAME)/examples/$(1),$(PKG_BUILD_DIR)/conf/$(1))
382 endef
383 $$(eval $$(call BuildPackage,$(PKG_NAME)-example-$(1)))
384 endef
385
386 define Package/$(PKG_NAME)/Language
387 define Package/$(PKG_NAME)-lang-$(1)
388 $(call Package/$(PKG_NAME)/Default)
389 TITLE:=$(2) language files
390 DEPENDS:=$(PKG_NAME)
391 PKGARCH:=all
392 endef
393 define Package/$(PKG_NAME)-lang-$(1)/description
394 This package includes the $(2) language files for FreeSWITCH.
395 endef
396 define Package/$(PKG_NAME)-lang-$(1)/install
397 $(call Package/$(PKG_NAME)/install/dir,$$(1)/usr/share/$(PRG_NAME)/lang/$(1),$(PKG_BUILD_DIR)/conf/vanilla/lang/$(1))
398 endef
399 $$(eval $$(call BuildPackage,$(PKG_NAME)-lang-$(1)))
400 endef
401
402 # The next package generator is for miscellaneous files that only
403 # require being copied from PKG_INSTALL_DIR to the ipkg.
404 define Package/$(PKG_NAME)/Misc
405 define Package/$(PKG_NAME)-misc-$(1)
406 $(call Package/$(PKG_NAME)/Default)
407 TITLE:=$(2)
408 DEPENDS:=$(PKG_NAME)
409 endef
410 define Package/$(PKG_NAME)-misc-$(1)/description
411 $(subst \n,$(newline),$(3))
412 endef
413 define Package/$(PKG_NAME)-misc-$(1)/install
414 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(5),$(PKG_INSTALL_DIR)$(4))
415 ifeq ($(1),dev)
416 $(INSTALL_DIR) $$(1)/usr/lib/pkgconfig
417 $(INSTALL_DATA) \
418 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/freeswitch.pc \
419 $$(1)/usr/lib/pkgconfig
420 endif
421 endef
422 $$(eval $$(call BuildPackage,$(PKG_NAME)-misc-$(1)))
423 endef
424
425 define Package/$(PKG_NAME)/Module
426 define Package/$(PKG_NAME)-mod-$(1)
427 $(call Package/$(PKG_NAME)/Default)
428 TITLE:=$(2) module
429 DEPENDS:=$(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-mod-$(1):%,$(4))
430 endef
431 define Package/$(PKG_NAME)-mod-$(1)/description
432 $(subst \n,$(newline),$(3))
433 endef
434 define Package/$(PKG_NAME)-mod-$(1)/install
435 $(call Package/$(PKG_NAME)/install/mod,$$(1),$(1))
436 ifeq ($(CONFIG_FS_STABLE_WITH_MODCONF),y)
437 $(call Package/$(PKG_NAME)/install/dir,$$(1)/usr/share/$(PRG_NAME)/examples/mod_$(1),$(PKG_BUILD_DIR)/src/mod/*/mod_$(1)/conf)
438 endif
439 ifeq ($(1),python)
440 $(INSTALL_DIR) $$(1)$(PYTHON_PKG_DIR)
441 $(INSTALL_DATA) \
442 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/$(PRG_NAME).py \
443 $$(1)$(PYTHON_PKG_DIR)
444 endif
445 endef
446 $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
447 endef
448
449 define Package/$(PKG_NAME)/Util
450 define Package/$(PKG_NAME)-util-$(1)
451 $(call Package/$(PKG_NAME)/Default)
452 TITLE:=$(2) utility
453 DEPENDS:=$(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-util-$(1):%,$(4))
454 ifeq ($(5),y)
455 PKGARCH:=all
456 endif
457 endef
458 define Package/$(PKG_NAME)-util-$(1)/description
459 $(subst \n,$(newline),$(3))
460 endef
461 define Package/$(PKG_NAME)-util-$(1)/install
462 $(call Package/$(PKG_NAME)/install/bin,$$(1),$(1))
463 endef
464 ifeq ($(1)$(CONFIG_FS_STABLE_WITH_LIBEDIT),fs_cli)
465 define Package/$(PKG_NAME)-util-$(1)/postinst
466 #!/bin/sh
467 if [ -z "$${IPKG_INSTROOT}" ]; then
468 echo
469 echo "o-------------------------------------------------------------------o"
470 echo "| fs_cli note |"
471 echo "o-------------------------------------------------------------------o"
472 echo "| Your FreeSWITCH was compiled without libedit support. Due to an |"
473 echo "| interop issue it's possible that when you try to exit fs_cli with |"
474 echo "| Ctrl-D, you'll see messages flashing by and have to kill fs_cli |"
475 echo "| manually. To avoid this you can either use Ctrl-C instead (fs_cli |"
476 echo "| needs to be started with '-i' for this to work; you could create |"
477 echo "| an appropriate alias in /etc/profile) or type /exit, /quit or |"
478 echo "| /bye. |"
479 echo "o-------------------------------------------------------------=^_^=-o"
480 echo
481 fi
482 exit 0
483 endef
484 endif
485 $$(eval $$(call BuildPackage,$(PKG_NAME)-util-$(1)))
486 endef
487
488 # we neither need host-perl nor host-php
489 CONFIGURE_VARS+= \
490 ac_cv_prog_PERL=false \
491 ac_cv_have_perl=no \
492 ac_cv_prog_PHP=false \
493 ac_cv_have_php=no \
494 ac_cv_prog_PHP_CONFIG=false \
495 ac_cv_have_php_config=no
496
497 # The autoconf variables in this block are OK for both musl and glibc
498 CONFIGURE_VARS+= \
499 ac_cv_file__dev_ptmx=yes \
500 ac_cv_file__dev_urandom=yes \
501 ac_cv_file_dbd_apr_dbd_mysql_c=no \
502 ac_cv_free_null=yes \
503 ac_cv_func_mmap_fixed_mapped=yes \
504 ac_cv_func_pthread_rwlock_init=yes \
505 ac_cv_func_sem_open=yes \
506 ac_cv_have_working_memmove=yes \
507 ac_cv_negative_eai=yes \
508 ac_cv_o_nonblock_inherited=no \
509 ac_cv_struct_rlimit=yes \
510 apr_cv_epoll=yes \
511 apr_cv_gai_addrconfig=yes \
512 apr_cv_mutex_recursive=yes \
513 apr_cv_process_shared_works=yes \
514 apr_cv_pthreads_lib=-lpthread \
515 apr_cv_tcp_nodelay_with_cork=yes \
516 apr_cv_type_rwlock_t=yes
517
518 # Regarding apr_cv_mutex_robust_shared=no see
519 # http://www.openwall.com/lists/musl/2016/11/26/1
520 # _Don't_ remove quotes below!
521 ifeq ($(CONFIG_LIBC),"musl")
522 CONFIGURE_VARS+= \
523 apr_cv_mutex_robust_shared=no \
524 ac_cv_strerror_r_rc_int=yes
525 else
526 CONFIGURE_VARS+= \
527 apr_cv_mutex_robust_shared=yes
528 endif
529
530 # fs_cli
531 CONFIGURE_VARS+= \
532 disable_cc=yes
533
534 CONFIGURE_VARS+= \
535 _python_sysroot="$(STAGING_DIR)" \
536 _python_prefix="/usr" \
537 _python_exec_prefix="/usr"
538
539 CONFIGURE_ARGS+= \
540 --build=$(GNU_HOST_NAME) \
541 --host=$(GNU_TARGET_NAME) \
542 --target=$(GNU_TARGET_NAME) \
543 --prefix=/usr/share/$(PRG_NAME) \
544 --bindir=/usr/bin \
545 --libdir=/usr/lib \
546 --srcdir=$(PKG_BUILD_DIR) \
547 --sysconfdir=/etc \
548 --disable-dependency-tracking \
549 --disable-static \
550 --disable-system-xmlrpc-c \
551 --enable-fhs \
552 --with-cachedir=/tmp/$(PRG_NAME)/cache \
553 --with-certsdir=/etc/$(PRG_NAME)/tls \
554 --with-dbdir=/tmp/$(PRG_NAME)/db \
555 --with-fontsdir=/usr/share/$(PRG_NAME)/fonts \
556 --with-grammardir=/usr/share/$(PRG_NAME)/grammar \
557 --with-htdocsdir=/usr/share/$(PRG_NAME)/htdocs \
558 --with-imagesdir=/usr/share/$(PRG_NAME)/images \
559 --with-logfiledir=/tmp/$(PRG_NAME)/log \
560 --with-modinstdir=/usr/lib/$(PRG_NAME)/mod \
561 --with-recordingsdir=/tmp/$(PRG_NAME)/recordings \
562 --with-rundir=/var/run/$(PRG_NAME) \
563 --with-scriptdir=/usr/share/$(PRG_NAME)/scripts \
564 --with-soundsdir=/usr/share/$(PRG_NAME)/sounds \
565 --with-storagedir=/tmp/$(PRG_NAME)/storage \
566 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_LIBEDIT,core-libedit-support) \
567 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ODBC,core-odbc-support) \
568 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_SRTP,srtp) \
569 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ZRTP,zrtp) \
570 $(if $(CONFIG_FS_STABLE_WITH_DEBUG),,--disable-debug) \
571 $(if $(CONFIG_FS_STABLE_WITH_FREETYPE),,--without-freetype) \
572 $(if $(CONFIG_FS_STABLE_WITH_LIBYUV),,--disable-libyuv) \
573 $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc-lib="$(STAGING_DIR)/usr/lib") \
574 $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc="$(STAGING_DIR)/usr") \
575 $(if $(CONFIG_FS_STABLE_WITH_PGSQL),--enable-core-pgsql-support,--without-pgsql) \
576 $(if $(CONFIG_FS_STABLE_WITH_PNG),,--without-png) \
577 $(if $(CONFIG_FS_STABLE_WITH_VPX),,--disable-libvpx)
578
579 # Need to update LDFLAGS for libs/unimrcp, otherwise it will try to link to a
580 # different apr/apr-util if found.
581 # FS_ANCHOR: string in build/acmacros/apr.m4 that will be replaced
582 FS_ANCHOR:=dnl Get build information from APR
583 FS_APR_LIBS:=-L$(PKG_BUILD_DIR)/libs/apr -L$(PKG_BUILD_DIR)/libs/apr-util
584
585 define Build/Prepare
586 $(call Build/Prepare/Default)
587 $(SED) '/^#/!s/^/#/' $(PKG_BUILD_DIR)/modules.conf
588 $(foreach m,$(FS_STABLE_MOD_AVAILABLE),
589 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-$(m)),
590 $(SED) '/mod_$(m)$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf))
591
592 $(SED) 's|^LOCAL_CFLAGS=.*|LOCAL_CFLAGS=-I$(PYTHON_INC_DIR)|' \
593 $(PKG_BUILD_DIR)/libs/esl/python/Makefile
594 $(SED) 's|^LOCAL_LDFLAGS=.*|LOCAL_LDFLAGS=$(TARGET_LDFLAGS) -lpython$(PYTHON_VERSION)|' \
595 $(PKG_BUILD_DIR)/libs/esl/python/Makefile
596 $(SED) 's|^SITE_DIR=.*|SITE_DIR=$$$$(DESTDIR)$(PYTHON_PKG_DIR)|' \
597 $(PKG_BUILD_DIR)/libs/esl/python/Makefile
598 $(SED) 's|^PYTHON_SITE_DIR=.*|PYTHON_SITE_DIR=$(PYTHON_PKG_DIR)|' \
599 $(PKG_BUILD_DIR)/src/mod/languages/mod_python/Makefile.am
600 $(SED) 's|@PYTHON_CFLAGS@|-I$(PYTHON_INC_DIR)|' \
601 $(PKG_BUILD_DIR)/src/mod/languages/mod_python/Makefile.am
602 $(SED) 's|@PYTHON_LDFLAGS@|$(TARGET_LDFLAGS) -lpython$(PYTHON_VERSION)|' \
603 $(PKG_BUILD_DIR)/src/mod/languages/mod_python/Makefile.am
604 $(SED) 's|$(FS_ANCHOR)|APR_SETVAR(LDFLAGS,$(FS_APR_LIBS) $(TARGET_LDFLAGS))|' \
605 $(PKG_BUILD_DIR)/libs/unimrcp/build/acmacros/apr.m4
606
607 # Hack for mod_unimrcp - it has a build-time dep on mod_sofia
608 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-unimrcp),)
609 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-sofia),)
610 $(SED) '/mod_sofia$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf
611 endif
612 endif
613 endef
614
615 define Build/Configure
616 find $(PKG_BUILD_DIR) -name missing -type f -exec rm {} \;
617 cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./rebootstrap.sh
618 $(call Build/Configure/Default)
619 endef
620
621 define Build/Compile
622 $(call Build/Compile/Default)
623 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl pymod)
624 endef
625
626 define Build/Install
627 $(call Build/Install/Default)
628 $(call Build/Install/Default,-C $(PKG_BUILD_DIR)/libs/esl pymod-install)
629 endef
630
631 $(eval $(call BuildPackage,$(PKG_NAME)))
632 $(eval $(call BuildPackage,$(PKG_NAME)-hotplug))
633 $(eval $(call BuildPackage,$(PKG_NAME)-python-esl))
634 $(eval $(call BuildPackage,$(PKG_NAME)-timezones))
635
636 ################################
637 # FreeSWITCH example configs
638 # Params:
639 # 1 - Package subname
640 ################################
641
642 $(eval $(call Package/$(PKG_NAME)/Example,curl))
643 $(eval $(call Package/$(PKG_NAME)/Example,insideout))
644 $(eval $(call Package/$(PKG_NAME)/Example,minimal))
645 $(eval $(call Package/$(PKG_NAME)/Example,rayo))
646 $(eval $(call Package/$(PKG_NAME)/Example,sbc))
647 $(eval $(call Package/$(PKG_NAME)/Example,softphone))
648 $(eval $(call Package/$(PKG_NAME)/Example,testing))
649 $(eval $(call Package/$(PKG_NAME)/Example,vanilla))
650
651 ################################
652 # FreeSWITCH language files
653 # Params:
654 # 1 - Language code
655 # 2 - Language
656 ################################
657
658 $(eval $(call Package/$(PKG_NAME)/Language,de,German))
659 $(eval $(call Package/$(PKG_NAME)/Language,en,English))
660 $(eval $(call Package/$(PKG_NAME)/Language,es,Spanish))
661 $(eval $(call Package/$(PKG_NAME)/Language,fr,French))
662 $(eval $(call Package/$(PKG_NAME)/Language,he,Hebrew))
663 $(eval $(call Package/$(PKG_NAME)/Language,pt,Portuguese))
664 $(eval $(call Package/$(PKG_NAME)/Language,ru,Russian))
665 $(eval $(call Package/$(PKG_NAME)/Language,sv,Swedish))
666
667 ################################
668 # FreeSWITCH misc packages
669 # Params:
670 # 1 - Package subname
671 # 2 - Package title
672 # 3 - Package description
673 # 4 - Source dir relative to
674 # PKG_INSTALL_DIR
675 # 5 - Dest dir relative to ipkg
676 ################################
677
678 $(eval $(call Package/$(PKG_NAME)/Misc,dev,Development files,This package includes the FreeSWITCH headers and pkgconfig file.,/usr/share/$(PRG_NAME)/include,/usr/include))
679 $(eval $(call Package/$(PKG_NAME)/Misc,fonts,Fonts,This package includes the fonts bundled with FreeSWITCH.,/usr/share/$(PRG_NAME)/fonts,/usr/share/$(PRG_NAME)/fonts))
680 $(eval $(call Package/$(PKG_NAME)/Misc,images,Images,This package includes the images bundled with FreeSWITCH.,/usr/share/$(PRG_NAME)/images,/usr/share/$(PRG_NAME)/images))
681
682 ################################
683 # FreeSWITCH modules
684 # Params:
685 # 1 - Package subname
686 # 2 - Package title
687 # 3 - Module description
688 # 4 - Module dependencies
689 ################################
690
691 $(eval $(call Package/$(PKG_NAME)/Module,abstraction,API abstraction,This module provides a way to create new API functions via regex\nrewriting.,))
692 $(eval $(call Package/$(PKG_NAME)/Module,alsa,ALSA endpoint,ALSA endpoint module.,+alsa-lib))
693 $(eval $(call Package/$(PKG_NAME)/Module,amr,AMR passthrough,Passthrough AMR codec support.,))
694 $(eval $(call Package/$(PKG_NAME)/Module,amrwb,AMR wideband passthrough,Passthrough AMR wideband codec support.,))
695 $(eval $(call Package/$(PKG_NAME)/Module,av,AV,Video codec and format support via FFmpeg.,+libffmpeg-full @BROKEN))
696 $(eval $(call Package/$(PKG_NAME)/Module,avmd,Voicemail detection,This module attempts to determine when a voicemail system has answered\nthe call.,))
697 $(eval $(call Package/$(PKG_NAME)/Module,basic,BASIC,BASIC module for FreeSWITCH.,))
698 $(eval $(call Package/$(PKG_NAME)/Module,bert,BERT,Line testing tool.,))
699 $(eval $(call Package/$(PKG_NAME)/Module,blacklist,Blacklist helper,This module provides tools to blacklist callers.,))
700 $(eval $(call Package/$(PKG_NAME)/Module,callcenter,Call center,This module implements Automated Call Distribution queues.,))
701 $(eval $(call Package/$(PKG_NAME)/Module,cdr_csv,CSV CDR,CSV Call Detail Record handler.,))
702 $(eval $(call Package/$(PKG_NAME)/Module,cdr_mongodb,MongoDB CDR,MongoDB Call Detail Record handler.,))
703 $(eval $(call Package/$(PKG_NAME)/Module,cdr_pg_csv,PostgreSQL CDR,PostgreSQL Call Detail Record handler.,@FS_STABLE_WITH_PGSQL))
704 $(eval $(call Package/$(PKG_NAME)/Module,cdr_sqlite,SQLite CDR,SQLite Call Detail Record handler.,))
705 $(eval $(call Package/$(PKG_NAME)/Module,cidlookup,Caller ID lookup,This module provides an API for querying caller ID name and location\ndata.,))
706 $(eval $(call Package/$(PKG_NAME)/Module,cluechoo,Clue Choo,This demo module renders a Clue Choo train on the FreeSWITCH console.,+libncurses))
707 $(eval $(call Package/$(PKG_NAME)/Module,commands,Commands,This module provides miscellaneous API commands.,))
708 $(eval $(call Package/$(PKG_NAME)/Module,conference,Conference,This module provides multi-party conferencing.,))
709 $(eval $(call Package/$(PKG_NAME)/Module,console,Console logger,Allows control over what messages get logged to the console. When\nFreeSWITCH is compiled without libedit support - this is not the\ndefault - mod_console has no effect because the init script starts\nFreeSWITCH with the console disabled to work around an\ninteroperability issue that causes high CPU load.,))
710 $(eval $(call Package/$(PKG_NAME)/Module,curl,cURL,This module provides an API for making HTTP requests with cURL.,))
711 $(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.,))
712 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_asterisk,Asterisk dialplan,Asterisk extensions.conf style dialplan parser.,))
713 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_xml,XML dialplan,Standard FreeSWITCH XML dialplan support.,))
714 $(eval $(call Package/$(PKG_NAME)/Module,dingaling,Generic XMPP,Allows FreeSWITCH to be used as a client for XMPP Servers.,))
715 $(eval $(call Package/$(PKG_NAME)/Module,directory,Dial-by-name directory,This module implements a dial-by-name directory IVR.,))
716 $(eval $(call Package/$(PKG_NAME)/Module,distributor,Load distributor,This module implements a mechanism for performing load balancing.,))
717 $(eval $(call Package/$(PKG_NAME)/Module,dptools,Dialplan tools,This module implements basic dialplan tools.,))
718 $(eval $(call Package/$(PKG_NAME)/Module,easyroute,DID routing,This module does destination lookup based on DID.,))
719 $(eval $(call Package/$(PKG_NAME)/Module,enum,ENUM routing,This module implements ENUM support.,+libldns))
720 $(eval $(call Package/$(PKG_NAME)/Module,erlang_event,Erlang event,Erlang event module.,))
721 $(eval $(call Package/$(PKG_NAME)/Module,esf,Multicast,This module adds multi-cast support.,))
722 $(eval $(call Package/$(PKG_NAME)/Module,esl,Single ESL,This module adds an API for generating one-off ESL requests.,))
723 $(eval $(call Package/$(PKG_NAME)/Module,event_multicast,Multicast Event,Multicast Event System for FreeSWITCH.,))
724 $(eval $(call Package/$(PKG_NAME)/Module,event_socket,Event socket,Sends events via a single socket. Needed for fs_cli.,))
725 $(eval $(call Package/$(PKG_NAME)/Module,expr,Expr,This module adds expr support for expression evaluation.,))
726 $(eval $(call Package/$(PKG_NAME)/Module,fifo,FIFO,This module adds a first-in first-out queue system.,))
727 $(eval $(call Package/$(PKG_NAME)/Module,format_cdr,Multiformat CDR,A superset of mod_json_cdr and mod_xml_cdr.,))
728 $(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.,))
729 $(eval $(call Package/$(PKG_NAME)/Module,fsv,FSV,This module provides dialplan applications for recording and playing\nvideos.,))
730 $(eval $(call Package/$(PKG_NAME)/Module,g723_1,G.723.1 passthrough,G.723.1 codec passthrough.,))
731 $(eval $(call Package/$(PKG_NAME)/Module,g729,G.729 passthrough,G.729 codec passthrough.,))
732 $(eval $(call Package/$(PKG_NAME)/Module,graylog2,Graylog2 logger,GELF logger for Graylog2 and Logstash.,))
733 $(eval $(call Package/$(PKG_NAME)/Module,h26x,H.26x passthrough,H.26x video codec passthrough.,))
734 $(eval $(call Package/$(PKG_NAME)/Module,hash,Hash,This module provides a key-value in-memory datastore. Usable as a\nlimit backend.,))
735 $(eval $(call Package/$(PKG_NAME)/Module,hiredis,Redis client,This module provides a mechanism to use Redis as a datastore.,+libhiredis))
736 $(eval $(call Package/$(PKG_NAME)/Module,httapi,HT-TAPI,This module provides an API for controlling the switch by responding\nto HTTP requests.,))
737 $(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.,))
738 $(eval $(call Package/$(PKG_NAME)/Module,isac,iSAC,iSAC codec support.,@arm||i386||mips||mips64||mips64el||mipsel||x86_64))
739 $(eval $(call Package/$(PKG_NAME)/Module,json_cdr,JSON CDR,JSON-based Call Detail Record handler.,))
740 $(eval $(call Package/$(PKG_NAME)/Module,kazoo,Kazoo,Kazoo module for FreeSWITCH.,))
741 $(eval $(call Package/$(PKG_NAME)/Module,lcr,LCR,This module adds a facility for least-cost routing.,))
742 $(eval $(call Package/$(PKG_NAME)/Module,ldap,LDAP,LDAP module for FreeSWITCH.,+libopenldap))
743 $(eval $(call Package/$(PKG_NAME)/Module,local_stream,Local stream,Connects multiple channels to a looped stream.,))
744 $(eval $(call Package/$(PKG_NAME)/Module,logfile,File logger,Logs FreeSWITCH output to a file.,))
745 $(eval $(call Package/$(PKG_NAME)/Module,loopback,Loopback,A loopback channel driver.,))
746 $(eval $(call Package/$(PKG_NAME)/Module,lua,Lua,Lua language interface for FreeSWITCH.,+liblua))
747 $(eval $(call Package/$(PKG_NAME)/Module,mp4v,MP4 video passthrough,MP4 video passthrough..,))
748 $(eval $(call Package/$(PKG_NAME)/Module,native_file,Native file,Plays files that are already encoded in the right format.,))
749 $(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.,))
750 $(eval $(call Package/$(PKG_NAME)/Module,odbc_cdr,ODBC CDR,ODBC Call Detail Record handler.,))
751 $(eval $(call Package/$(PKG_NAME)/Module,opus,Opus,Opus codec support.,+libopus))
752 $(eval $(call Package/$(PKG_NAME)/Module,oreka,Oreka,This module provides media recording with the Oreka cross-platform\naudio stream recording and retrieval system.,))
753 $(eval $(call Package/$(PKG_NAME)/Module,png,PNG,Allows playback of video using PNG files.,))
754 $(eval $(call Package/$(PKG_NAME)/Module,prefix,Prefix match,This module provides a data store with fast lookups by the longest\nprefix match rule.,))
755 $(eval $(call Package/$(PKG_NAME)/Module,python,Python,Python support module.,+python-light))
756 $(eval $(call Package/$(PKG_NAME)/Module,rayo,Rayo,Rayo/XMPP 3PCC server for FreeSWITCH.,+$(PKG_NAME)-mod-ssml))
757 $(eval $(call Package/$(PKG_NAME)/Module,redis,Redis limit backend,This module provides a mechanism to use Redis as a limit backend data\nstore.,))
758 $(eval $(call Package/$(PKG_NAME)/Module,rss,RSS,Parses and reads XML based RSS feeds and reads the entries aloud via a TTS engine.,))
759 $(eval $(call Package/$(PKG_NAME)/Module,rtc,Media streaming,Media streaming as used by WebRTC and mod_verto.,))
760 $(eval $(call Package/$(PKG_NAME)/Module,rtmp,RTMP endpoint,RTMP endpoint support. Allows FreeSWITCH to be used from RTMP clients.,))
761 $(eval $(call Package/$(PKG_NAME)/Module,say_de,German Say,Uses prerecorded sounds to read or say various things.,))
762 $(eval $(call Package/$(PKG_NAME)/Module,say_en,English Say,Uses prerecorded sounds to read or say various things.,))
763 $(eval $(call Package/$(PKG_NAME)/Module,say_es,Spanish Say,Uses prerecorded sounds to read or say various things.,))
764 $(eval $(call Package/$(PKG_NAME)/Module,say_es_ar,Argentinian Spanish Say,Uses prerecorded sounds to read or say various things.,))
765 $(eval $(call Package/$(PKG_NAME)/Module,say_fa,Persian Say,Uses prerecorded sounds to read or say various things.,))
766 $(eval $(call Package/$(PKG_NAME)/Module,say_fr,French Say,Uses prerecorded sounds to read or say various things.,))
767 $(eval $(call Package/$(PKG_NAME)/Module,say_he,Hebrew Say,Uses prerecorded sounds to read or say various things.,))
768 $(eval $(call Package/$(PKG_NAME)/Module,say_hr,Croatian Say,Uses prerecorded sounds to read or say various things.,))
769 $(eval $(call Package/$(PKG_NAME)/Module,say_hu,Hungarian Say,Uses prerecorded sounds to read or say various things.,))
770 $(eval $(call Package/$(PKG_NAME)/Module,say_it,Italian Say,Uses prerecorded sounds to read or say various things.,))
771 $(eval $(call Package/$(PKG_NAME)/Module,say_ja,Japanese Say,Uses prerecorded sounds to read or say various things.,))
772 $(eval $(call Package/$(PKG_NAME)/Module,say_nl,Dutch Say,Uses prerecorded sounds to read or say various things.,))
773 $(eval $(call Package/$(PKG_NAME)/Module,say_pl,Polish Say,Uses prerecorded sounds to read or say various things.,))
774 $(eval $(call Package/$(PKG_NAME)/Module,say_pt,Portuguese Say,Uses prerecorded sounds to read or say various things.,))
775 $(eval $(call Package/$(PKG_NAME)/Module,say_ru,Russian Say,Uses prerecorded sounds to read or say various things.,))
776 $(eval $(call Package/$(PKG_NAME)/Module,say_sv,Swedish Say,Uses prerecorded sounds to read or say various things.,))
777 $(eval $(call Package/$(PKG_NAME)/Module,say_th,Thai Say,Uses prerecorded sounds to read or say various things.,))
778 $(eval $(call Package/$(PKG_NAME)/Module,say_zh,Chinese Say,Uses prerecorded sounds to read or say various things.,))
779 $(eval $(call Package/$(PKG_NAME)/Module,shell_stream,Shell stream,Allows to stream audio from an arbitrary shell command.,))
780 $(eval $(call Package/$(PKG_NAME)/Module,shout,Shout,Allows to stream audio from MP3s or Shoutcast streams.,+lame-lib +libmpg123 +libshout))
781 $(eval $(call Package/$(PKG_NAME)/Module,skinny,Skinny,Skinny Call Control Protocol endpoint support.,))
782 $(eval $(call Package/$(PKG_NAME)/Module,sms,SMS,This module provides an abstract facility for interfacing with SMS\nsystems.,))
783 $(eval $(call Package/$(PKG_NAME)/Module,snapshot,Snapshot,This module can record a sliding window of audio and take snapshots\nto disk.,))
784 $(eval $(call Package/$(PKG_NAME)/Module,sndfile,Soundfile,Adds sound format support via libsndfile.,+libsndfile))
785 $(eval $(call Package/$(PKG_NAME)/Module,snmp,SNMP,An SNMP stats reporter.,+libnetsnmp))
786 $(eval $(call Package/$(PKG_NAME)/Module,snom,SNOM,This module implements features specific to SNOM phones.,))
787 $(eval $(call Package/$(PKG_NAME)/Module,sofia,Sofia SIP,SIP module.,))
788 $(eval $(call Package/$(PKG_NAME)/Module,sonar,Sonar,This module measures the latency on an audio link by sending audible\naudio sonar pings.,))
789 $(eval $(call Package/$(PKG_NAME)/Module,spandsp,SpanDSP,This module implements SpanDSP fax. It includes DSP and codec\nfunctionality.,+libjpeg +liblzma))
790 $(eval $(call Package/$(PKG_NAME)/Module,spy,User Spy,This module adds the ability to monitor the audio of a channel.,))
791 $(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.,))
792 $(eval $(call Package/$(PKG_NAME)/Module,stress,Stress,This module attempts to detect voice stress on an audio channel.,))
793 $(eval $(call Package/$(PKG_NAME)/Module,syslog,Syslog logger,Logs FreeSWITCH output to the syslog.,))
794 $(eval $(call Package/$(PKG_NAME)/Module,theora,Theora passthrough,Theora video codec passthrough.,))
795 $(eval $(call Package/$(PKG_NAME)/Module,tone_stream,Tone stream,Tone generation stream.,))
796 $(eval $(call Package/$(PKG_NAME)/Module,translate,Number translation,This module implements number translation.,))
797 $(eval $(call Package/$(PKG_NAME)/Module,tts_commandline,TTS command-line,Run a command-line and play the output file.,))
798 $(eval $(call Package/$(PKG_NAME)/Module,unimrcp,UniMRCP,Allows communication with Media Resource Control Protocol servers.,))
799 $(eval $(call Package/$(PKG_NAME)/Module,valet_parking,Valet parking,This module implements the valet call parking strategy.,))
800 $(eval $(call Package/$(PKG_NAME)/Module,verto,Verto,Verto signaling protocol.,))
801 $(eval $(call Package/$(PKG_NAME)/Module,voicemail,Voicemail,This module provides a voicemail system.,))
802 $(eval $(call Package/$(PKG_NAME)/Module,voicemail_ivr,Voicemail IVR,This module provides an extensible voicemail IVR system.,))
803 $(eval $(call Package/$(PKG_NAME)/Module,xml_cdr,XML CDR,XML Call Detail Record handler.,))
804 $(eval $(call Package/$(PKG_NAME)/Module,xml_curl,XML cURL,Provides an XML cURL interfaces to pull dynamic XML configuration for\nFreeSWITCH over HTTP.,))
805 $(eval $(call Package/$(PKG_NAME)/Module,xml_ldap,XML LDAP,LDAP XML gateway.,+libopenldap))
806 $(eval $(call Package/$(PKG_NAME)/Module,xml_rpc,XML RPC,Allows using the webapi to control FreeSWITCH.,))
807 $(eval $(call Package/$(PKG_NAME)/Module,xml_scgi,XML SCGI,SCGI XML Gateway.,))
808 $(eval $(call Package/$(PKG_NAME)/Module,yaml,YAML,YAML language module.,+libyaml))
809
810 ################################
811 # FreeSWITCH utilities
812 # Params:
813 # 1 - Package subname
814 # 2 - Package title
815 # 3 - Utility description
816 # 4 - Utility dependencies
817 # 5 - Utility is a script (y/n)
818 ################################
819
820 $(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))
821 $(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))
822 $(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))
823 $(eval $(call Package/$(PKG_NAME)/Util,gentls_cert,TLS certificate,Can be used to create TLS certificates and setup CAs.,+openssl-util,y))
824 $(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))