2016-09-16 18:18:26 +02:00
|
|
|
{ stdenv, lib, fetchurl, cmake, pkgconfig, doxygen, unzip
|
|
|
|
, freetype, libjpeg, jasper, libxml2, zlib, gdal, curl, libX11
|
|
|
|
, cairo, poppler, librsvg, libpng, libtiff, libXrandr
|
|
|
|
, xineLib, boost
|
|
|
|
, withApps ? false
|
|
|
|
, withSDL ? false, SDL
|
|
|
|
, withQt4 ? false, qt4
|
|
|
|
}:
|
2011-04-09 18:43:00 +02:00
|
|
|
|
2015-12-30 00:06:34 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "openscenegraph-${version}";
|
2016-09-16 18:18:26 +02:00
|
|
|
version = "3.2.3";
|
2011-04-09 18:43:00 +02:00
|
|
|
|
2015-12-30 00:06:34 +01:00
|
|
|
src = fetchurl {
|
2016-09-16 18:18:26 +02:00
|
|
|
url = "http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-${version}.zip";
|
|
|
|
sha256 = "0gic1hy7fhs27ipbsa5862q120a9y4bx176nfaw2brcjp522zvb9";
|
2015-12-30 00:06:34 +01:00
|
|
|
};
|
2011-04-09 18:43:00 +02:00
|
|
|
|
2016-09-16 18:18:26 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake doxygen unzip ];
|
|
|
|
|
2015-12-30 00:06:34 +01:00
|
|
|
buildInputs = [
|
2016-09-16 18:18:26 +02:00
|
|
|
freetype libjpeg jasper libxml2 zlib gdal curl libX11
|
|
|
|
cairo poppler librsvg libpng libtiff libXrandr boost
|
|
|
|
xineLib
|
|
|
|
] ++ lib.optional withSDL SDL
|
|
|
|
++ lib.optional withQt4 qt4;
|
2013-02-23 20:09:11 +01:00
|
|
|
|
2016-04-11 17:28:05 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-09-16 18:18:26 +02:00
|
|
|
cmakeFlags = lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF";
|
2011-04-09 18:43:00 +02:00
|
|
|
|
2015-12-30 00:06:34 +01:00
|
|
|
meta = with stdenv.lib; {
|
2011-04-09 18:43:00 +02:00
|
|
|
description = "A 3D graphics toolkit";
|
2015-12-30 00:06:34 +01:00
|
|
|
homepage = http://www.openscenegraph.org/;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2011-04-09 18:43:00 +02:00
|
|
|
license = "OpenSceneGraph Public License - free LGPL-based license";
|
|
|
|
};
|
2015-12-30 00:06:34 +01:00
|
|
|
}
|