blob: 954ec36dcaea03c3915f9c2ed413f066401164a2 (
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-voip/linphone/linphone-3.4.3-r1.ebuild,v 1.9 2013/10/14 12:31:05 pinkbyte Exp $
EAPI="4"
inherit eutils autotools multilib versionator pax-utils
DESCRIPTION="Video softphone based on the SIP protocol"
HOMEPAGE="http://www.linphone.org/"
SRC_URI="mirror://nongnu/${PN}/$(get_version_component_range 1-2).x/sources/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~x86-macos"
# TODO: run-time test for ipv6: does it need mediastreamer[ipv6]?
IUSE="doc gtk ipv6 ncurses nls video"
RDEPEND="<media-libs/mediastreamer-2.8[video?,ipv6?]
>=net-libs/libeXosip-3.0.2
>=net-libs/libosip-3.0.0
<net-libs/libosip-4
<net-libs/libeXosip-4
>=net-libs/ortp-0.16.3
gtk? ( dev-libs/glib:2
>=gnome-base/libglade-2.4.0:2.0
>=x11-libs/gtk+-2.4.0:2 )
ncurses? ( sys-libs/readline
sys-libs/ncurses )"
DEPEND="${RDEPEND}
virtual/pkgconfig
doc? ( app-text/sgmltools-lite )
nls? ( dev-util/intltool
sys-devel/gettext )"
IUSE_LINGUAS=" fr it de ja es pl cs nl sv pt_BR hu ru zh_CN"
IUSE="${IUSE} ${IUSE_LINGUAS// / linguas_}"
pkg_setup() {
if ! use gtk && ! use ncurses ; then
ewarn "gtk and ncurses are disabled."
ewarn "At least one of these use flags are needed to get a front-end."
ewarn "Only liblinphone is going to be installed."
fi
strip-linguas ${IUSE_LINGUAS}
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-3.4.3-nls.patch
# remove speex check, avoid bug when mediastreamer[-speex]
sed -i -e '/SPEEX/d' configure.ac || die "patching configure.ac failed"
# fix path to use lib64
sed -i -e "s:lib\(/liblinphone\):$(get_libdir)\1:" configure.ac \
|| die "patching configure.ac failed"
# removing bundled libs dir prevent them to be reconf
rm -rf mediastreamer2 oRTP || die "should not die"
sed -i -e "s:oRTP::;s:mediastreamer2::" Makefile.am \
|| die "patching Makefile.am failed"
# make sure to use host libtool version
rm -f m4/libtool.m4 m4/lt*.m4 #282268
eautoreconf
}
src_configure() {
# strict: we don't want -Werror
# external-ortp,external-mediastreamer: prefer external libs
# truespeech: seems not used, TODO: ask in ml
# rsvp: breaking the build (not maintained anymore) --disable = --enable
# alsa, artsc and portaudio are used for bundled mediastreamer
econf \
--libdir="${EPREFIX}"/usr/$(get_libdir) \
--disable-strict \
--enable-external-ortp \
--enable-external-mediastreamer \
--disable-truespeech \
$(use_enable doc manual) \
$(use_enable gtk gtk_ui) \
$(use_enable ipv6) \
$(use_enable ncurses console_ui) \
$(use_enable nls) \
$(use_enable video)
}
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS BUGS ChangeLog NEWS README README.arm TODO
pax-mark m "${ED}usr/bin/linphone"
}
|