2016-09-16 17:18:26 +01: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 17:43:00 +01:00
|
|
|
|
2015-12-29 23:06:34 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "openscenegraph-${version}";
|
2016-09-16 17:18:26 +01:00
|
|
|
version = "3.2.3";
|
2011-04-09 17:43:00 +01:00
|
|
|
|
2015-12-29 23:06:34 +00:00
|
|
|
src = fetchurl {
|
2016-09-16 17:18:26 +01:00
|
|
|
url = "http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-${version}.zip";
|
|
|
|
sha256 = "0gic1hy7fhs27ipbsa5862q120a9y4bx176nfaw2brcjp522zvb9";
|
2015-12-29 23:06:34 +00:00
|
|
|
};
|
2011-04-09 17:43:00 +01:00
|
|
|
|
2016-09-16 17:18:26 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake doxygen unzip ];
|
|
|
|
|
2015-12-29 23:06:34 +00:00
|
|
|
buildInputs = [
|
2016-09-16 17:18:26 +01: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 19:09:11 +00:00
|
|
|
|
2016-04-11 16:28:05 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-09-16 17:18:26 +01:00
|
|
|
cmakeFlags = lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF";
|
2011-04-09 17:43:00 +01:00
|
|
|
|
2015-12-29 23:06:34 +00:00
|
|
|
meta = with stdenv.lib; {
|
2011-04-09 17:43:00 +01:00
|
|
|
description = "A 3D graphics toolkit";
|
2015-12-29 23:06:34 +00:00
|
|
|
homepage = http://www.openscenegraph.org/;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2011-04-09 17:43:00 +01:00
|
|
|
license = "OpenSceneGraph Public License - free LGPL-based license";
|
|
|
|
};
|
2015-12-29 23:06:34 +00:00
|
|
|
}
|