blob: 48a6f057ef5e4cda7a906362bf95f2737b0b8238 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils fixheadtails toolchain-funcs multilib
MY_PN="OpenThreads"
OSG_V=1.2
DESCRIPTION="a minimal & complete Object-Oriented thread interface for C++"
HOMEPAGE="http://www.openscenegraph.org/"
SRC_URI="http://www.openscenegraph.org/downloads/snapshots/OSG_OP_OT-${OSG_V}.zip"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc examples"
DEPEND="app-arch/unzip
doc? ( app-doc/doxygen )"
RDEPEND=""
S="${WORKDIR}/OSG_OP_OT-${OSG_V}/${MY_PN}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-build.patch
ht_fix_all
}
src_compile() {
emake CXX="$(tc-getCXX)" || die "emake failed"
if use doc; then
cd docs
doxygen doxyfile
fi
}
src_install() {
emake INST_LOCATION="${D}"/usr install || die "emake install failed"
dosym /usr/$(get_libdir)/lib${MY_PN}.so{.${PV},}
dosym /usr/$(get_libdir)/lib${MY_PN}.so.{${PV},${PV%%.*}}
insinto /usr/$(get_libdir)/pkgconfig
doins Make/openthreads.pc
dodoc AUTHORS.txt ChangeLog README.txt TODO.txt
use doc && dohtml -r docs/html/*
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins -r examples_src/*
fi
}
|