blob: 350bf343c1471dc2f7398839d56778c714239c06 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/linphone/linphone-1.6.0.ebuild,v 1.1 2007/01/30 15:12:44 drizzt Exp $
MY_DPV="${PV%.*}.x"
WANT_AUTOCONF="2.5"
WANT_AUTOMAKE="1.9"
inherit eutils autotools
DESCRIPTION="Linphone is a SIP phone with a GNOME interface."
HOMEPAGE="http://www.linphone.org"
SRC_URI="http://download.savannah.nongnu.org/releases/${PN}/${MY_DPV}/sources/${P}.tar.gz"
SLOT=1
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="alsa gnome ilbc ipv6 novideo xv"
RDEPEND="dev-libs/glib
dev-perl/XML-Parser
net-dns/bind-tools
>=net-libs/libosip-2.2.0
>=media-libs/speex-1.1.6
x86? ( xv? ( dev-lang/nasm ) )
gnome? ( >=gnome-base/gnome-panel-2
>=gnome-base/libgnome-2
>=gnome-base/libgnomeui-2
>=x11-libs/gtk+-2 )
alsa? ( media-libs/alsa-lib )
ilbc? ( dev-libs/ilbc-rfc3951 )
!novideo? ( >=media-libs/libsdl-1.2.9
media-video/ffmpeg
>=media-libs/libtheora-1.0_alpha7 )"
# portaudio? ( >=media-libs/portaudio-19_pre )"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-1.5.1-pkgconfig.patch
./autogen.sh
}
src_compile() {
local withgnome myconf=""
use gnome && withgnome="yes" || withgnome="no"
use x86 && myconf="--enable-truespeech"
econf \
--libdir=/usr/$(get_libdir)/linphone \
--enable-gnome_ui=${withgnome} \
$(use_with ilbc) \
$(use_enable ipv6) \
$(use_enable alsa) \
$(use_enable !novideo video) \
--disable-portaudio \
${myconf} || die "Unable to configure"
emake || die "Unable to make"
}
src_install () {
emake DESTDIR="${D}" install || die "Failed to install"
dodoc ABOUT-NLS AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README
dodoc README.arm TODO
# don't install ortp includes, docs and pkgconfig files
# to avoid conflicts with net-libs/ortp
rm -rf "${D}"/usr/include/ortp
rm -rf "${D}"/usr/share/gtk-doc/html/ortp
rm -rf "${D}"/usr/$(get_libdir)/linphone/pkgconfig
}
|