diff options
author | 2009-04-23 20:30:23 +0000 | |
---|---|---|
committer | 2009-04-23 20:30:23 +0000 | |
commit | fa1bdb58cf4f9d6b047d9e31a8767743b6d30970 (patch) | |
tree | 6280d333a13e39a035ba11f72e4ebab015596846 /media-gfx | |
parent | Ok, unpacking things makes them work better. Sorry for the screwup, closes #2... (diff) | |
download | gentoo-2-fa1bdb58cf4f9d6b047d9e31a8767743b6d30970.tar.gz gentoo-2-fa1bdb58cf4f9d6b047d9e31a8767743b6d30970.tar.bz2 gentoo-2-fa1bdb58cf4f9d6b047d9e31a8767743b6d30970.zip |
revision bump to fix cuda USE-flag, bug #263811
(Portage version: 2.2_rc31/cvs/Linux i686)
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/k3d/ChangeLog | 8 | ||||
-rw-r--r-- | media-gfx/k3d/files/k3d-0.7.11.0-cuda.patch | 52 | ||||
-rw-r--r-- | media-gfx/k3d/k3d-0.7.11.0-r1.ebuild | 101 |
3 files changed, 160 insertions, 1 deletions
diff --git a/media-gfx/k3d/ChangeLog b/media-gfx/k3d/ChangeLog index efe23a09a033..143921d2b5ce 100644 --- a/media-gfx/k3d/ChangeLog +++ b/media-gfx/k3d/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-gfx/k3d # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/k3d/ChangeLog,v 1.43 2009/03/24 16:44:52 gengor Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/k3d/ChangeLog,v 1.44 2009/04/23 20:30:22 maekke Exp $ + +*k3d-0.7.11.0-r1 (23 Apr 2009) + + 23 Apr 2009; Markus Meier <maekke@gentoo.org> + +files/k3d-0.7.11.0-cuda.patch, +k3d-0.7.11.0-r1.ebuild: + revision bump to fix cuda USE-flag, bug #263811 24 Mar 2009; Gordon Malm <gengor@gentoo.org> k3d-0.7.11.0.ebuild: Add dropped C++ stack-protector filtering. diff --git a/media-gfx/k3d/files/k3d-0.7.11.0-cuda.patch b/media-gfx/k3d/files/k3d-0.7.11.0-cuda.patch new file mode 100644 index 000000000000..56beb0badfc9 --- /dev/null +++ b/media-gfx/k3d/files/k3d-0.7.11.0-cuda.patch @@ -0,0 +1,52 @@ +http://k3d.svn.sourceforge.net/viewvc/k3d/trunk/modules/cuda/cuda_mesh_subdivide_edges.cpp?view=patch&r1=1782&r2=1820 + +--- trunk/modules/cuda/cuda_mesh_subdivide_edges.cpp 2009/03/14 19:27:16 1782 ++++ trunk/modules/cuda/cuda_mesh_subdivide_edges.cpp 2009/03/22 22:32:10 1820 +@@ -23,6 +23,7 @@ + \author Evan Lezar (evanlezar@gmail.com) + */ + ++#include <k3dsdk/attribute_array_copier.h> + #include <k3dsdk/basic_math.h> + #include <k3dsdk/document_plugin_factory.h> + #include <k3dsdk/imaterial.h> +@@ -30,8 +31,8 @@ + #include <k3dsdk/measurement.h> + #include <k3dsdk/mesh_modifier.h> + #include <k3dsdk/mesh_selection_sink.h> +-#include <k3dsdk/attribute_array_copier.h> + #include <k3dsdk/node.h> ++#include <k3dsdk/polyhedron.h> + #include <k3dsdk/selection.h> + #include <k3dsdk/utility.h> + #include <k3dsdk/vectors.h> +@@ -41,6 +42,8 @@ + #include "cuda_device_mesh.h" + #include "cuda_mesh_topology_data.h" + ++#include <boost/scoped_ptr.hpp> ++ + namespace module + { + +@@ -159,7 +162,8 @@ + + // If there are no valid polyhedra, we give up + document().pipeline_profiler().start_execution(*this, "Create:Validate input"); +- if(!k3d::validate_polyhedra(Input)) ++ boost::scoped_ptr<k3d::polyhedron::const_primitive> polyhedron(k3d::polyhedron::validate(Input)); ++ if(!polyhedron) + { + document().pipeline_profiler().finish_execution(*this, "Create:Validate input"); + return; +@@ -297,7 +301,8 @@ + { + document().pipeline_profiler().start_execution(*this, "Update:Validate input"); + +- if(!k3d::validate_polyhedra(Input)) ++ boost::scoped_ptr<k3d::polyhedron::const_primitive> polyhedron(k3d::polyhedron::validate(Input)); ++ if(!polyhedron) + { + document().pipeline_profiler().finish_execution(*this, "Update:Validate input"); + return; + diff --git a/media-gfx/k3d/k3d-0.7.11.0-r1.ebuild b/media-gfx/k3d/k3d-0.7.11.0-r1.ebuild new file mode 100644 index 000000000000..2a84648963ce --- /dev/null +++ b/media-gfx/k3d/k3d-0.7.11.0-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/k3d/k3d-0.7.11.0-r1.ebuild,v 1.1 2009/04/23 20:30:22 maekke Exp $ + +EAPI="2" + +inherit eutils cmake-utils + +MY_P="${PN}-source-${PV}" + +DESCRIPTION="A free 3D modeling, animation, and rendering system" +HOMEPAGE="http://www.k-3d.org/" +SRC_URI="mirror://sourceforge/k3d/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="3ds cuda gnome graphviz gts imagemagick jpeg nls openexr png python tiff truetype" #TODO cgal tbb + +RDEPEND=" + dev-libs/boost + >=dev-cpp/glibmm-2.6 + >=dev-cpp/gtkmm-2.6 + dev-libs/expat + >=dev-libs/libsigc++-2.2 + media-libs/mesa + virtual/glu + virtual/opengl + >=x11-libs/gtkglext-1.0.6-r3 + x11-libs/libICE + x11-libs/libSM + x11-libs/libXmu + x11-libs/libXt + 3ds? ( media-libs/lib3ds ) + cuda? ( dev-util/nvidia-cuda-toolkit ) + gnome? ( gnome-base/libgnome ) + graphviz? ( media-gfx/graphviz ) + gts? ( sci-libs/gts ) + imagemagick? ( media-gfx/imagemagick ) + jpeg? ( media-libs/jpeg ) + openexr? ( media-libs/openexr ) + png? ( media-libs/libpng ) + python? ( >=dev-lang/python-2.3 dev-python/cgkit ) + tiff? ( media-libs/tiff ) + truetype? ( >=media-libs/freetype-2 )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + nls? ( sys-devel/gettext )" + +S="${WORKDIR}/${MY_P}" + +DOCS="AUTHORS README" + +# k3d_use_enable() +# +# $1: use flag. ON|OFF is determined by this. +# $2: part of cmake variable name which appended to the base variable name +# that is -DK3D_BUILD_$2 +# +# e.g.) k3d_use_enable gnome GNOME_MODULE #=> -DK3D_BUILD_GNOME_MODULE=ON +# +k3d_use_enable() { + echo "-DK3D_BUILD_$2=$(use $1 && echo ON || echo OFF)" +} + +k3d_use_module() { + echo "-DK3D_BUILD_$2_MODULE=$(use $1 && echo ON || echo OFF)" +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-fix-potfiles.patch + epatch "${FILESDIR}"/${P}-cuda.patch + [[ -f CMakeCache.txt ]] && rm CMakeCache.txt +} + +src_configure() { + if [[ $(gcc-major-version) -lt 4 ]]; then + append-cxxflags -fno-stack-protector + fi + + mycmakeargs=" + -DK3D_BUILD_SVG_IO_MODULE=ON + -DK3D_BUILD_CGAL_MODULE=OFF + $(k3d_use_module 3ds 3DS_IO) + $(k3d_use_module cuda CUDA) + $(k3d_use_module gnome GNOME) + $(k3d_use_module graphviz GRAPHVIZ) + $(k3d_use_module gts GTS) + $(k3d_use_module gts GTS_IO) + $(k3d_use_module imagemagick IMAGEMAGICK_IO) + $(k3d_use_module jpeg JPEG_IO) + $(k3d_use_enable nls NLS) + $(k3d_use_module openexr OPENEXR_IO) + $(k3d_use_module png PNG_IO) + $(k3d_use_module python PYTHON) + $(k3d_use_module python PYUI) + $(k3d_use_module tiff TIFF_IO) + $(k3d_use_module truetype FREETYPE2)" + + cmake-utils_src_configure +} |