blob: 1eaf85cbb51513d9c01b9144e5b3043e5310458c (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
PYTHON_COMPAT=( python{3_2} )
inherit scons-utils toolchain-funcs multilib python
MY_PV="bd6ddacdf795"
MY_P="${PN}-${MY_PV}"
SRC_URI="https://www.mitsuba-renderer.org/hg/mitsuba/archive/${MY_PV}.tar.bz2"
DESCRIPTION="Mitsuba is a physically based renderer."
HOMEPAGE="https://www.mitsuba-renderer.org"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="${PYTHON_DEPS}
virtual/jpeg
media-libs/libpng
x11-libs/libX11
media-libs/glew
dev-qt/qtcore
dev-qt/qtgui
dev-qt/qtopengl
media-libs/openexr
dev-libs/xerces-c
dev-libs/boost
media-libs/collada-dom"
DEPEND="dev-util/scons
${RDEPEND}"
S=${WORKDIR}/${MY_P}
pkg_setup() {
python_set_active_version 3.2
}
src_prepare() {
mkdir -p "${S}/dependencies"
echo "${PV}" > "${S}/dependencies/version"
}
src_configure() {
ln -s "${S}/build/config-linux-gcc.py" "${S}/config.py"
sed -i "s/'boost_python3'/'boost_python-3.2'/" "${S}/config.py"
}
src_compile() {
tc-export CC CXX
escons || die "Scons failed"
}
src_install() {
cd dist
exeinto /usr/bin
doexe mitsuba mtssrv mtsgui mtsutil mtsimport || die
dolib.so libmitsuba-hw.so libmitsuba-render.so libmitsuba-core.so libmitsuba-bidir.so || die
insinto "/usr/share/${PN}"
doins -r "${S}/data/ior"
doins -r "${S}/data/schema"
exeinto "/usr/share/${PN}/plugins"
doexe plugins/*.so
exeinto "/usr/share/${PN}/python"
doexe python/3.2/*.so
}
|