source: packages/net/freeswitch/Makefile @ 27207

Last change on this file since 27207 was 27207, checked in by swalker, 5 years ago

[packages] freeswitch: store the git hash in the PKG_REV variable

File size: 23.1 KB
Line 
1#
2# Copyright (C) 2009-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=freeswitch
11PKG_VERSION:=1.0.7
12PKG_RELEASE:=1
13
14PKG_SOURCE_PROTO:=git
15PKG_SOURCE_URL:=git://git.$(PKG_NAME).org/$(PKG_NAME).git
16PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17PKG_REV:=1c6b7d81618a943be9b1c0720bc0032b34b2876a
18PKG_SOURCE_VERSION:=$(PKG_REV)
19PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
20PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22PKG_FIXUP:=libtool
23
24FS_MOD_AVAILABLE:= \
25        alsa \
26        amr \
27        amrwb \
28        avmd \
29        bv \
30        callcenter \
31        cdr-csv \
32        cdr-pg-csv \
33        cdr-sqlite \
34        celt \
35        cepstral \
36        cidlookup \
37        cluechoo \
38        codec2 \
39        commands \
40        conference \
41        console \
42        curl \
43        dahdi-codec \
44        db \
45        dialplan-asterisk \
46        dialplan-directory \
47        dialplan-xml \
48        dingaling \
49        directory \
50        distributor \
51        dptools \
52        easyroute \
53        enum \
54        erlang-event \
55        esf \
56        event-multicast \
57        event-socket \
58        event-zmq \
59        expr \
60        fifo \
61        file-string \
62        flite \
63        fsv \
64        g723-1 \
65        g729 \
66        h26x \
67        h323 \
68        hash \
69        ilbc \
70        java \
71        lcr \
72        ldap \
73        local-stream \
74        logfile \
75        loopback \
76        lua \
77        managed \
78        memcache \
79        mp4 \
80        native-file \
81        nibblebill \
82        opal \
83        openzap \
84        perl \
85        pocketsphinx \
86        portaudio \
87        portaudio-stream \
88        python \
89        radius-cdr \
90        rss \
91        say-de \
92        say-en \
93        say-es \
94        say-fr \
95        say-hu \
96        say-it \
97        say-nl \
98        say-pt \
99        say-ru \
100        say-th \
101        say-zh \
102        shell-stream \
103        shout \
104        silk \
105        siren \
106        skinny \
107        skypopen \
108        sangoma-codec \
109        snapshot \
110        snipe-hunt \
111        sndfile \
112        snom \
113        sofia \
114        spandsp \
115        speex \
116        spidermonkey \
117        spidermonkey-core-db \
118        spidermonkey-curl \
119        spidermonkey-odbc \
120        spidermonkey-socket \
121        spidermonkey-teletone \
122        spy \
123        stress \
124        syslog \
125        tone-stream \
126        tts-commandline \
127        unimrcp \
128        valet-parking \
129        vmd \
130        voicemail \
131        xml-cdr \
132        xml-curl \
133        xml-ldap \
134        xml-rpc \
135        yaml \
136
137PKG_CONFIG_DEPENDS:= \
138        $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-mod-%,$(FS_MOD_AVAILABLE)) \
139
140include $(INCLUDE_DIR)/package.mk
141
142define Package/$(PKG_NAME)/Default
143  SECTION:=net
144  CATEGORY:=Network
145  SUBMENU:=Telephony
146  URL:=http://www.$(PKG_NAME).org/
147  MAINTAINER:=Mazilo <OpenWRT@slickdeals.endjunk.com>
148endef
149
150
151define Package/$(PKG_NAME)
152$(call Package/$(PKG_NAME)/Default)
153  TITLE:=FreeSWITCH open source telephony platform
154  DEPENDS:= +libopenssl +libreadline +libncurses +libpthread +libstdcpp
155  MENU:=1
156endef
157
158define Package/$(PKG_NAME)/description
159  FreeSWITCH is an open source telephony platform designed to
160  facilitate the creation of voice and chat driven products scaling
161  from a soft-phone up to a soft-switch.  See http://wiki.$(PKG_NAME).org
162endef
163
164define Package/$(PKG_NAME)-example-config
165$(call Package/$(PKG_NAME)/Default)
166  TITLE:=FreeSWITCH example config (commented)
167  DEPENDS:= $(PKG_NAME)
168endef
169
170define Package/$(PKG_NAME)-example-config/description
171  The default configuration included with FreeSWITCH. It is not intended to be
172  a final product, and is thus moved to /usr/share/$(PKG_NAME)/examples/conf to
173  be an example of how FreeSWITCH can be configured.
174endef
175
176define Package/$(PKG_NAME)-config-upstream-defaults
177$(call Package/$(PKG_NAME)/Default)
178  TITLE:=FreeSWITCH upstream config
179  DEPENDS:= $(PKG_NAME)
180endef
181
182define Package/$(PKG_NAME)-config-upstream-defaults/description
183  The default configuration included with FreeSWITCH. It is not intended to be
184  a final product, and but is included for those who don't want to use the
185  OpenWRT configuration and/or want to try things as prepared by upstream.
186endef
187
188define Package/$(PKG_NAME)-config-minimal
189$(call Package/$(PKG_NAME)/Default)
190  TITLE:=FreeSWITCH a minimal FS config
191  DEPENDS:= $(PKG_NAME)
192endef
193
194define Package/$(PKG_NAME)-config-minimal/description
195  A minimal configuration of FreeSWITCH for OpenWRT devices.  Is what the UCI
196  configuration began with.
197endef
198
199define Package/$(PKG_NAME)-collection-upstream-defaults
200$(call Package/$(PKG_NAME)/Default)
201  TITLE:=FreeSWITCH upstream default (sample) config
202  DEPENDS:= $(PKG_NAME) \
203                +$(PKG_NAME)-config-upstream-defaults \
204                +$(PKG_NAME)-mod-callcenter \
205                +$(PKG_NAME)-mod-codec2 \
206                +$(PKG_NAME)-mod-commands \
207                +$(PKG_NAME)-mod-conference \
208                +$(PKG_NAME)-mod-curl \
209                +$(PKG_NAME)-mod-dialplan-xml \
210                +$(PKG_NAME)-mod-dingaling \
211                +$(PKG_NAME)-mod-dptools \
212                +$(PKG_NAME)-mod-event-socket \
213                +$(PKG_NAME)-mod-g723-1 \
214                +$(PKG_NAME)-mod-g729 \
215                +$(PKG_NAME)-mod-hash \
216                +$(PKG_NAME)-mod-ilbc \
217                +$(PKG_NAME)-mod-local-stream \
218                +$(PKG_NAME)-mod-logfile \
219                +$(PKG_NAME)-mod-lua \
220                +$(PKG_NAME)-mod-native-file \
221                +$(PKG_NAME)-mod-siren \
222                +$(PKG_NAME)-mod-sndfile \
223                +$(PKG_NAME)-mod-sofia \
224                +$(PKG_NAME)-mod-spandsp \
225                +$(PKG_NAME)-mod-speex \
226                +$(PKG_NAME)-mod-syslog \
227                +$(PKG_NAME)-mod-tone-stream \
228                +$(PKG_NAME)-mod-xml-curl \
229                +$(PKG_NAME)-mod-xml-rpc \
230                +$(PKG_NAME)-tools
231endef
232
233define Package/$(PKG_NAME)-collection-minimal
234$(call Package/$(PKG_NAME)/Default)
235  TITLE:=A FreeSWITCH minimal package collection
236  DEPENDS:= $(PKG_NAME) \
237                +$(PKG_NAME)-config-minimal \
238                +$(PKG_NAME)-mod-codec2 \
239                +$(PKG_NAME)-mod-commands \
240                +$(PKG_NAME)-mod-dialplan-xml \
241                +$(PKG_NAME)-mod-dptools \
242                +$(PKG_NAME)-mod-event-socket \
243                +$(PKG_NAME)-mod-hash \
244                +$(PKG_NAME)-mod-local-stream \
245                +$(PKG_NAME)-mod-sndfile \
246                +$(PKG_NAME)-mod-sofia \
247                +$(PKG_NAME)-mod-syslog \
248                +$(PKG_NAME)-mod-tone-stream \
249                +$(PKG_NAME)-tools
250endef
251
252define Package/$(PKG_NAME)-sounds-en
253$(call Package/$(PKG_NAME)/Default)
254  TITLE:=FreeSWITCH english sounds
255  DEPENDS:= $(PKG_NAME)
256endef
257
258
259define Package/$(PKG_NAME)-sounds-moh
260$(call Package/$(PKG_NAME)/Default)
261  TITLE:=FreeSWITCH music-on-hold sounds
262  DEPENDS:= $(PKG_NAME)
263endef
264
265
266define Package/$(PKG_NAME)-tools
267$(call Package/$(PKG_NAME)/Default)
268  TITLE:=FreeSWITCH control tools
269  DEPENDS:= $(PKG_NAME)
270endef
271
272
273define Download/files
274 define Download/$(1)
275  FILE:=$(2)
276  URL:=http://files.$(PKG_NAME).org/$(4)
277  MD5SUM:=$(3)
278 endef
279 define Prepare/$(1)
280  $(LN) $(DL_DIR)/$(2) $(PKG_BUILD_DIR)/$(5)
281 endef
282 $$(eval $$(call Download,$(1)))
283endef
284
285MAKE_INSTALL_TARGETS:=install
286
287ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-celt),)
288 $(eval $(call Download/files,celt,celt-0.10.0.tar.gz,a656f6176e9be84027c0e51ceedd710f,downloads/libs/,libs/))
289endif
290
291ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-curl),)
292 $(eval $(call Download/files,json-c,json-c-0.9.tar.gz,4653b3b9c568bb9c782178abfaac128d,downloads/libs/,libs/))
293endif
294
295ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-flite),)
296 $(eval $(call Download/files,flite,flite-1.3.99-latest.tar.gz,365b60881715c5e13c0d8bc37d9be6ff,downloads/libs/,libs/))
297endif
298
299ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-en),)
300 $(eval $(call Download/files,sounds-en,$(PKG_NAME)-sounds-en-us-callie-8000-1.0.16.tar.gz,bde0883eb75fe06f39bde11f50a1f858,,))
301        MAKE_INSTALL_TARGETS+= sounds-install
302endif
303
304ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-sounds-moh),)
305 $(eval $(call Download/files,sounds-moh,$(PKG_NAME)-sounds-music-8000-1.0.8.tar.gz,f63ef3cc3507af079ae5c7b8b8a01e42,,))
306        MAKE_INSTALL_TARGETS+= moh-install
307endif
308
309# XXX: -fgnu89-inline is not supported on all compiler versions, so only enable it on avr32 where it solves build issues
310ifneq ($(CONFIG_avr32),)
311  TARGET_CFLAGS += -fgnu89-inline
312  TARGET_CXXFLAGS += -fgnu89-inline
313endif
314
315ifneq ($(CONFIG_USE_EGLIBC),)
316  ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)
317    TARGET_CFLAGS += -DNO_GETLOGIN
318  endif
319endif
320
321FS_TARGET_CFLAGS:= ${TARGET_CFLAGS} -DLUA_USE_LINUX $(FPIC) -std=gnu99 -Wno-format
322FS_TARGET_CXXFLAGS:= ${TARGET_CXXFLAGS} -DLUA_USE_LINUX $(FPIC) -Wno-format
323FS_TARGET_CPPFLAGS:= -I. -I./lua ${TARGET_CPPFLAGS}
324
325
326CONFIGURE_ARGS+= \
327        --prefix="/usr/share/$(PKG_NAME)" \
328        --bindir="/usr/bin" \
329        --libdir="/usr/lib" \
330        --sysconfdir="/etc/$(PKG_NAME)" \
331        --with-modinstdir="/usr/lib/$(PKG_NAME)" \
332        --enable-ipv6 \
333        --enable-optimization \
334        --with-random="/dev/urandom" \
335        $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-celt),--with-ogg="$(STAGING_DIR)/usr",--without-iogg) \
336        $(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) \
337        $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-dingaling),--with-openssl="$(STAGING_DIR)/usr",--without-openssl) \
338        $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-java),--with-java="$(STAGING_DIR)/usr",--without-java) \
339        $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-spandsp),--enable-builtin-tiff,) \
340
341
342CONFIGURE_VARS+= \
343        config_TARGET_CC="${TARGET_CC}" \
344        config_TARGET_CFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CFLAGS}" \
345        config_TARGET_CXX="${TARGET_CXX}" \
346        config_TARGET_CXXFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CXXFLAGS}" \
347        config_TARGET_CPPFLAGS="${FS_TARGET_CPPFLAGS}" \
348        config_BUILD_CC="${HOSTCC}" \
349        config_TARGET_READLINE_INC="${FS_TARGET_CPPFLAGS}" \
350        config_TARGET_READLINE_LIBS="${TARGET_LDFLAGS} -lreadline -lncurses" \
351        config_TARGET_LIBS="${TARGET_LDFLAGS} -lpthread" \
352        CC_FOR_BUILD="${HOSTCC}" \
353        LDFLAGS_FOR_BUILD="${HOST_LDFLAGS}" \
354        CC="${TARGET_CC}" \
355        CXX="${TARGET_CXX}" \
356        CFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CFLAGS}" \
357        CXXFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CXXFLAGS}" \
358        CPPFLAGS="${FS_TARGET_CPPFLAGS}" \
359        LDFLAGS="${TARGET_LDFLAGS} -Wl,-rpath-link=\"${STAGING_DIR}/usr/lib\"" \
360        ac_cv_dev_urandom="yes" \
361        ac_cv_file_dbd_apr_dbd_mysql_c="no" \
362        ac_cv_file__dev_random="no" \
363        ac_cv_file__dev_urandom="yes" \
364        ac_cv_file___dev_urandom_="yes" \
365        ac_cv_func_mmap_fixed_mapped="yes" \
366        ac_cv_func_pthread_rwlock_init="yes" \
367        ac_cv_struct_rlimit="yes" \
368        apr_cv_mutex_recursive="yes" \
369        apr_cv_process_shared_works="no" \
370        apr_cv_tcp_nodelay_with_cork="yes" \
371        apr_cv_type_rwlock_t="yes" \
372        ac_cv_path_LIBGNUTLS_CONFIG="no" \
373
374
375define Build/Prepare
376        $(call Build/Prepare/Default)
377        $(call Prepare/celt)
378        $(call Prepare/flite)
379        $(call Prepare/json-c)
380        $(call Prepare/sounds-en)
381        $(call Prepare/sounds-moh)
382        (cd $(PKG_BUILD_DIR); [ -h noreg ] || touch noreg)      # Just to shut up Cluecon reg. msg.
383        (cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./bootstrap.sh)
384endef
385
386define Build/Configure
387        $(call Build/Configure/Default,)
388        $(foreach m,$(FS_MOD_AVAILABLE),
389                $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-$(m)),
390                        $(SED) 's|^[ #]*\([^#]*/mod_$(subst -,_,$(m))\)$$$$|\1|g' $(PKG_BUILD_DIR)/modules.conf
391                ,
392                        $(SED) 's|^\([^#]*/mod_$(subst -,_,$(m))\)$$$$|#\1|g' $(PKG_BUILD_DIR)/modules.conf
393                )
394        )
395endef
396
397define Build/Compile
398        $(MAKE) -C $(PKG_BUILD_DIR) \
399                AR="$(TARGET_CROSS)ar" \
400                RANLIB="$(TARGET_CROSS)ranlib" \
401                CC="$(TARGET_CC)" \
402                CXX="$(TARGET_CXX)" \
403                DESTDIR="$(PKG_INSTALL_DIR)" \
404                LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
405                all $(MAKE_INSTALL_TARGETS)
406        $(SED) 's|^\([ \t]*\)\(.*\)"mod_console"\(.*\)$$$$|\1<!-- \2"mod_console"\3 -->|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
407        $(SED) 's|^\([ \t]*\)<!-- *\(.*\)"mod_syslog"\(.*\) *-->\(.*\)$$$$|\1\2"mod_syslog"\3\4|' $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
408endef
409
410define Build/InstallDev
411        $(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
412        $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/include/* $(1)/usr/include/$(PKG_NAME)/
413        $(INSTALL_DIR) $(1)/usr/lib
414        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).{a,so*} $(1)/usr/lib/
415endef
416
417define Package/$(PKG_NAME)/install
418        $(INSTALL_DIR) $(1)/usr/bin
419        $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
420        $(INSTALL_DIR) $(1)/usr/lib
421        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so.* $(1)/usr/lib/
422        $(INSTALL_DIR) $(1)/usr/lib/$(PKG_NAME)
423        $(INSTALL_DIR) $(1)/etc/default
424        $(INSTALL_DATA) ./files/$(PKG_NAME).default $(1)/etc/default/$(PKG_NAME)
425        $(INSTALL_DIR) $(1)/etc/init.d
426        $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
427        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
428        $(INSTALL_DATA) ./files/$(PKG_NAME).hotplug $(1)/etc/hotplug.d/iface/90-$(PKG_NAME)
429        $(INSTALL_DIR) $(1)/etc/config
430        $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
431endef
432
433define Package/$(PKG_NAME)-collection-upstream-defaults/install
434        $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
435endef
436
437define Package/$(PKG_NAME)-example-config/install
438        $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/examples/conf
439        $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/usr/share/$(PKG_NAME)/examples/conf/
440endef
441
442define Package/$(PKG_NAME)-config-upstream-defaults/install
443        $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
444        $(CP) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME)/* $(1)/etc/$(PKG_NAME)/
445endef
446
447define Package/$(PKG_NAME)-collection-minimal/install
448        $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
449endef
450
451define Package/$(PKG_NAME)-collection-uci-minimal/install
452        $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
453endef
454
455define Package/$(PKG_NAME)-config-minimal/install
456        $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
457        $(CP) ./files/etc.minimal/* $(1)/etc/$(PKG_NAME)/
458endef
459
460define Package/$(PKG_NAME)-sounds-en/install
461        $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds
462        $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/en $(1)/usr/share/$(PKG_NAME)/sounds/
463endef
464
465define Package/$(PKG_NAME)-sounds-moh/install
466        $(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/sounds
467        $(CP) $(PKG_INSTALL_DIR)/usr/share/$(PKG_NAME)/sounds/music $(1)/usr/share/$(PKG_NAME)/sounds/
468endef
469
470define Package/$(PKG_NAME)-tools/install
471        $(INSTALL_DIR) $(1)/usr/bin
472        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_cli $(1)/usr/bin/
473        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_encode $(1)/usr/bin/
474        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_ivrd $(1)/usr/bin/
475        $(CP) $(PKG_INSTALL_DIR)/usr/bin/tone2wav $(1)/usr/bin/
476endef
477
478# 1. Name
479# 2. Title
480# 3. Files
481# 4. Inter Depends
482# 5. Extra Depends
483define BuildPlugin
484  define Package/$(PKG_NAME)-mod-$(1)
485    $$(call Package/$(PKG_NAME)/Default)
486    TITLE:= FS $(2) module
487    DEPENDS:= $(PKG_NAME) $$(foreach m,$(4),+$(PKG_NAME)-mod-$$m) $(5)
488  endef
489
490  define Package/$(PKG_NAME)-mod-$(1)/install
491        [ -z "$(3)" ] || $(INSTALL_DIR) $$(1)/usr/lib/$(PKG_NAME)
492        for f in $(3); do \
493                $(CP) \
494                        $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)/$$$$$$$${f}.so \
495                        $$(1)/usr/lib/$(PKG_NAME)/ ; \
496        done
497        if [ -d "./files/etc.packages/$(1)" ]; then \
498                $(INSTALL_DIR) $$(1)/etc/$(PKG_NAME) ; \
499                $(CP) \
500                        ./files/etc.packages/$(1)/* \
501                        $$(1)/etc/$(PKG_NAME)/ ; \
502        fi
503  endef
504
505  define Package/$(PKG_NAME)-mod-$(1)/postinst
506#!/bin/sh
507sed -i -e 's|^\([ \t]*\)<!-- *\(.*\)"mod_$(subst -,_,$(1))"\(.*\) *-->\(.*\)$$$$|\1\2"mod_$(subst -,_,$(1))"\3\4|' $$$${IPKG_INSTROOT}/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
508  endef
509
510  define Package/$(PKG_NAME)-mod-$(1)/postrm
511#!/bin/sh
512sed -i -e 's|^\([ \t]*\)\(.*\)"mod_$(subst -,_,$(1))"\(.*\)$$$$|\1<!-- \2"mod_$(subst -,_,$(1))"\3 -->|' $$$${IPKG_INSTROOT}/etc/$(PKG_NAME)/autoload_configs/modules.conf.xml
513  endef
514
515  $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
516endef
517
518$(eval $(call BuildPackage,$(PKG_NAME)))
519$(eval $(call BuildPackage,$(PKG_NAME)-collection-upstream-defaults))
520$(eval $(call BuildPackage,$(PKG_NAME)-collection-minimal))
521$(eval $(call BuildPackage,$(PKG_NAME)-sounds-en))
522$(eval $(call BuildPackage,$(PKG_NAME)-sounds-moh))
523$(eval $(call BuildPackage,$(PKG_NAME)-tools))
524$(eval $(call BuildPackage,$(PKG_NAME)-example-config))
525$(eval $(call BuildPackage,$(PKG_NAME)-config-upstream-defaults))
526$(eval $(call BuildPackage,$(PKG_NAME)-config-minimal))
527
528#$(eval $(call BuildPlugin,Name,Title,Files,Depends))
529$(eval $(call BuildPlugin,alsa,Alsa endpoint,mod_alsa,,))
530$(eval $(call BuildPlugin,amr,GSM-AMR codec,mod_amr,,))
531$(eval $(call BuildPlugin,amrwb,GSM-AMRWB,mod_amrwb,,))
532$(eval $(call BuildPlugin,avmd,Advanced Voice Mail Detection,mod_avmd,,))
533$(eval $(call BuildPlugin,bv,codec mod_bv,mod_bv,,))
534$(eval $(call BuildPlugin,callcenter,Call Center,mod_callcenter,,))
535$(eval $(call BuildPlugin,cdr-csv,CSV-CDR handler,mod_cdr_csv,,))
536$(eval $(call BuildPlugin,cdr-pg-csv,Postgress CDR handler,mod_cdr_pg_csv,,+postgresql))
537$(eval $(call BuildPlugin,cdr-sqlite,SQLite3 CDR handler,mod_cdr_sqlite,,+sqlite3))
538$(eval $(call BuildPlugin,celt,CELT ultra-low delay codec,mod_celt,,+libogg))
539$(eval $(call BuildPlugin,cepstral,Cepstral interface,mod_cepstral,,@BROKEN)) # needs <swift.h>
540$(eval $(call BuildPlugin,cidlookup,applications mod_cidlookup,mod_cidlookup,,))
541$(eval $(call BuildPlugin,cluechoo,Framework Demo,mod_cluechoo,,))
542$(eval $(call BuildPlugin,codec2,CoDec 2,mod_codec2,,))
543$(eval $(call BuildPlugin,commands,API commands,mod_commands,,))
544$(eval $(call BuildPlugin,conference,Conference room,mod_conference,,))
545$(eval $(call BuildPlugin,console,Console logger,mod_console,,))
546$(eval $(call BuildPlugin,curl,HTTP request,mod_curl,,+libcurl))
547$(eval $(call BuildPlugin,dahdi-codec,DAHDI codecs,mod_dahdi_codec,,))
548$(eval $(call BuildPlugin,db,Database backend,mod_db,,))
549$(eval $(call BuildPlugin,dialplan-asterisk,Asterisk dialplan parser,mod_dialplan_asterisk,,))
550$(eval $(call BuildPlugin,dialplan-directory,Dialplan-Directory interface,mod_dialplan_directory,,))
551$(eval $(call BuildPlugin,dialplan-xml,Dialplan-XML interface,mod_dialplan_xml,,))
552$(eval $(call BuildPlugin,dingaling,Jabber interface,mod_dingaling,,+libgnutls-openssl)) 
553$(eval $(call BuildPlugin,directory,application mod_directory,mod_directory,,))
554$(eval $(call BuildPlugin,distributor,application mod_distributor,mod_distributor,,))
555$(eval $(call BuildPlugin,dptools,Dialplan tools,mod_dptools,,))
556$(eval $(call BuildPlugin,easyroute,DID routing,mod_easyroute,,))
557$(eval $(call BuildPlugin,enum,ENUM routing,mod_enum,,))
558$(eval $(call BuildPlugin,erlang-event,Erlang event handler,mod_erlang_event,,+erlang))
559$(eval $(call BuildPlugin,esf,Extra SIP Functionality,mod_esf,,))
560$(eval $(call BuildPlugin,event-multicast,Multicast event handler,mod_event_multicast,,))
561$(eval $(call BuildPlugin,event-socket,Socket event handler,mod_event_socket,,))
562$(eval $(call BuildPlugin,event-zmq,Socket event handler by Zero MQ,mod_event_zmq,,))
563$(eval $(call BuildPlugin,expr,Expression evaluation,mod_expr,,))
564$(eval $(call BuildPlugin,fifo,FIFO,mod_fifo,,))
565$(eval $(call BuildPlugin,file-string,File streaming,mod_file_string,,@OBSOLETE)) # merged into dptools
566$(eval $(call BuildPlugin,flite,Festival TTS,mod_flite,,@(!(armeb||avr32)||BROKEN)))
567$(eval $(call BuildPlugin,fsv,Video,mod_fsv,,))
568$(eval $(call BuildPlugin,g723-1,G.723.1 codec,mod_g723_1,,))
569$(eval $(call BuildPlugin,g729,G.729 codec,mod_g729,,))
570$(eval $(call BuildPlugin,h26x,H26X linear codec,mod_h26x,,))
571$(eval $(call BuildPlugin,h323,h323 endpoint,mod_h323,,@BROKEN)) # missing header files (other packages needed)
572$(eval $(call BuildPlugin,hash,API for manipulating a hash table,mod_hash,,))
573$(eval $(call BuildPlugin,ilbc,ILBC codec,mod_ilbc,,))
574$(eval $(call BuildPlugin,java,Java language interface,mod_java,,@BROKEN)) # needs java
575$(eval $(call BuildPlugin,lcr,Least Cost Routing,mod_lcr,,))
576$(eval $(call BuildPlugin,ldap,LDAP interface,mod_ldap,,@BROKEN)) # fails in openldap
577$(eval $(call BuildPlugin,local-stream,Local streaming,mod_local_stream,,))
578$(eval $(call BuildPlugin,logfile,File logger,mod_logfile,,))
579$(eval $(call BuildPlugin,loopback,Loopback endpoint,mod_loopback,,))
580$(eval $(call BuildPlugin,lua,Lua language interface,mod_lua,,+libstdcpp))
581$(eval $(call BuildPlugin,managed,language mod_managed,mod_managed,,@BROKEN)) # needs Mono
582$(eval $(call BuildPlugin,memcache,MemCached interface,mod_memcache,,@BROKEN)) # fails in libmemcached
583$(eval $(call BuildPlugin,mp4,MP4 File Format support for video apps,mod_mp4,,+libmp4v2))
584$(eval $(call BuildPlugin,native-file,Native files,mod_native_file,,))
585$(eval $(call BuildPlugin,nibblebill,Billing,mod_nibblebill,,))
586$(eval $(call BuildPlugin,opal,Multi-Protocol endpoint,mod_opal,,@BROKEN)) # needs Opal
587$(eval $(call BuildPlugin,openzap,Zaptel hardware interface,mod_openzap ozmod_analog ozmod_analog_em ozmod_isdn ozmod_skel ozmod_zt,,+libpcap))
588$(eval $(call BuildPlugin,perl,Perl language interface,mod_perl,,+perl @BROKEN)) # needs Perl
589$(eval $(call BuildPlugin,pocketsphinx,PocketSphinx SR,mod_pocketsphinx,,@BROKEN)) # fails in sphinxbase
590$(eval $(call BuildPlugin,portaudio,Local audio endpoint,mod_portaudio,,+alsa-lib))
591$(eval $(call BuildPlugin,portaudio-stream,format mod_portaudio_stream,mod_portaudio_stream,,))
592$(eval $(call BuildPlugin,python,Python language interface,mod_python,,@BROKEN)) # needs Python
593$(eval $(call BuildPlugin,radius-cdr,Radius-CDR interface,mod_radius_cdr,,@BROKEN)) # fails in freeradius-client
594$(eval $(call BuildPlugin,rss,RRS feeds via TTS,mod_rss,,))
595$(eval $(call BuildPlugin,say-de,German say,mod_say_de,,))
596$(eval $(call BuildPlugin,say-en,English say,mod_say_en,,))
597$(eval $(call BuildPlugin,say-es,Spanish say,mod_say_es,,))
598$(eval $(call BuildPlugin,say-fr,French say,mod_say_fr,,))
599$(eval $(call BuildPlugin,say-hu,Hungarian say,mod_say_hu,,))
600$(eval $(call BuildPlugin,say-it,Italian say,mod_say_it,,))
601$(eval $(call BuildPlugin,say-nl,Dutch say,mod_say_nl,,))
602$(eval $(call BuildPlugin,say-pt,Portugeese say,mod_say_pt,,))
603$(eval $(call BuildPlugin,say-ru,Russian say,mod_say_ru,,))
604$(eval $(call BuildPlugin,say-th,Thai say,mod_say_th,,))
605$(eval $(call BuildPlugin,say-zh,Chineese say,mod_say_zh,,))
606$(eval $(call BuildPlugin,shell-stream,Shell stream,mod_shell_stream,,))
607$(eval $(call BuildPlugin,shout,MP3 and Shoutcast stream,mod_shout,,@BROKEN)) # needs Ogg/Vorbis
608$(eval $(call BuildPlugin,silk,codec mod_silk,mod_silk,,))
609$(eval $(call BuildPlugin,siren,G.722.1 codec,mod_siren,,))
610$(eval $(call BuildPlugin,skinny,endpoint mod_skinny,mod_skinny,,))
611$(eval $(call BuildPlugin,skypopen,Skype compatible endpoint,mod_skypopen,,@BROKEN)) # needs <X11/Xlib.h>
612$(eval $(call BuildPlugin,sangoma-codec,codec sangoma-codec,mod_sangoma_codec,,@BROKEN)) # Untested
613$(eval $(call BuildPlugin,snapshot,application mod_snapshot,mod_snapshot,,))
614$(eval $(call BuildPlugin,sndfile,Multi-Format file transcoder,mod_sndfile,,))
615$(eval $(call BuildPlugin,snipe-hunt,application mod_snipe_hunt,mod_snipe_hunt,,))
616$(eval $(call BuildPlugin,snom,SNOM specific features,mod_snom,,))
617$(eval $(call BuildPlugin,sofia,SIP,mod_sofia,,))
618$(eval $(call BuildPlugin,spandsp,Span DSP,mod_spandsp,,+libjpeg))
619$(eval $(call BuildPlugin,speex,Speex codec,mod_speex,,))
620$(eval $(call BuildPlugin,spidermonkey,JavaScript,mod_spidermonkey,,@BROKEN)) # fails in js
621$(eval $(call BuildPlugin,spidermonkey-core_db,JavaScript DB,mod_spidermonkey_core_db,,@BROKEN))
622$(eval $(call BuildPlugin,spidermonkey-curl,JavaScript Curl,mod_spidermonkey_curl,,@BROKEN))
623$(eval $(call BuildPlugin,spidermonkey-odbc,JavaScript ODBC,mod_spidermonkey_odbc,,@BROKEN))
624$(eval $(call BuildPlugin,spidermonkey-socket,JavaScript socket,mod_spidermonkey_socket,,@BROKEN))
625$(eval $(call BuildPlugin,spidermonkey-teletone,JavaScript teletone,mod_spidermonkey_teletone,,@BROKEN))
626$(eval $(call BuildPlugin,spy,User spy,mod_spy,,))
627$(eval $(call BuildPlugin,stress,application mod_stress,mod_stress,,))
628$(eval $(call BuildPlugin,syslog,SysLog logger,mod_syslog,,))
629$(eval $(call BuildPlugin,tone-stream,Tone generation stream,mod_tone_stream,,))
630$(eval $(call BuildPlugin,tts-commandline,ASR TTS cli,mod_tts_commandline,,))
631$(eval $(call BuildPlugin,unimrcp,MRCP interface,mod_unimrcp,,))
632$(eval $(call BuildPlugin,valet-parking,application mod_valet_parking,mod_valet_parking,,))
633$(eval $(call BuildPlugin,vmd,VoiceMail beep detection,mod_vmd,,))
634$(eval $(call BuildPlugin,voicemail,VoiceMail,mod_voicemail,,))
635$(eval $(call BuildPlugin,xml-cdr,XML-CDR handler,mod_xml_cdr,,+libcurl))
636$(eval $(call BuildPlugin,xml-curl,XML-Curl gateway,mod_xml_curl,,+libcurl))
637$(eval $(call BuildPlugin,xml-ldap,LDAP-XML gateway,mod_xml_ldap,,@BROKEN)) # fails in openldap
638$(eval $(call BuildPlugin,xml-rpc,XML-RPC interface,mod_xml_rpc,,))
639$(eval $(call BuildPlugin,yaml,YAML dialplans,mod_yaml,,))
640
Note: See TracBrowser for help on using the repository browser.