From 4c65818334e4a7873eccbf7f23a0c51fff94b76c Mon Sep 17 00:00:00 2001 From: Stefan Koch Date: Thu, 5 Jan 2017 08:30:35 +0100 Subject: [PATCH] asterisk-{11.x,13.x}: added module fax and fax-spandsp Based on removed commit 4b395e935801871a8c1b4c6834655c18d9792449 Signed-off-by: Stefan Koch --- net/asterisk-11.x/Makefile | 11 ++++++++++- net/asterisk-13.x/Makefile | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/net/asterisk-11.x/Makefile b/net/asterisk-11.x/Makefile index 064a47a..406ea56 100644 --- a/net/asterisk-11.x/Makefile +++ b/net/asterisk-11.x/Makefile @@ -210,6 +210,14 @@ else --without-postgres endif +ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-res-fax-spandsp),) + CONFIGURE_ARGS+= \ + --with-spandsp="$(STAGING_DIR)/usr" +else + CONFIGURE_ARGS+= \ + --without-spandsp +endif + ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-res-srtp),) CONFIGURE_ARGS+= \ --with-srtp="$(STAGING_DIR)/usr" @@ -255,7 +263,6 @@ CONFIGURE_ARGS+= \ --without-pwlib \ --without-radius \ --without-sdl \ - --without-spandsp \ --without-sqlite \ --with-sqlite3="$(STAGING_DIR)/usr" \ --without-suppserv \ @@ -437,6 +444,8 @@ $(eval $(call BuildAsterisk11Module,res-ael-share,Shareable AEL code,support for $(eval $(call BuildAsterisk11Module,res-agi,Asterisk Gateway Interface,Support for the Asterisk Gateway Interface extension,,,,res_agi,)) $(eval $(call BuildAsterisk11Module,res-calendar,Calendaring API,Calendaring support (ICal and Google Calendar),,/etc/asterisk/calendar.conf,calendar.conf,res_calendar,,)) $(eval $(call BuildAsterisk11Module,res-clioriginate,Calls via CLI,Originate calls via the CLI,,,,res_clioriginate,)) +$(eval $(call BuildAsterisk11Module,res-fax-spandsp,Spandsp T.38 and G.711,Spandsp T.38 and G.711 FAX Resource,+asterisk11-res-fax +libspandsp +libtiff,,,res_fax_spandsp,)) +$(eval $(call BuildAsterisk11Module,res-fax,FAX modules,Generic FAX resource for FAX technology resource modules,+asterisk11-res-timing-pthread,/etc/asterisk/res_fax.conf,res_fax.conf,res_fax,)) $(eval $(call BuildAsterisk11Module,res-monitor,Provide Monitor,Cryptographic Signature capability,,,,res_monitor,)) $(eval $(call BuildAsterisk11Module,res-musiconhold,MOH,Music On Hold support,,/etc/asterisk/musiconhold.conf,musiconhold.conf,res_musiconhold,)) $(eval $(call BuildAsterisk11Module,res-phoneprov,Phone Provisioning,Phone provisioning application for the asterisk internal http server,,/etc/asterisk/phoneprov.conf,phoneprov.conf,res_phoneprov,)) diff --git a/net/asterisk-13.x/Makefile b/net/asterisk-13.x/Makefile index 5cf80cf..dae910d 100644 --- a/net/asterisk-13.x/Makefile +++ b/net/asterisk-13.x/Makefile @@ -207,7 +207,7 @@ CONFIGURE_ARGS+= \ --with-popt="$(STAGING_DIR)/usr" \ --without-pwlib \ --without-radius \ - --without-spandsp \ + $(if $(CONFIG_PACKAGE_$(PKG_NAME)-res-fax-spandsp),--with-spandsp="$(STAGING_DIR)/usr",--without-spandsp) \ $(if $(CONFIG_PACKAGE_$(PKG_NAME)-res-xmpp),--with-iksemel="$(STAGING_DIR)/usr",--without-iksemel) \ --without-sdl \ --without-sqlite \ @@ -391,6 +391,8 @@ $(eval $(call BuildAsterisk13Module,res-clioriginate,Calls via CLI,Originate cal $(eval $(call BuildAsterisk13Module,res-hep,HEPv3 API,,,,res_hep,,)) $(eval $(call BuildAsterisk13Module,res-hep-pjsip,PJSIP HEPv3 Logger,,+asterisk13-res-hep +asterisk13-pjsip,,res_hep,,)) $(eval $(call BuildAsterisk13Module,res-hep-rtcp,RTCP HEPv3 Logger,,+asterisk13-res-hep,,res_hep,,)) +$(eval $(call BuildAsterisk13Module,res-fax-spandsp,Spandsp T.38 and G.711,Spandsp T.38 and G.711 FAX Resource,+asterisk13-res-fax +libspandsp +libtiff,,res_fax_spandsp,,)) +$(eval $(call BuildAsterisk13Module,res-fax,FAX modules,Generic FAX resource for FAX technology resource modules,+asterisk13-res-timing-pthread,res_fax.conf,res_fax,,)) $(eval $(call BuildAsterisk13Module,res-http-websocket,HTTP websocket support,,,,res_http_websocket,,)) $(eval $(call BuildAsterisk13Module,res-monitor,Provide Monitor,Cryptographic Signature capability,,,res_monitor,,)) $(eval $(call BuildAsterisk13Module,res-musiconhold,MOH,Music On Hold support,,musiconhold.conf,res_musiconhold,,)) -- 2.30.2