summaryrefslogtreecommitdiff
blob: 0766df7a002c5c7ae169745303adf50f7092c18f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libjingle/libjingle-0.3.0_p20060508.ebuild,v 1.3 2006/05/23 17:09:33 mr_bones_ Exp $

inherit autotools

DESCRIPTION="Google's jabber voice extension library modified by Tapioca"
HOMEPAGE="http://tapioca-voip.sourceforge.net/"
SRC_URI="mirror://gentoo/${P}.tar.bz2
	http://dev.gentoo.org/~genstef/files/dist/${P}.tar.bz2"

LICENSE="BSD"
KEYWORDS="~x86"
IUSE="speex ilbc ortp"
SLOT="0"

RDEPEND="dev-libs/openssl
	ortp? (
		~net-libs/ortp-0.7.1
		ilbc? ( dev-libs/ilbc-rfc3951 )
		speex? ( media-libs/speex )
	)"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"

src_compile() {
	grep -rl "speex.h" . | xargs sed -i -e "s:speex.h:speex/\0:" || die
	grep -rl "iLBC_..code.h" . | xargs sed -i -e "s:iLBC_..code.h:ilbc/\0:" || die
	sed -i -e 's:scoped_ptr.h":\0\n#include <string>:' talk/base/xmpppassword.h || die
	sed -i -e "s:\(libjingle[^.]*\).la:\1-0.3.la:" talk/examples/*/Makefile.am || die
	sed -i "s:libmediastreamer_la_LIBADD.*:\0 \$(SPEEX_CFLAGS):" talk/third_party/mediastreamer/Makefile.am || die

	eautoreconf || die "eautoreconf failed"
	econf $(use_enable ortp linphone) \
		$(use_enable ortp) \
		$(use_with ilbc) \
		$(use_with speex) \
		--disable-examples || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	make install DESTDIR="${D}" || die "install failed"
	dodoc AUTHORS ChangeLog NEWS README
}