dev-games/openscenegraph: Improve 3.4.0 ebuild (fix automagic deps, restore ppc keywo...
authorMaciej Mrozowski <reavertm@gentoo.org>
Wed, 13 Jan 2016 06:41:08 +0000 (07:41 +0100)
committerMaciej Mrozowski <reavertm@gentoo.org>
Wed, 13 Jan 2016 06:42:21 +0000 (07:42 +0100)
Package-Manager: portage-2.2.26

dev-games/openscenegraph/files/openscenegraph-3.4.0-cmake.patch
dev-games/openscenegraph/metadata.xml
dev-games/openscenegraph/openscenegraph-3.4.0.ebuild

index 4633b29ba7f5e34b553eb0be6a0fd24fdfa7b1a4..59f971c9438656f3530a3a3b4a7390015d7483c4 100644 (file)
@@ -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)
index 28883fac314d0574b6478bff3d3c76705efe9ef3..2d1889808652938fcd5faa982e9903e3ca2409e2 100644 (file)
@@ -13,10 +13,10 @@ The OpenSceneGraph is an open source high performance 3D graphics toolkit, used
     <flag name="asio">Enable support for <pkg>dev-cpp/asio</pkg> library</flag>
     <flag name="fox">Build examples using <pkg>x11-libs/fox</pkg> library</flag>
     <flag name="gdal">Enable support for <pkg>sci-libs/gdal</pkg> library</flag>
+    <flag name="las">Enable support for geospatial data LAS LiDAR format using <pkg>sci-geosciences/liblas</pkg></flag>
     <flag name="openinventor">Build OpenInventor plugin</flag>
     <flag name="osgapps">Build osg applications</flag>
-    <flag name="sdl2">Use <pkg>media-libs/libsdl2</pkg> additionally to
-       <pkg>media-libs/libsdl</pkg></flag>
+    <flag name="sdl2">Use <pkg>media-libs/libsdl2</pkg> additionally to <pkg>media-libs/libsdl</pkg></flag>
     <flag name="xrandr">Enable support for the X xrandr extension</flag>
   </use>
 </pkgmetadata>
index ae1f1102f3de37ba30402e785409ce5c1340ec89..86d35bcc1aebb905619e1fccf27c8ca6ecc4e76f 100644 (file)
@@ -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)