blob: cbac23c46399b03f4aa1a5e58262de5e062bb666 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils flag-o-matic subversion autotools
DESCRIPTION="C++ class library normalising numerous telephony protocols"
HOMEPAGE="http://www.opalvoip.org/"
SRC_URI=""
ESVN_REPO_URI="https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/opal/trunk/"
ESVN_STORE_DIR="${DISTDIR}/svn-src"
ESVN_PROJECT="${PN/-svn}"
S="${WORKDIR}/${P/_/}"
LICENSE="MPL-1.0"
SLOT="live"
KEYWORDS=""
IUSE="debug doc java versioncheck +plugins"
RDEPEND=">=dev-libs/ptlib-2.0.0
>=media-video/ffmpeg-0.4.7
media-libs/speex
java? ( virtual/jdk )"
pkg_setup() {
if use debug && ! built_with_use dev-libs/ptlib debug; then
eerror "You need to build dev-libs/ptlib with USE=debug enabled."
die "dev-libs/ptlib has to be built with USE=debug"
fi
if ! use debug && built_with_use dev-libs/ptlib debug; then
eerror "You need to build dev-libs/ptlib without USE=debug."
die "dev-libs/ptlib has not to be built with USE=debug"
fi
}
src_unpack() {
subversion_src_unpack
cd "${S}"
# eautoreconf
epatch "${FILESDIR}"/gcc4.4.patch
}
src_compile() {
local makeopts
# filter-ldflags -Wl,--as-needed --as-needed
# zrtp doesn't depend on net-libs/libzrtpcpp but on libzrtp from
# http://zfoneproject.com/ that is not in portage
econf \
$(use_enable debug) \
$(use_enable java) \
$(use_enable plugins) \
$(use_enable versioncheck) \
|| die "econf failed"
if use debug; then
makeopts="debug"
else
makeopts="opt"
fi
emake ${makeopts} || die "emake failed"
}
src_install() {
emake PREFIX=/usr DESTDIR="${D}" install || die "emake install failed"
# if use doc; then
# dohtml -r html/* docs/* || die "documentation installation failed"
# fi
}
|