# 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 }