blob: 18a80ad475483fa6a344593ce77b80e7db56fc3e (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils
DESCRIPTION="Open Real-time Transport Protocol (RTP, RFC3550) stack"
HOMEPAGE="http://www.linphone.org/"
SRC_URI="mirror://nongnu/linphone/${PN}/sources/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0/9"
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
IUSE="debug doc examples ipv6 minimal ntp-timestamp ssl srtp zrtp"
RDEPEND="ssl? ( dev-libs/openssl:0= )
srtp? ( net-libs/libsrtp:0= )
zrtp? ( >=net-libs/libzrtpcpp-4.0.0:0= )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
virtual/pkgconfig"
REQUIRED_USE="zrtp? ( srtp )"
src_prepare() {
# ${P} is added after ${docdir}
if use doc; then
sed -i -e 's/$(docdir)\/$(PACKAGE)-$(VERSION)/$(docdir)/' Makefile.in \
|| die "patching Makefile.in failed"
fi
}
src_configure() {
local myeconfargs=(
# memcheck is for HP-UX only
--disable-memcheck
# mode64bit adds +DA2.0W +DS2.0 CFLAGS wich are needed for HP-UX
--disable-mode64bit
# strict adds -Werror, do not want it
--disable-strict
# they seriously failed to understand AC_ARG_ENABLE...
--disable-tests_enabled
--enable-fast-install
--enable-libtool-lock
# this is fine as long as we do not link to polarssl
--enable-broken-srtp
$(use_enable debug)
$(use_enable ipv6)
$(use_enable minimal perf)
$(use_enable ntp-timestamp)
$(use_enable ssl ssl-hmac)
$(use_enable zrtp)
--with-srtp=$(usex srtp "${EPREFIX}"/usr none)
$(use doc || echo ac_cv_path_DOXYGEN=false)
)
econf "${myeconfargs[@]}"
}
src_install() {
emake DESTDIR="${D}" pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \
install
dodoc AUTHORS ChangeLog NEWS README TODO
prune_libtool_files
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins src/tests/*.c
fi
}
|