From b7e814dabece6aa9261d2b0019a50858310e6ce0 Mon Sep 17 00:00:00 2001 From: Thomas Witt Date: Wed, 28 Aug 2013 20:46:40 +0200 Subject: [PATCH] OpenSceneGraph: simulation graphics toolkit --- .../OpenSceneGraph-3.2.0.exheres-0 | 50 +++++++++++++++++++ .../files/OpenSceneGraph-3.2.0-libav.patch | 17 +++++++ 2 files changed, 67 insertions(+) create mode 100644 packages/dev-games/OpenSceneGraph/OpenSceneGraph-3.2.0.exheres-0 create mode 100644 packages/dev-games/OpenSceneGraph/files/OpenSceneGraph-3.2.0-libav.patch diff --git a/packages/dev-games/OpenSceneGraph/OpenSceneGraph-3.2.0.exheres-0 b/packages/dev-games/OpenSceneGraph/OpenSceneGraph-3.2.0.exheres-0 new file mode 100644 index 0000000..ca06ae4 --- /dev/null +++ b/packages/dev-games/OpenSceneGraph/OpenSceneGraph-3.2.0.exheres-0 @@ -0,0 +1,50 @@ +# Copyright 2013 Thomas Witt +# Distributed under the terms of the GNU General Public License v2 + +require cmake [ api=2 ] + +SUMMARY="High performance 3D graphics toolkit" +DESCRIPTION=" +The OpenSceneGraph is an open source high performance 3D graphics toolkit, +used by application developers in fields such as visual simulation, games, +virtual reality, scientific visualization and modelling. Written entirely +in Standard C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, +IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph +is now well established as the world leading scene graph technology, used +widely in the vis-sim, space, scientific, oil-gas, games and virtual reality +industries. +" +HOMEPAGE="http://www.openscenegraph.org" +DOWNLOADS="${HOMEPAGE}/downloads/developer_releases/${PNV}.zip" + +LICENCES="OpenSceneGraph" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="" + +# TODO Some of these may be optional +# TODO SDL gtkglxext +DEPENDENCIES=" + build: + app-arch/zip + build+run: + app-text/poppler[cairo] + dev-libs/boost + dev-libs/libxml2 + gnome-desktop/librsvg + media-libs/freetype + media-libs/giflib + media-libs/jpeg + media-libs/libpng + media-libs/tiff + net-misc/curl + sys-libs/zlib + x11-dri/mesa + x11-libs/gtk+:2 + x11-libs/qt:4 +" + +BUGS_TO="pyromaniac@thwitt.de" + +DEFAULT_SRC_PREPARE_PATCHES=( -p2 "${FILES}"/${PNV}-libav.patch ) + diff --git a/packages/dev-games/OpenSceneGraph/files/OpenSceneGraph-3.2.0-libav.patch b/packages/dev-games/OpenSceneGraph/files/OpenSceneGraph-3.2.0-libav.patch new file mode 100644 index 0000000..63d970b --- /dev/null +++ b/packages/dev-games/OpenSceneGraph/files/OpenSceneGraph-3.2.0-libav.patch @@ -0,0 +1,17 @@ +Author: Thomas Witt +Upstream: pending +Reason: compile fails due to deprecated symbol + + +diff -ur a/OpenSceneGraph-3.2.0/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp b/OpenSceneGraph-3.2.0/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp +--- a/OpenSceneGraph-3.2.0/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp 2013-02-06 13:46:03.000000000 +0100 ++++ b/OpenSceneGraph-3.2.0/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp 2013-08-27 19:58:41.802656964 +0200 +@@ -279,7 +279,7 @@ + int error = av_read_frame(m_format_context.get(), &packet); + if (error < 0) + { +- if (error == AVERROR_EOF || url_feof(m_format_context.get()->pb)) ++ if (error == AVERROR_EOF || m_format_context.get()->pb->eof_reached) + end_of_stream = true; + else { + OSG_FATAL << "av_read_frame() returned " << AvStrError(error) << std::endl;