blob: 8c2db29c9c2d5131f54d903d89c9b4b27f1bbf36 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/jrtplib/jrtplib-3.7.1-r1.ebuild,v 1.3 2012/11/27 13:34:52 pinkbyte Exp $
EAPI="2"
inherit eutils
DESCRIPTION="JRTPLIB is an object-oriented RTP library written in C++."
HOMEPAGE="http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib"
SRC_URI="http://research.edm.uhasselt.be/jori/${PN}/${P}.tar.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples ipv6"
RDEPEND="<dev-libs/jthread-1.3.0"
DEPEND="${RDEPEND}"
src_prepare() {
# do not compile examples
sed -i -e "s/examples //" Makefile.in || die "sed failed"
epatch "${FILESDIR}"/${P}-gcc43.patch
epatch "${FILESDIR}"/${P}-gcc-4.4.patch
}
src_configure() {
econf $(use_enable ipv6 IPv6)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc ChangeLog README.TXT TODO || die "dodoc failed"
if use examples; then
insinto /usr/share/${PN}/examples
doins examples/*.cpp || die "doins failed"
fi
}
|