summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2006-10-07 23:07:48 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2006-10-07 23:07:48 +0000
commit7547ff6a0e07c0fb4d82f94d6e024936ab826a1d (patch)
tree9346d1cc84803cac5daf605d09ec7142ce4fada8 /net-misc/asterisk-spandsp_codec_g726
parentPunt invalid use of USE=static. (diff)
downloadgentoo-2-7547ff6a0e07c0fb4d82f94d6e024936ab826a1d.tar.gz
gentoo-2-7547ff6a0e07c0fb4d82f94d6e024936ab826a1d.tar.bz2
gentoo-2-7547ff6a0e07c0fb4d82f94d6e024936ab826a1d.zip
initial commit.
(Portage version: 2.1.2_pre2-r5)
Diffstat (limited to 'net-misc/asterisk-spandsp_codec_g726')
-rw-r--r--net-misc/asterisk-spandsp_codec_g726/ChangeLog10
-rw-r--r--net-misc/asterisk-spandsp_codec_g726/Manifest16
-rw-r--r--net-misc/asterisk-spandsp_codec_g726/asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild59
-rw-r--r--net-misc/asterisk-spandsp_codec_g726/files/digest-asterisk-spandsp_codec_g726-0.0.2_pre263
-rw-r--r--net-misc/asterisk-spandsp_codec_g726/metadata.xml14
5 files changed, 102 insertions, 0 deletions
diff --git a/net-misc/asterisk-spandsp_codec_g726/ChangeLog b/net-misc/asterisk-spandsp_codec_g726/ChangeLog
new file mode 100644
index 000000000000..bc5cb7d96cb5
--- /dev/null
+++ b/net-misc/asterisk-spandsp_codec_g726/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/asterisk-spandsp_codec_g726
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-spandsp_codec_g726/ChangeLog,v 1.1 2006/10/07 23:07:48 sbriesen Exp $
+
+*asterisk-spandsp_codec_g726-0.0.2_pre26 (07 Oct 2006)
+
+ 07 Oct 2006; Stefan Briesenick <sbriesen@gentoo.org> +metadata.xml,
+ +asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild:
+ initial commit.
+
diff --git a/net-misc/asterisk-spandsp_codec_g726/Manifest b/net-misc/asterisk-spandsp_codec_g726/Manifest
new file mode 100644
index 000000000000..ac812111de0a
--- /dev/null
+++ b/net-misc/asterisk-spandsp_codec_g726/Manifest
@@ -0,0 +1,16 @@
+DIST spandsp-0.0.2pre26_codec_g726.c.bz2 2867 RMD160 23c6c971b3004e3e683076245f9557891bd3f0db SHA1 bd6df18218c745b6d76b6c71cda4e867922be8f0 SHA256 a5bfc64e2e45b8dc8799cdade8a8cdc82b103dd55a233e5725df8eb42d42264d
+EBUILD asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild 1450 RMD160 fc87bf9e8ac9dffc1af4a887c125fac9e1b9789b SHA1 02097bf0548a4ff40533263ad3259e67c0aa61de SHA256 34a304e4b901bb6924150dc53e0bb99ce9205a6f6c7982f8362510d8d9bb4e4b
+MD5 74731e8d504cd622d95e38b807fc1111 asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild 1450
+RMD160 fc87bf9e8ac9dffc1af4a887c125fac9e1b9789b asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild 1450
+SHA256 34a304e4b901bb6924150dc53e0bb99ce9205a6f6c7982f8362510d8d9bb4e4b asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild 1450
+MISC ChangeLog 333 RMD160 34c1dd95c85a3343fe458279c11a108fc1580ca8 SHA1 f5831eb74201931c7c50cfe5f6f1216e5b34f9ff SHA256 55ac524db3ad8923a2a5b2716f7696bc493edf686a665406dbd52811c9ab044a
+MD5 ef142ac1b90b1f24df918c8615168d3c ChangeLog 333
+RMD160 34c1dd95c85a3343fe458279c11a108fc1580ca8 ChangeLog 333
+SHA256 55ac524db3ad8923a2a5b2716f7696bc493edf686a665406dbd52811c9ab044a ChangeLog 333
+MISC metadata.xml 450 RMD160 50881a4dce30b0c63e00effa49d29df87b83f279 SHA1 298d57a1b63258e1bba01faa8167ff302ee7d29c SHA256 b9337e2dcbaa84c6db52d58fbc82b6f207f7ac4febc8bcd6727c2247fa996b3c
+MD5 f52121cf71fadf33674189fd776ca589 metadata.xml 450
+RMD160 50881a4dce30b0c63e00effa49d29df87b83f279 metadata.xml 450
+SHA256 b9337e2dcbaa84c6db52d58fbc82b6f207f7ac4febc8bcd6727c2247fa996b3c metadata.xml 450
+MD5 6ad3de2227460f6773d77ac875dfeca8 files/digest-asterisk-spandsp_codec_g726-0.0.2_pre26 280
+RMD160 33e6a308c4de2e6328613ec45facc6997302209e files/digest-asterisk-spandsp_codec_g726-0.0.2_pre26 280
+SHA256 0de2936cb203854ce2434bab8ca2a6d9c7d1f68990f37b10ce8ad4c6428ae0d5 files/digest-asterisk-spandsp_codec_g726-0.0.2_pre26 280
diff --git a/net-misc/asterisk-spandsp_codec_g726/asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild b/net-misc/asterisk-spandsp_codec_g726/asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild
new file mode 100644
index 000000000000..f25b6c781ab2
--- /dev/null
+++ b/net-misc/asterisk-spandsp_codec_g726/asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-spandsp_codec_g726/asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild,v 1.1 2006/10/07 23:07:48 sbriesen Exp $
+
+inherit eutils toolchain-funcs
+
+LIB_CODEC_G726="codec_g726-32"
+SRC_CODEC_G726="spandsp-${PV/_}_codec_g726.c"
+
+DESCRIPTION="SpanDSP ITU G.726-32kbps codec for Asterisk"
+HOMEPAGE="http://soft-switch.org/downloads/spandsp/spandsp-0.0.2pre26/"
+SRC_URI="mirror://gentoo/${SRC_CODEC_G726}.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND=">=media-libs/spandsp-0.0.2_pre26
+ >=net-misc/asterisk-1.2.0"
+
+S="${WORKDIR}"
+
+do_compile() {
+ echo "${@}" && "${@}"
+}
+
+src_unpack() {
+ unpack "${A}"
+
+ # patch include declarations
+ sed -e 's:^\(#include.*\)"\(asterisk/.*\)":\1<\2>:g' \
+ -e 's:^\(#include.*\)"\(asterisk\.h\)":\1<asterisk/\2>:g' \
+ "${SRC_CODEC_G726}" > "${LIB_CODEC_G726}.c" \
+ || die "unpack failed"
+}
+
+src_compile() {
+ do_compile $(tc-getCC) -D_GNU_SOURCE -fPIC ${CFLAGS} ${LDFLAGS} -lspandsp -lm \
+ -shared -o ${LIB_CODEC_G726}.so ${LIB_CODEC_G726}.c || die "compile failed"
+}
+
+src_install() {
+ exeinto /usr/$(get_libdir)/asterisk/modules
+ doexe ${LIB_CODEC_G726}.so
+}
+
+pkg_postinst() {
+ einfo
+ einfo "To enable the SpanDSP G.726-32 codec, you have to"
+ einfo "disable the G.726 codec shipped with Asterisk in"
+ einfo "your /etc/asterisk/modules.conf:"
+ einfo
+ einfo " noload => codec_g726.so"
+ einfo
+ einfo "Now you can use the SpanDSP codec instead:"
+ einfo
+ einfo " load => ${LIB_CODEC_G726}.so"
+ einfo
+}
diff --git a/net-misc/asterisk-spandsp_codec_g726/files/digest-asterisk-spandsp_codec_g726-0.0.2_pre26 b/net-misc/asterisk-spandsp_codec_g726/files/digest-asterisk-spandsp_codec_g726-0.0.2_pre26
new file mode 100644
index 000000000000..f95048415c31
--- /dev/null
+++ b/net-misc/asterisk-spandsp_codec_g726/files/digest-asterisk-spandsp_codec_g726-0.0.2_pre26
@@ -0,0 +1,3 @@
+MD5 c82b9b2b27b2b851d59e64cc456ce0ce spandsp-0.0.2pre26_codec_g726.c.bz2 2867
+RMD160 23c6c971b3004e3e683076245f9557891bd3f0db spandsp-0.0.2pre26_codec_g726.c.bz2 2867
+SHA256 a5bfc64e2e45b8dc8799cdade8a8cdc82b103dd55a233e5725df8eb42d42264d spandsp-0.0.2pre26_codec_g726.c.bz2 2867
diff --git a/net-misc/asterisk-spandsp_codec_g726/metadata.xml b/net-misc/asterisk-spandsp_codec_g726/metadata.xml
new file mode 100644
index 000000000000..139eaf03c65e
--- /dev/null
+++ b/net-misc/asterisk-spandsp_codec_g726/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>voip</herd>
+ <maintainer>
+ <email>sbriesen@gentoo.org</email>
+ <name>Stefan Briesenick</name>
+ </maintainer>
+ <longdescription lang="en">
+ SpanDSP ITU G.726-32kbps codec for Asterisk. It's a replacement
+ for Asterisk's own G.726 codec, which isn't fully compliant to
+ ITU specs.
+ </longdescription>
+</pkgmetadata>