summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorjnemeth <jnemeth@pkgsrc.org>2011-02-06 08:30:17 +0000
committerjnemeth <jnemeth@pkgsrc.org>2011-02-06 08:30:17 +0000
commit2da05b13dbc70813a661c2aaf317eec8af578741 (patch)
tree206899256e44fef7995f8ebb4a1d7ddf564d43f2 /comms
parentc8af9a9f0a8c0752944a40bc9107175985886e8c (diff)
downloadpkgsrc-2da05b13dbc70813a661c2aaf317eec8af578741.tar.gz
Add a spandsp option which pulls in comms/spandsp and links against it
to enable res_fax_spandsp.so. Don't bother with a PKGREVISION bump since this doesn't change default builds and there is no need tobother people that don't need the option.
Diffstat (limited to 'comms')
-rw-r--r--comms/asterisk18/PLIST3
-rw-r--r--comms/asterisk18/options.mk14
2 files changed, 13 insertions, 4 deletions
diff --git a/comms/asterisk18/PLIST b/comms/asterisk18/PLIST
index ad28310fdab..f22bd5679ba 100644
--- a/comms/asterisk18/PLIST
+++ b/comms/asterisk18/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2010/12/20 04:06:16 jnemeth Exp $
+@comment $NetBSD: PLIST,v 1.3 2011/02/06 08:30:17 jnemeth Exp $
include/asterisk.h
include/asterisk/_private.h
include/asterisk/abstract_jb.h
@@ -312,6 +312,7 @@ lib/asterisk/modules/res_convert.so
lib/asterisk/modules/res_crypto.so
lib/asterisk/modules/res_curl.so
lib/asterisk/modules/res_fax.so
+${PLIST.spandsp}lib/asterisk/modules/res_fax_spandsp.so
lib/asterisk/modules/res_limit.so
lib/asterisk/modules/res_monitor.so
lib/asterisk/modules/res_musiconhold.so
diff --git a/comms/asterisk18/options.mk b/comms/asterisk18/options.mk
index d79e6112b16..433245151c2 100644
--- a/comms/asterisk18/options.mk
+++ b/comms/asterisk18/options.mk
@@ -1,13 +1,13 @@
-# $NetBSD: options.mk,v 1.1.1.1 2010/12/15 03:22:45 jnemeth Exp $
+# $NetBSD: options.mk,v 1.2 2011/02/06 08:30:17 jnemeth Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.asterisk
-PKG_SUPPORTED_OPTIONS= zaptel x11 unixodbc ilbc webvmail ldap
+PKG_SUPPORTED_OPTIONS= zaptel x11 unixodbc ilbc webvmail ldap spandsp
PKG_OPTIONS_LEGACY_OPTS+= gtk:x11
PKG_SUGGESTED_OPTIONS= ldap
.include "../../mk/bsd.options.mk"
-PLIST_VARS+= zaptel x11 unixodbc ilbc webvmail ldap
+PLIST_VARS+= zaptel x11 unixodbc ilbc webvmail ldap spandsp
# Asterisk now uses DAHDI, not zaptel; not implemented yet...
#.if !empty(PKG_OPTIONS:Mzaptel)
@@ -50,6 +50,14 @@ USE_TOOLS+= awk
PLIST.ilbc= yes
.endif
+.if !empty(PKG_OPTIONS:Mspandsp)
+. include "../../comms/spandsp/buildlink3.mk"
+CONFIGURE_ARGS+= --with-spandsp
+PLIST.spandsp= yes
+.else
+CONFIGURE_ARGS+= --without-spandsp
+.endif
+
MAKE_FLAGS+= GLOBAL_MAKEOPTS=${WRKSRC}/pkgsrc.makeopts
post-configure:
.if !empty(PKG_OPTIONS:Mx11)