annotate net-voip/linphone/linphone-3.11.1.ebuild @ 465:59df7edc2585

update vs code
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 07 Dec 2018 09:02:34 +0100
parents 7e560a7c788b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
445
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2017 Gentoo Foundation
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 EAPI=6
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 inherit autotools eutils multilib pax-utils versionator
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 DESCRIPTION="Video softphone based on the SIP protocol"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 HOMEPAGE="http://www.linphone.org/"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 SRC_URI="http://www.linphone.org/releases/sources/${PN}/${P}.tar.gz"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 LICENSE="GPL-2"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 SLOT="0"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 KEYWORDS="~amd64 ~x86"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 # TODO: run-time test for ipv6: does it need mediastreamer[ipv6]?
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 IUSE="assistant doc gsm-nonstandard gtk ipv6 ldap libnotify ncurses nls sqlite tools upnp vcard video zlib"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 REQUIRED_USE="assistant? ( gtk )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 libnotify? ( gtk )"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 RDEPEND="
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 >=media-libs/mediastreamer-2.15.0[upnp?,video?]
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 >=net-libs/ortp-0.24.0
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 net-libs/bctoolbox
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 >=net-voip/belle-sip-1.6
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 virtual/udev
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 gtk? (
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 dev-libs/glib:2
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 >=gnome-base/libglade-2.4.0:2.0
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 >=x11-libs/gtk+-2.4.0:2
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 assistant? ( >=net-libs/libsoup-2.26 )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 libnotify? ( x11-libs/libnotify )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 gsm-nonstandard? ( >=media-libs/mediastreamer-2.15.0[gsm] )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 ldap? (
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 dev-libs/cyrus-sasl
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 net-nds/openldap
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37 )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 ncurses? (
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 sys-libs/readline:0
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 sys-libs/ncurses:0
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 sqlite? ( dev-db/sqlite:3 )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 tools? ( dev-libs/libxml2 )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 upnp? ( net-libs/libupnp:0 )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 vcard? ( net-voip/belcard )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 video? ( >=media-libs/mediastreamer-2.15.0[v4l] )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 zlib? ( sys-libs/zlib )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 "
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 DEPEND="${RDEPEND}
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 virtual/pkgconfig
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 doc? ( app-text/sgmltools-lite )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 nls? ( dev-util/intltool )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 "
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 IUSE_LINGUAS=" fr it de he ja es pl cs nl sr sv pt_BR hu ru zh_CN"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 IUSE="${IUSE}${IUSE_LINGUAS// / linguas_}"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 pkg_setup() {
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 if ! use gtk && ! use ncurses ; then
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 ewarn "gtk and ncurses are disabled."
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 ewarn "At least one of these use flags are needed to get a front-end."
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 ewarn "Only liblinphone is going to be installed."
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 fi
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65 strip-linguas ${IUSE_LINGUAS}
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66 }
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68 src_prepare() {
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69 default
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70 epatch "${FILESDIR}"/${PN}-nls.patch \
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71 "${FILESDIR}"/${PN}-no-cam-crash-fix.patch
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
72
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
73 # variable causes "command not found" warning and is not
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
74 # needed anyway
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
75 sed -i \
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
76 -e 's/$(ACLOCAL_MACOS_FLAGS)//' Makefile.am || die
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
77
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
78 # fix path to use lib64
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
79 # and lime actually does not depend on polarssl (upstream bug)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
80 sed -i \
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
81 -e "s:lib\(/liblinphone\):$(get_libdir)\1:" \
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
82 -e "s:found_polarssl=no:found_polarssl=yes:" \
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
83 configure.ac || die "patching configure.ac failed"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
84
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
85 eautoreconf
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
86 }
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
87
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
88 src_configure() {
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
89 local myeconfargs=(
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
90 $(use_enable doc manual)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
91 $(use_enable doc doxygen)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
92 $(use_enable nls)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
93 --disable-static
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
94 $(use_enable ldap)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
95 $(use_enable ncurses console_ui)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
96 $(use_enable tools)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
97 $(use_enable upnp)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
98 $(use_enable gtk gtk_ui)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
99 $(use_enable libnotify notify)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
100 --enable-lime
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
101 $(use_enable ipv6)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
102 --disable-truespeech
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
103 $(use_enable gsm-nonstandard nonstandard-gsm)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
104 --disable-speex
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
105 # seems not used, TODO: ask in ml
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
106 $(use_enable video)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
107 --disable-zrtp
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
108 $(use_enable assistant)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
109 # we don't want -Werror
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
110 --disable-strict
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
111 # don't bundle libs
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
112 --enable-external-mediastreamer
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
113 $(use_enable sqlite sqlite-storage)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
114 --enable-external-ortp
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
115 $(use_enable vcard)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
116 $(use_enable zlib)
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
117 )
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
118
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
119 econf "${myeconfargs[@]}"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
120 }
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
121
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
122 src_install() {
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
123 emake DESTDIR="${D}" pkgdocdir="/usr/share/doc/${PF}" install # 415161
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
124 dodoc AUTHORS BUGS ChangeLog NEWS README.md README.arm TODO
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
125 pax-mark m "${ED%/}/usr/bin/linphone"
7e560a7c788b add the necessary ebuilds to make blink work
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
126 }