Merge pull request #49617 from aanderse/openscenegraph_3_4

Fix flightgear, simgear & speed_dreams
This commit is contained in:
Michael Raskin
2018-11-02 08:06:29 +00:00
committed by GitHub
5 changed files with 56 additions and 10 deletions

View File

@@ -0,0 +1,39 @@
{ 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
}:
stdenv.mkDerivation rec {
name = "openscenegraph-${version}";
version = "3.4.0";
src = fetchurl {
url = "http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-${version}.zip";
sha256 = "03h4wfqqk7rf3mpz0sa99gy715cwpala7964z2npd8jxfn27swjw";
};
nativeBuildInputs = [ pkgconfig cmake doxygen unzip ];
buildInputs = [
freetype libjpeg jasper libxml2 zlib gdal curl libX11
cairo poppler librsvg libpng libtiff libXrandr boost
xineLib
] ++ lib.optional withSDL SDL
++ lib.optional withQt4 qt4;
enableParallelBuilding = true;
cmakeFlags = lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF";
meta = with stdenv.lib; {
description = "A 3D graphics toolkit";
homepage = http://www.openscenegraph.org/;
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
license = "OpenSceneGraph Public License - free LGPL-based license";
};
}

View File

@@ -6,12 +6,12 @@
stdenv.mkDerivation rec {
name = "simgear-${version}";
version = "2017.3.1";
shortVersion = "2017.3";
version = "2018.2.2";
shortVersion = "2018.2";
src = fetchurl {
url = "mirror://sourceforge/flightgear/release-${shortVersion}/${name}.tar.bz2";
sha256 = "1x71wvycs2bjgmmacswgk6091p65p46fr40mr7f4kcipnx88bq0f";
sha256 = "f61576bc36aae36f350154749df1cee396763604c06b8a71c4b50452d9151ce5";
};
buildInputs = [ plib freeglut xproto libX11 libXext xextproto libXi inputproto
@@ -28,4 +28,3 @@ stdenv.mkDerivation rec {
license = licenses.lgpl2;
};
}