summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2008-05-13 07:24:51 +0000
committerSamuli Suominen <drac@gentoo.org>2008-05-13 07:24:51 +0000
commit525a10f8f6157f72167ca5513b2028891c98cc6c (patch)
treed42d5c50c7a581a732fded7ca9ccfe52e46bd7e1 /media-gfx/k3d
parentStable on ppc64; bug #221863 (diff)
downloadgentoo-2-525a10f8f6157f72167ca5513b2028891c98cc6c.tar.gz
gentoo-2-525a10f8f6157f72167ca5513b2028891c98cc6c.tar.bz2
gentoo-2-525a10f8f6157f72167ca5513b2028891c98cc6c.zip
Fix compability with libsigc++-2.2 wrt #218763 and building with GCC 4.3 wrt #218760, thanks to Peter Alfredsen.
(Portage version: 2.1.5_rc10)
Diffstat (limited to 'media-gfx/k3d')
-rw-r--r--media-gfx/k3d/ChangeLog10
-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.ebuild85
4 files changed, 407 insertions, 1 deletions
diff --git a/media-gfx/k3d/ChangeLog b/media-gfx/k3d/ChangeLog
index 7b9375ae0778..d2f3bff40a74 100644
--- a/media-gfx/k3d/ChangeLog
+++ b/media-gfx/k3d/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-gfx/k3d
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/k3d/ChangeLog,v 1.35 2008/01/15 00:28:58 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/k3d/ChangeLog,v 1.36 2008/05/13 07:24:50 drac Exp $
+
+*k3d-0.6.7.0-r1 (13 May 2008)
+
+ 13 May 2008; Samuli Suominen <drac@gentoo.org>
+ +files/k3d-0.6.7.0-gcc43.patch, +files/k3d-0.6.7.0-sigc2.patch,
+ +k3d-0.6.7.0-r1.ebuild:
+ Fix compability with libsigc++-2.2 wrt #218763 and building with GCC 4.3
+ wrt #218760, thanks to Peter Alfredsen.
15 Jan 2008; Markus Meier <maekke@gentoo.org>
-files/k3d-0.5.0.34-nls.patch, -files/k3d-0.5.0.37-nls.patch,
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
new file mode 100644
index 000000000000..1d148e4e2bb0
--- /dev/null
+++ b/media-gfx/k3d/files/k3d-0.6.7.0-gcc43.patch
@@ -0,0 +1,292 @@
+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
new file mode 100644
index 000000000000..be0b8f13e873
--- /dev/null
+++ b/media-gfx/k3d/files/k3d-0.6.7.0-sigc2.patch
@@ -0,0 +1,21 @@
+--- 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
new file mode 100644
index 000000000000..2d8e04cf044e
--- /dev/null
+++ b/media-gfx/k3d/k3d-0.6.7.0-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2008 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.1 2008/05/13 07:24:50 drac Exp $
+
+inherit eutils
+
+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 ~sparc ~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
+ gnome-base/librsvg
+ 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() {
+ 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
+}