From ba90204c71d1a9fcaf31e4282a795cebaa9a4283 Mon Sep 17 00:00:00 2001 From: Maciej Mrozowski Date: Wed, 13 Jan 2016 07:41:08 +0100 Subject: dev-games/openscenegraph: Improve 3.4.0 ebuild (fix automagic deps, restore ppc keywords, rework SDL dependencies) Package-Manager: portage-2.2.26 --- .../files/openscenegraph-3.4.0-cmake.patch | 2 +- dev-games/openscenegraph/metadata.xml | 4 ++-- .../openscenegraph/openscenegraph-3.4.0.ebuild | 22 ++++++++++++++++------ 3 files changed, 19 insertions(+), 9 deletions(-) (limited to 'dev-games') diff --git a/dev-games/openscenegraph/files/openscenegraph-3.4.0-cmake.patch b/dev-games/openscenegraph/files/openscenegraph-3.4.0-cmake.patch index 4633b29ba7f5..59f971c94386 100644 --- a/dev-games/openscenegraph/files/openscenegraph-3.4.0-cmake.patch +++ b/dev-games/openscenegraph/files/openscenegraph-3.4.0-cmake.patch @@ -73,7 +73,7 @@ IF (NOT(OSG_USE_LOCAL_LUA_SOURCE)) - FIND_PACKAGE(Lua52) -+ MACRO_OPTIONAL_FIND_PACKAGE(Lua52) ++ MACRO_OPTIONAL_FIND_PACKAGE(Lua) IF (NOT (LUA_LIBRARIES AND LUA_INCLUDE_DIR)) - FIND_PACKAGE(Lua51) + MACRO_OPTIONAL_FIND_PACKAGE(Lua51) diff --git a/dev-games/openscenegraph/metadata.xml b/dev-games/openscenegraph/metadata.xml index 28883fac314d..2d1889808652 100644 --- a/dev-games/openscenegraph/metadata.xml +++ b/dev-games/openscenegraph/metadata.xml @@ -13,10 +13,10 @@ The OpenSceneGraph is an open source high performance 3D graphics toolkit, used Enable support for dev-cpp/asio library Build examples using x11-libs/fox library Enable support for sci-libs/gdal library + Enable support for geospatial data LAS LiDAR format using sci-geosciences/liblas Build OpenInventor plugin Build osg applications - Use media-libs/libsdl2 additionally to - media-libs/libsdl + Use media-libs/libsdl2 additionally to media-libs/libsdl Enable support for the X xrandr extension diff --git a/dev-games/openscenegraph/openscenegraph-3.4.0.ebuild b/dev-games/openscenegraph/openscenegraph-3.4.0.ebuild index ae1f1102f3de..86d35bcc1aeb 100644 --- a/dev-games/openscenegraph/openscenegraph-3.4.0.ebuild +++ b/dev-games/openscenegraph/openscenegraph-3.4.0.ebuild @@ -16,14 +16,15 @@ SRC_URI="http://trac.openscenegraph.org/downloads/developer_releases/${MY_P}.zip LICENSE="wxWinLL-3 LGPL-2.1" SLOT="0/34" # Subslot consists of major + minor version number -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~ppc ~x86" IUSE="asio curl debug doc examples ffmpeg fltk fox gdal gif glut gstreamer gtk jpeg -jpeg2k openexr openinventor osgapps pdf png qt4 qt5 sdl sdl2 svg tiff truetype vnc -wxwidgets xine xrandr zlib" +jpeg2k las lua openexr openinventor osgapps pdf png qt4 qt5 sdl sdl2 svg tiff truetype +vnc wxwidgets xine xrandr zlib" REQUIRED_USE=" qt4? ( !qt5 ) qt5? ( !qt4 ) + sdl2? ( sdl ) " # TODO: COLLADA, FBX, GTA, ITK, OpenVRML, Performer, DCMTK @@ -39,8 +40,7 @@ RDEPEND=" fox? ( x11-libs/fox:1.6[opengl] ) glut? ( media-libs/freeglut ) gtk? ( x11-libs/gtkglext ) - sdl? ( media-libs/libsdl - sdl2? ( media-libs/libsdl2 ) ) + sdl2? ( media-libs/libsdl2 ) wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[opengl,X] ) ) ffmpeg? ( virtual/ffmpeg ) @@ -52,6 +52,8 @@ RDEPEND=" ) jpeg? ( virtual/jpeg:0 ) jpeg2k? ( media-libs/jasper ) + las? ( >=sci-geosciences/liblas-1.8.0 ) + lua? ( >=dev-lang/lua-5.1.5:* ) openexr? ( media-libs/ilmbase media-libs/openexr @@ -70,6 +72,7 @@ RDEPEND=" dev-qt/qtopengl:5 dev-qt/qtwidgets:5 ) + sdl? ( media-libs/libsdl ) svg? ( gnome-base/librsvg x11-libs/cairo @@ -109,6 +112,10 @@ src_configure() { -DDYNAMIC_OPENSCENEGRAPH=ON -DWITH_ITK=OFF -DGENTOO_DOCDIR="/usr/share/doc/${PF}" + -DOPENGL_PROFILE=GL2 #GL1 GL2 GL3 GLES1 GLES3 GLES3 + -DOSG_USE_LOCAL_LUA_SOURCE=OFF + -DWITH_Lua51=OFF # We use CMake-version FindLua.cmake instead + -DWITH_Lua52=OFF $(cmake-utils_use_with asio) $(cmake-utils_use_with curl) $(cmake-utils_use_build doc DOCUMENTATION) @@ -121,15 +128,18 @@ src_configure() { $(cmake-utils_use_with gif GIFLIB) $(cmake-utils_use_with glut) $(cmake-utils_use_with gstreamer GStreamer) + $(cmake-utils_use_with gstreamer GLIB) $(cmake-utils_use_with gtk GtkGl) $(cmake-utils_use_with jpeg) $(cmake-utils_use_with jpeg2k Jasper) + $(cmake-utils_use_with las LIBLAS) + $(cmake-utils_use_with lua) $(cmake-utils_use_with openexr OpenEXR) $(cmake-utils_use_with openinventor Inventor) $(cmake-utils_use_with pdf Poppler-glib) $(cmake-utils_use_with png) $(cmake-utils_use_with sdl) - $(cmake_utils_use_with sdl2) + $(cmake-utils_use_with sdl2) $(cmake-utils_use_with svg rsvg) $(cmake-utils_use_with tiff) $(cmake-utils_use_with truetype Freetype) -- cgit v1.2.3-65-gdbad