mygui: disable some components, support OpenGL renderer
This commit is contained in:
parent
c322c042cf
commit
c74e2b51e8
@ -1,7 +1,9 @@
|
|||||||
{ stdenv, fetchFromGitHub, libX11, unzip, cmake, ois, freetype, libuuid,
|
{ stdenv, fetchFromGitHub, libX11, unzip, cmake, ois, freetype, libuuid,
|
||||||
boost, pkgconfig, lib, withOgre ? true, ogre ? null } :
|
boost, pkgconfig, withOgre ? true, ogre ? null, mesa ? null } :
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
renderSystem = if withOgre then "3" else "4";
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
name = "mygui-${version}";
|
name = "mygui-${version}";
|
||||||
version = "3.2.2";
|
version = "3.2.2";
|
||||||
|
|
||||||
@ -14,15 +16,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
buildInputs = [ libX11 unzip cmake ois freetype libuuid boost pkgconfig (if withOgre then ogre else mesa) ];
|
||||||
|
|
||||||
buildInputs = [ libX11 unzip cmake ois freetype libuuid boost pkgconfig ]
|
# Tools are disabled due to compilation failures.
|
||||||
++ lib.optional withOgre [ ogre ];
|
cmakeFlags = [ "-DMYGUI_BUILD_TOOLS=OFF" "-DMYGUI_BUILD_DEMOS=OFF" "-DMYGUI_RENDERSYSTEM=${renderSystem}" ];
|
||||||
|
|
||||||
cmakeFlags = lib.optional (! withOgre) ["-DMYGUI_RENDERSYSTEM=1" "-DMYGUI_BUILD_DEMOS=OFF" "-DMYGUI_BUILD_TOOLS=OFF" "-DMYGUI_BUILD_PLUGINS=OFF"];
|
meta = with stdenv.lib; {
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = http://mygui.info/;
|
homepage = http://mygui.info/;
|
||||||
description = "Library for creating GUIs for games and 3D applications";
|
description = "Library for creating GUIs for games and 3D applications";
|
||||||
license = stdenv.lib.licenses.lgpl3Plus;
|
license = licenses.lgpl3Plus;
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user