blob: fec7d58d744b1250f7aeddcf80ef4bcee973bd0a (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils cmake-utils
DESCRIPTION="3D Creation/Animation/Publishing System"
HOMEPAGE="http://www.blender.org"
SRC_URI="http://download.blender.org/source/${P}.tar.gz"
SLOT="0"
LICENSE="|| ( GPL-2 BL )"
KEYWORDS="~amd64 ~x86"
IUSE="+collada openmp"
RDEPEND="virtual/jpeg
media-libs/libpng
x11-libs/libXi
x11-libs/libX11
media-libs/tiff
media-libs/libsamplerate
virtual/opengl
>=media-libs/freetype-2.0
virtual/libintl
media-libs/glew
dev-cpp/eigen:2
>=sci-physics/bullet-2.76
collada? ( media-libs/opencollada dev-libs/libxml2 )"
DEPEND="x11-base/xorg-server
${RDEPEND}"
src_prepare() {
sed -i 's/parameters->tile_size_on = false;/parameters->tile_size_on = 0;/g' source/blender/imbuf/intern/jp2.c
epatch "${FILESDIR}/${P}-fix-sandbox-violation.patch"
}
src_configure() {
mycmakeargs="-DWITH_CYCLES_CUDA_BINARIES=ON -DWITH_BUILTIN_GLEW=OFF -DWITH_INSTALL_PORTABLE=OFF $(cmake-utils_use_with "openmp" "OPENMP") $(cmake-utils_use_with "collada" "OPENCOLLADA")"
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install() {
cmake-utils_src_install
}
|