diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2006-10-07 23:07:48 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2006-10-07 23:07:48 +0000 |
commit | 18a144da1c851b31f06e526249ca5fa2dddce3b8 (patch) | |
tree | 5cd749ccd008b94c55b4d1aa2379c822bb502978 /net-misc/asterisk-spandsp_codec_g726 | |
parent | Punt invalid use of USE=static. (diff) | |
download | historical-18a144da1c851b31f06e526249ca5fa2dddce3b8.tar.gz historical-18a144da1c851b31f06e526249ca5fa2dddce3b8.tar.bz2 historical-18a144da1c851b31f06e526249ca5fa2dddce3b8.zip |
initial commit.
Package-Manager: portage-2.1.2_pre2-r5
Diffstat (limited to 'net-misc/asterisk-spandsp_codec_g726')
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..a662fede9bee --- /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 1597 RMD160 231b383784244521a0074dd9651a37bae87f7c8d SHA1 f482e81aa70a5a1fa6c0c8a7bd45f67bc198359d SHA256 901f56ade5e29e9008c51b92f6b3b499602274c6c56787446562269f1311f0ca +MD5 a7617d871f8f0a994b5701bd7098dd12 asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild 1597 +RMD160 231b383784244521a0074dd9651a37bae87f7c8d asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild 1597 +SHA256 901f56ade5e29e9008c51b92f6b3b499602274c6c56787446562269f1311f0ca asterisk-spandsp_codec_g726-0.0.2_pre26.ebuild 1597 +MISC ChangeLog 443 RMD160 77b3547f0e1ef01e5fd5a229579b88d7e58916d9 SHA1 2801223431170761033709ba6bd395a5d843bb65 SHA256 92267451ec1c00e0f87ea657cff06427c990492096fe717bfffa105a55f1cbe0 +MD5 7bc7b63a14d57e8d59c70df62cfbfb4b ChangeLog 443 +RMD160 77b3547f0e1ef01e5fd5a229579b88d7e58916d9 ChangeLog 443 +SHA256 92267451ec1c00e0f87ea657cff06427c990492096fe717bfffa105a55f1cbe0 ChangeLog 443 +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> |