openscenegraph: add withApps flag

This commit is contained in:
Nikolay Amiantov 2016-04-13 04:35:08 +03:00
parent a9ce4b0884
commit 53ae67fddd

View File

@ -1,8 +1,9 @@
{ stdenv, fetchurl, cmake, giflib, libjpeg, libtiff, lib3ds, freetype
{ stdenv, lib, fetchurl, cmake, giflib, libjpeg, libtiff, lib3ds, freetype
, libpng, coin3d, jasper, gdal_1_11, xproto, libX11, libXmu
, freeglut, mesa, doxygen, ffmpeg, xineLib, unzip, zlib, openal
, libxml2, curl, a52dec, faad2, gdk_pixbuf, pkgconfig, kbproto, SDL
, qt4, poppler, librsvg, gtk }:
, qt4, poppler, librsvg, gtk
, withApps ? true }:
stdenv.mkDerivation rec {
name = "openscenegraph-${version}";
@ -26,7 +27,7 @@ stdenv.mkDerivation rec {
"-DMATH_LIBRARY="
"-DCMAKE_C_FLAGS=-D__STDC_CONSTANT_MACROS=1"
"-DCMAKE_CXX_FLAGS=-D__STDC_CONSTANT_MACROS=1"
];
] ++ lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF";
meta = with stdenv.lib; {
description = "A 3D graphics toolkit";