Merge pull request #101485 from sikmir/openscenegraph
openscenegraph: enable on darwin
This commit is contained in:
commit
228b835dd7
|
@ -1,6 +1,7 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, doxygen,
|
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, doxygen,
|
||||||
libX11, libXinerama, libXrandr, libGLU, libGL,
|
libX11, libXinerama, libXrandr, libGLU, libGL,
|
||||||
glib, ilmbase, libxml2, pcre, zlib,
|
glib, ilmbase, libxml2, pcre, zlib,
|
||||||
|
AGL, Carbon, Cocoa, Foundation,
|
||||||
jpegSupport ? true, libjpeg,
|
jpegSupport ? true, libjpeg,
|
||||||
exrSupport ? false, openexr,
|
exrSupport ? false, openexr,
|
||||||
gifSupport ? true, giflib,
|
gifSupport ? true, giflib,
|
||||||
|
@ -60,6 +61,7 @@ stdenv.mkDerivation rec {
|
||||||
++ lib.optional sdlSupport SDL2
|
++ lib.optional sdlSupport SDL2
|
||||||
++ lib.optionals restSupport [ asio boost ]
|
++ lib.optionals restSupport [ asio boost ]
|
||||||
++ lib.optionals withExamples [ fltk wxGTK ]
|
++ lib.optionals withExamples [ fltk wxGTK ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ AGL Carbon Cocoa Foundation ]
|
||||||
;
|
;
|
||||||
|
|
||||||
cmakeFlags = lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF" ++ lib.optional withExamples "-DBUILD_OSG_EXAMPLES=ON";
|
cmakeFlags = lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF" ++ lib.optional withExamples "-DBUILD_OSG_EXAMPLES=ON";
|
||||||
|
@ -68,7 +70,7 @@ stdenv.mkDerivation rec {
|
||||||
description = "A 3D graphics toolkit";
|
description = "A 3D graphics toolkit";
|
||||||
homepage = "http://www.openscenegraph.org/";
|
homepage = "http://www.openscenegraph.org/";
|
||||||
maintainers = with maintainers; [ aanderse raskin ];
|
maintainers = with maintainers; [ aanderse raskin ];
|
||||||
platforms = platforms.linux;
|
platforms = with platforms; linux ++ darwin;
|
||||||
license = "OpenSceneGraph Public License - free LGPL-based license";
|
license = "OpenSceneGraph Public License - free LGPL-based license";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14785,7 +14785,9 @@ in
|
||||||
|
|
||||||
opensaml-cpp = callPackage ../development/libraries/opensaml-cpp { };
|
opensaml-cpp = callPackage ../development/libraries/opensaml-cpp { };
|
||||||
|
|
||||||
openscenegraph = callPackage ../development/libraries/openscenegraph { };
|
openscenegraph = callPackage ../development/libraries/openscenegraph {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Foundation;
|
||||||
|
};
|
||||||
|
|
||||||
openslp = callPackage ../development/libraries/openslp {};
|
openslp = callPackage ../development/libraries/openslp {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue