summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-01-01 16:04:48 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-01-01 16:04:48 +0000
commit0a4bad003cd6768567ef4a351a382045b96e1fde (patch)
tree198670b9f60792836979e25ca086304b371fc19c /media-gfx/k3d
parentwork around paralell make issue #299032. (diff)
downloadgentoo-2-0a4bad003cd6768567ef4a351a382045b96e1fde.tar.gz
gentoo-2-0a4bad003cd6768567ef4a351a382045b96e1fde.tar.bz2
gentoo-2-0a4bad003cd6768567ef4a351a382045b96e1fde.zip
Remove versions that don't compile
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/k3d')
-rw-r--r--media-gfx/k3d/Manifest5
-rw-r--r--media-gfx/k3d/files/k3d-0.6.7.0-gcc43.patch292
-rw-r--r--media-gfx/k3d/files/k3d-0.6.7.0-sigc2.patch21
-rw-r--r--media-gfx/k3d/k3d-0.6.7.0-r1.ebuild88
-rw-r--r--media-gfx/k3d/k3d-0.7.11.0.ebuild99
5 files changed, 0 insertions, 505 deletions
diff --git a/media-gfx/k3d/Manifest b/media-gfx/k3d/Manifest
index b2446ccc3fc5..e4700de67d65 100644
--- a/media-gfx/k3d/Manifest
+++ b/media-gfx/k3d/Manifest
@@ -1,12 +1,7 @@
-AUX k3d-0.6.7.0-gcc43.patch 8957 RMD160 930ae5504b03eba813af5c70c56347bbf3d04955 SHA1 433dc009e8bfddac54d2d9d52d435cf68f42b957 SHA256 3384663135b4d565a67c7b14306ff8727ca1bb49d6a30cf194e1c3453672dc7e
-AUX k3d-0.6.7.0-sigc2.patch 546 RMD160 c1494b7c60ef3fbabcb353b6ebc86dd04f6413bc SHA1 611a87069e6db77b5817e8c0226cf2b2dd990756 SHA256 632325bcb94133500af6eeb41824934b8c0199469923ca7be8a501a61d5db9e6
AUX k3d-0.7.11.0-cuda.patch 1854 RMD160 084495d805cb368123c3c280e037e0a9e581aaa5 SHA1 4ef74b687b4a3d39c7db94e6fe3734680db2e650 SHA256 710a359506280d6f30c366923327ef0eee02646271f85d83e31acaa9b21fcecc
AUX k3d-0.7.11.0-fix-potfiles.patch 640 RMD160 44508c7968befaced78d52d4e06e211adc83a754 SHA1 c9d50079825db508deb612dd416223c5b98fe705 SHA256 b86359e5597f8794cbad3f0ee6837bfbf3440ddc435eaed16487f79a3c20a244
AUX k3d-0.7.11.0-gcc44.patch 2599 RMD160 c4951b932c1b3595acec30fe443fefb47d9cab4f SHA1 30a406600c59becb6b7513fc99abda390ae82143 SHA256 5e1f43a468bb3fd2d7f3e6d67323921df447b7b1d6538347cbc524d835a11df3
-DIST k3d-0.6.7.0-src.tar.bz2 5003324 RMD160 cb3746a9a403e6ac7d334f96db8bc716c06dc55d SHA1 9bcbdb6d8aa274baa7200e3c267f303fb61a733a SHA256 0ee773767868cfe452f95daa03de541488f2ff81c629ba38385c87ff0ed55e9c
DIST k3d-source-0.7.11.0.tar.gz 7692200 RMD160 41c31d12fe82e92be75a309660ed3811d1aa02df SHA1 cef63043c7bd8d7a130689e9b53d1023280e2978 SHA256 c6364cb9e989f2ac2412541c2a4368279b23e728822ab7e6b5390d579dd49008
-EBUILD k3d-0.6.7.0-r1.ebuild 2112 RMD160 e99c8b6f244063dbf0d4b2b213ddbbca9b8eeaa9 SHA1 f77fc7a1f5ad580274f181610dca35872e2e6381 SHA256 e3a194950e927713e4a31ac9169133e0dba628096ba68e28137bc85196d5754e
EBUILD k3d-0.7.11.0-r1.ebuild 2675 RMD160 46a41941f355f0fbdfc7c56e47a6c8a55ae11c93 SHA1 b293677eca3b30e91e45a5a12c260bc07506530b SHA256 07633772198335eac88d70d90f6223b6d8323adfb3839955f3ca9f803fbba0ce
-EBUILD k3d-0.7.11.0.ebuild 2585 RMD160 a3ac44ca0d9c8103d208985986d67ed8e6b7a6fd SHA1 c480376f0434e6b1a234b1bdd8f3210162bc5aea SHA256 a36652b4d2926cf1b7b723539b20e7db371104df0b816294c27f910eaabcfba3
MISC ChangeLog 7283 RMD160 2e85bda709c4c96ce000eef1310aa99403f46c92 SHA1 3b7380e0fa7373b048894f9d74ce449b5e3a0a2d SHA256 f11ad8e87d0eca048328eb512248d15c8223921187236a088d9f20e460954155
MISC metadata.xml 483 RMD160 9383264af3a54db6b141c575e9eb53768f161323 SHA1 b2095aa028dfa178e57f2a75df201a9f8142dadd SHA256 eea4771e0b2003c621168e8aded70ae25e1c9da49059e09a1f65f21212dc35a4
diff --git a/media-gfx/k3d/files/k3d-0.6.7.0-gcc43.patch b/media-gfx/k3d/files/k3d-0.6.7.0-gcc43.patch
deleted file mode 100644
index 1d148e4e2bb0..000000000000
--- a/media-gfx/k3d/files/k3d-0.6.7.0-gcc43.patch
+++ /dev/null
@@ -1,292 +0,0 @@
-diff -NrU5 k3d-0.6.7.0.orig/hapy/src/Assert.cc k3d-0.6.7.0/hapy/src/Assert.cc
---- k3d-0.6.7.0.orig/hapy/src/Assert.cc 2004-01-12 15:21:41.000000000 +0100
-+++ k3d-0.6.7.0/hapy/src/Assert.cc 2008-04-21 18:49:36.000000000 +0200
-@@ -3,10 +3,11 @@
-
- #include <Hapy/Assert.h>
- #include <Hapy/IoStream.h>
-
- #include <cstring>
-+#include <cstdlib>
- #include <errno.h>
-
-
- void Hapy::Complain(const char *fname, int lineno) {
- cerr << fname << ':' << lineno << ": " << strerror(errno) << endl;
-diff -NrU5 k3d-0.6.7.0.orig/hapy/src/RuleId.cc k3d-0.6.7.0/hapy/src/RuleId.cc
---- k3d-0.6.7.0.orig/hapy/src/RuleId.cc 2004-02-12 11:04:59.000000000 +0100
-+++ k3d-0.6.7.0/hapy/src/RuleId.cc 2008-04-21 18:49:36.000000000 +0200
-@@ -1,7 +1,9 @@
- /* Hapy is a public domain software. See Hapy README file for the details. */
-
-+#include <limits>
-+
- #include <Hapy/Assert.h>
- #include <Hapy/RuleId.h>
- #include <Hapy/NumericLimits.h>
- #include <Hapy/IoStream.h>
-
-diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/algebra.h k3d-0.6.7.0/k3dsdk/algebra.h
---- k3d-0.6.7.0.orig/k3dsdk/algebra.h 2006-03-16 16:23:14.000000000 +0100
-+++ k3d-0.6.7.0/k3dsdk/algebra.h 2008-04-21 18:49:36.000000000 +0200
-@@ -28,10 +28,11 @@
- #include "basic_math.h"
- #include "log.h"
- #include "vectors.h"
-
- #include <cfloat>
-+#include <cstring>
-
- /****************************************************************
- *
- * C++ Vector and Matrix Algebra routines
- * Author: Jean-Francois DOUE
-diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/bitmap.h k3d-0.6.7.0/k3dsdk/bitmap.h
---- k3d-0.6.7.0.orig/k3dsdk/bitmap.h 2006-08-05 06:22:03.000000000 +0200
-+++ k3d-0.6.7.0/k3dsdk/bitmap.h 2008-04-21 18:49:36.000000000 +0200
-@@ -29,11 +29,11 @@
-
- #include <algorithm>
- #include <cmath>
- #include <functional>
- #include <iostream>
--#include <string>
-+#include <cstring>
-
- namespace k3d
- {
-
- /// Defines data measured in pixels
-diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/explicit_snap_source.cpp k3d-0.6.7.0/k3dsdk/explicit_snap_source.cpp
---- k3d-0.6.7.0.orig/k3dsdk/explicit_snap_source.cpp 2006-02-15 03:31:06.000000000 +0100
-+++ k3d-0.6.7.0/k3dsdk/explicit_snap_source.cpp 2008-04-21 18:49:36.000000000 +0200
-@@ -23,10 +23,12 @@
-
- #include "explicit_snap_source.h"
- #include "result.h"
- #include "vectors.h"
-
-+#include <algorithm>
-+
- namespace k3d
- {
-
- ////////////////////////////////////////////////////////////////////////////////////
- // explicit_snap_source
-diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/explicit_snap_target.cpp k3d-0.6.7.0/k3dsdk/explicit_snap_target.cpp
---- k3d-0.6.7.0.orig/k3dsdk/explicit_snap_target.cpp 2006-02-15 03:31:06.000000000 +0100
-+++ k3d-0.6.7.0/k3dsdk/explicit_snap_target.cpp 2008-04-21 18:49:36.000000000 +0200
-@@ -23,10 +23,12 @@
-
- #include "explicit_snap_target.h"
- #include "result.h"
- #include "vectors.h"
-
-+#include <algorithm>
-+
- namespace k3d
- {
-
- ////////////////////////////////////////////////////////////////////////////////////
- // explicit_snap_target
-diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/gl_info.cpp k3d-0.6.7.0/k3dsdk/gl_info.cpp
---- k3d-0.6.7.0.orig/k3dsdk/gl_info.cpp 2004-12-19 01:39:24.000000000 +0100
-+++ k3d-0.6.7.0/k3dsdk/gl_info.cpp 2008-04-21 18:49:36.000000000 +0200
-@@ -38,10 +38,11 @@
-
- #include <cassert>
- #include <iostream>
- #include <sstream>
- #include <string>
-+#include <cstring>
-
- namespace k3d
- {
-
- namespace gl
-diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/log_control.h k3d-0.6.7.0/k3dsdk/log_control.h
---- k3d-0.6.7.0.orig/k3dsdk/log_control.h 2007-01-06 20:58:14.000000000 +0100
-+++ k3d-0.6.7.0/k3dsdk/log_control.h 2008-04-21 18:49:36.000000000 +0200
-@@ -20,10 +20,12 @@
- // License along with this program; if not, write to the Free Software
- // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
- #include "signal_system.h"
-
-+#include <cstdlib>
-+
- namespace k3d
- {
-
- /// Enumerates available log levels
- typedef enum
-diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/log.cpp k3d-0.6.7.0/k3dsdk/log.cpp
---- k3d-0.6.7.0.orig/k3dsdk/log.cpp 2007-01-12 07:10:05.000000000 +0100
-+++ k3d-0.6.7.0/k3dsdk/log.cpp 2008-04-21 18:49:36.000000000 +0200
-@@ -21,10 +21,11 @@
- #include "result.h"
-
- #include <iostream>
- #include <sstream>
- #include <vector>
-+#include <cstdlib>
-
- #ifdef K3D_PLATFORM_WIN32
-
- #include <time.h>
- #include <windows.h>
-diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/socket.cpp k3d-0.6.7.0/k3dsdk/socket.cpp
---- k3d-0.6.7.0.orig/k3dsdk/socket.cpp 2006-10-06 06:24:56.000000000 +0200
-+++ k3d-0.6.7.0/k3dsdk/socket.cpp 2008-04-21 18:49:36.000000000 +0200
-@@ -22,10 +22,11 @@
- */
-
- #include "result.h"
- #include "socket.h"
- #include "string_cast.h"
-+#include <cstring>
-
- #ifdef K3D_PLATFORM_WIN32
-
- #include "winsock2.h"
-
-diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/xml.cpp k3d-0.6.7.0/k3dsdk/xml.cpp
---- k3d-0.6.7.0.orig/k3dsdk/xml.cpp 2006-04-26 06:44:19.000000000 +0200
-+++ k3d-0.6.7.0/k3dsdk/xml.cpp 2008-04-21 18:50:24.000000000 +0200
-@@ -28,10 +28,11 @@
-
- #include <iostream>
- #include <iterator>
- #include <stack>
- #include <stdexcept>
-+#include <cstring>
-
- #if defined K3D_HAVE_EXPAT
-
- #include <expat.h>
- #define BACKEND_PARSER expat_parser
-diff -NrU5 k3d-0.6.7.0.orig/modules/bitmap/bitmap_element.h k3d-0.6.7.0/modules/bitmap/bitmap_element.h
---- k3d-0.6.7.0.orig/modules/bitmap/bitmap_element.h 2006-08-05 06:25:11.000000000 +0200
-+++ k3d-0.6.7.0/modules/bitmap/bitmap_element.h 2008-04-21 18:49:36.000000000 +0200
-@@ -25,10 +25,12 @@
- */
-
- #include <k3dsdk/algebra.h>
- #include <k3dsdk/bitmap.h>
-
-+#include <memory>
-+
- namespace libk3dbitmap
- {
-
- /*
- The relationship between 'pixel space' and (2d) 'world space'
-diff -NrU5 k3d-0.6.7.0.orig/ngui/angle_axis_control.h k3d-0.6.7.0/ngui/angle_axis_control.h
---- k3d-0.6.7.0.orig/ngui/angle_axis_control.h 2006-06-17 21:05:47.000000000 +0200
-+++ k3d-0.6.7.0/ngui/angle_axis_control.h 2008-04-21 18:49:36.000000000 +0200
-@@ -27,10 +27,11 @@
- #include "ui_component.h"
-
- #include <k3dsdk/algebra.h>
- #include <k3dsdk/signal_system.h>
-
-+#include <memory>
- #include <gtkmm/table.h>
-
- namespace Gtk { class Button; }
- namespace k3d { class iproperty; }
- namespace k3d { class istate_recorder; }
-diff -NrU5 k3d-0.6.7.0.orig/ngui/bitmap_preview.h k3d-0.6.7.0/ngui/bitmap_preview.h
---- k3d-0.6.7.0.orig/ngui/bitmap_preview.h 2006-07-05 06:49:43.000000000 +0200
-+++ k3d-0.6.7.0/ngui/bitmap_preview.h 2008-04-21 18:49:36.000000000 +0200
-@@ -29,10 +29,12 @@
-
- #include <k3dsdk/bitmap.h>
-
- #include <gtkmm/buttonbox.h>
-
-+#include <memory>
-+
- namespace Gtk { class Image; }
- namespace k3d { class idag; }
- namespace k3d { class iproperty; }
-
- namespace libk3dngui
-diff -NrU5 k3d-0.6.7.0.orig/ngui/bounding_box.h k3d-0.6.7.0/ngui/bounding_box.h
---- k3d-0.6.7.0.orig/ngui/bounding_box.h 2006-06-17 21:05:47.000000000 +0200
-+++ k3d-0.6.7.0/ngui/bounding_box.h 2008-04-21 18:49:36.000000000 +0200
-@@ -29,10 +29,12 @@
- #include <k3dsdk/signal_system.h>
- #include <k3dsdk/bounding_box.h>
-
- #include <gtkmm/table.h>
-
-+#include <memory>
-+
- // Forward declarations
- namespace Gtk { class Button; }
- namespace k3d { class iproperty; }
- namespace k3d { class istate_recorder; }
-
-diff -NrU5 k3d-0.6.7.0.orig/ngui/entry.h k3d-0.6.7.0/ngui/entry.h
---- k3d-0.6.7.0.orig/ngui/entry.h 2006-06-17 21:05:48.000000000 +0200
-+++ k3d-0.6.7.0/ngui/entry.h 2008-04-21 18:49:36.000000000 +0200
-@@ -29,10 +29,12 @@
- #include "ui_component.h"
-
- #include <k3dsdk/iproperty.h>
- #include <k3dsdk/iwritable_property.h>
-
-+#include <memory>
-+
- namespace k3d { class istate_recorder; }
-
- namespace libk3dngui
- {
-
-diff -NrU5 k3d-0.6.7.0.orig/ngui/ui_component.h k3d-0.6.7.0/ngui/ui_component.h
---- k3d-0.6.7.0.orig/ngui/ui_component.h 2006-06-17 21:05:51.000000000 +0200
-+++ k3d-0.6.7.0/ngui/ui_component.h 2008-04-21 18:49:36.000000000 +0200
-@@ -20,10 +20,12 @@
- // License along with this program; if not, write to the Free Software
- // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
- #include <k3dsdk/command_node.h>
-
-+#include <memory>
-+
- namespace Glib { class ustring; }
- namespace Gtk { class Tooltips; }
-
- namespace libk3dngui
- {
-diff -NrU5 k3d-0.6.7.0.orig/renderjob/main.cpp k3d-0.6.7.0/renderjob/main.cpp
---- k3d-0.6.7.0.orig/renderjob/main.cpp 2007-01-23 05:06:33.000000000 +0100
-+++ k3d-0.6.7.0/renderjob/main.cpp 2008-04-21 18:49:36.000000000 +0200
-@@ -29,10 +29,11 @@
- #include <k3dsdk/utility.h>
- #include <k3dsdk/version.h>
-
- #include <iostream>
- #include <vector>
-+#include <algorithm>
-
- namespace
- {
-
- typedef std::vector<std::string> string_array;
-diff -NrU5 k3d-0.6.7.0.orig/surface_polygonizer/jules_bloomenthal.cpp k3d-0.6.7.0/surface_polygonizer/jules_bloomenthal.cpp
---- k3d-0.6.7.0.orig/surface_polygonizer/jules_bloomenthal.cpp 2005-11-24 21:19:23.000000000 +0100
-+++ k3d-0.6.7.0/surface_polygonizer/jules_bloomenthal.cpp 2008-04-21 18:49:36.000000000 +0200
-@@ -23,10 +23,11 @@
- #include <k3dsdk/result.h>
-
- #include "jules_bloomenthal.h"
-
- #include <iostream>
-+#include <algorithm>
-
- // Number of iterations (convergence)
- const int RES = 10;
-
- // Directions
diff --git a/media-gfx/k3d/files/k3d-0.6.7.0-sigc2.patch b/media-gfx/k3d/files/k3d-0.6.7.0-sigc2.patch
deleted file mode 100644
index be0b8f13e873..000000000000
--- a/media-gfx/k3d/files/k3d-0.6.7.0-sigc2.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- k3d-0.6.7.0/k3dsdk/node.cpp~ 2006-05-31 22:27:27.000000000 +0200
-+++ k3d-0.6.7.0/k3dsdk/node.cpp 2008-04-01 11:32:56.000000000 +0200
-@@ -26,6 +26,7 @@
- #include "iplugin_factory.h"
- #include "node.h"
-
-+#include <sigc++/sigc++.h>
- #include <algorithm>
- #include <iostream>
-
---- k3d-0.6.7.0/k3dsdk/mesh_modifier.h~ 2006-02-19 06:43:39.000000000 +0100
-+++ k3d-0.6.7.0/k3dsdk/mesh_modifier.h 2008-04-01 11:32:52.000000000 +0200
-@@ -27,6 +27,8 @@
- #include "imesh_source.h"
- #include "mesh.h"
-
-+#include <sigc++/sigc++.h>
-+
- namespace k3d
- {
-
diff --git a/media-gfx/k3d/k3d-0.6.7.0-r1.ebuild b/media-gfx/k3d/k3d-0.6.7.0-r1.ebuild
deleted file mode 100644
index cbb45d37aa0b..000000000000
--- a/media-gfx/k3d/k3d-0.6.7.0-r1.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/k3d/k3d-0.6.7.0-r1.ebuild,v 1.4 2010/01/01 16:00:23 armin76 Exp $
-
-inherit flag-o-matic
-
-DESCRIPTION="A free 3D modeling, animation, and rendering system"
-HOMEPAGE="http://www.k-3d.org/"
-SRC_URI="mirror://sourceforge/k3d/${P}-src.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="expat gnome graphviz imagemagick jpeg nls openexr plib png python svg tiff truetype xml"
-
-RDEPEND="virtual/opengl
- virtual/glu
- dev-libs/boost
- expat? ( dev-libs/expat )
- xml? ( dev-libs/libxml2 )
- !xml? ( dev-libs/expat )
- truetype? ( >=media-libs/freetype-2 )
- gnome? ( gnome-base/libgnome )
- graphviz? ( media-gfx/graphviz )
- imagemagick? ( media-gfx/imagemagick )
- jpeg? ( media-libs/jpeg )
- >=dev-cpp/glibmm-2.6
- >=dev-cpp/gtkmm-2.6
- >=x11-libs/gtkglext-1.0.6-r3
- openexr? ( media-libs/openexr )
- plib? ( media-libs/plib )
- png? ( media-libs/libpng )
- python? ( >=dev-lang/python-2.3 )
- tiff? ( media-libs/tiff )
- >=dev-libs/libsigc++-2.2
- x11-libs/libXmu
- x11-libs/libXt
- x11-libs/libICE
- x11-libs/libSM
- media-libs/mesa"
-DEPEND="${RDEPEND}
- dev-util/pkgconfig"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-gcc43.patch \
- "${FILESDIR}"/${P}-sigc2.patch
-}
-
-src_compile() {
- if [[ $(gcc-major-version) -lt 4 ]]; then
- append-cxxflags -fno-stack-protector
- fi
-
- local myconf="--with-ngui"
- if use expat || ! use xml ; then
- myconf="--without-libxml2"
- else
- myconf="--with-libxml2"
- fi
-
- econf \
- $(use_enable nls) \
- --with-external-boost \
- $(use_with truetype freetype2) \
- $(use_with gnome) \
- $(use_with graphviz) \
- $(use_with imagemagick) \
- $(use_with jpeg) \
- $(use_with openexr) \
- $(use_with plib) \
- $(use_with png) \
- $(use_with python) \
- $(use_with svg svg-icons) \
- $(use_with tiff) \
- ${myconf} \
- || die
- emake || die
-}
-
-src_install() {
- make install DESTDIR="${D}" || die
- dodoc AUTHORS NEWS README TODO
- #missing dir
- dodir /usr/share/k3d/shaders/layered
- keepdir /usr/share/k3d/shaders/layered
-}
diff --git a/media-gfx/k3d/k3d-0.7.11.0.ebuild b/media-gfx/k3d/k3d-0.7.11.0.ebuild
deleted file mode 100644
index f6c6d645f953..000000000000
--- a/media-gfx/k3d/k3d-0.7.11.0.ebuild
+++ /dev/null
@@ -1,99 +0,0 @@
-# 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.ebuild,v 1.3 2009/03/24 16:44:52 gengor 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 ~ppc ~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 )
- 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" || die "epatch failed"
- [[ -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
-}