2016-04-11 13:48:01 +00:00
|
|
|
{ fetchurl, stdenv, lib
|
2019-11-10 16:44:34 +00:00
|
|
|
, cmake, libGLU, libGL
|
2018-12-31 03:40:47 +00:00
|
|
|
, freetype, freeimage, zziplib, xorgproto, libXrandr
|
2012-04-06 09:07:23 +00:00
|
|
|
, libXaw, freeglut, libXt, libpng, boost, ois
|
2020-12-31 07:48:55 +00:00
|
|
|
, libX11, libXmu, libSM, pkg-config
|
2018-12-31 03:40:47 +00:00
|
|
|
, libXxf86vm, libICE
|
2019-02-24 20:39:20 +00:00
|
|
|
, unzip
|
2018-12-31 03:40:47 +00:00
|
|
|
, libXrender
|
2016-04-11 13:48:01 +00:00
|
|
|
, withNvidiaCg ? false, nvidia_cg_toolkit
|
|
|
|
, withSamples ? false }:
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2019-02-24 20:39:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ogre";
|
2019-07-02 04:24:16 +00:00
|
|
|
version = "1.12.1";
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2015-09-26 18:49:54 +00:00
|
|
|
src = fetchurl {
|
2019-02-24 20:39:20 +00:00
|
|
|
url = "https://github.com/OGRECave/ogre/archive/v${version}.zip";
|
2019-07-02 04:24:16 +00:00
|
|
|
sha256 = "1iv6k0dwdzg5nnzw2mcgcl663q4f7p2kj7nhs8afnsikrzxxgsi4";
|
2012-04-06 09:07:23 +00:00
|
|
|
};
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2016-04-11 13:48:01 +00:00
|
|
|
cmakeFlags = [ "-DOGRE_BUILD_SAMPLES=${toString withSamples}" ]
|
|
|
|
++ map (x: "-DOGRE_BUILD_PLUGIN_${x}=on")
|
|
|
|
([ "BSP" "OCTREE" "PCZ" "PFX" ] ++ lib.optional withNvidiaCg "CG")
|
|
|
|
++ map (x: "-DOGRE_BUILD_RENDERSYSTEM_${x}=on") [ "GL" ];
|
2011-03-30 22:08:33 +00:00
|
|
|
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake unzip pkg-config ];
|
2012-04-06 09:07:23 +00:00
|
|
|
buildInputs =
|
2019-11-10 16:44:34 +00:00
|
|
|
[ cmake libGLU libGL
|
2018-12-31 03:40:47 +00:00
|
|
|
freetype freeimage zziplib xorgproto libXrandr
|
2012-04-06 09:07:23 +00:00
|
|
|
libXaw freeglut libXt libpng boost ois
|
2020-12-31 07:48:55 +00:00
|
|
|
libX11 libXmu libSM
|
2018-12-31 03:40:47 +00:00
|
|
|
libXxf86vm libICE
|
|
|
|
libXrender
|
2016-04-11 13:48:01 +00:00
|
|
|
] ++ lib.optional withNvidiaCg nvidia_cg_toolkit;
|
2011-04-09 15:51:00 +00:00
|
|
|
|
2010-12-22 14:50:13 +00:00
|
|
|
meta = {
|
|
|
|
description = "A 3D engine";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.ogre3d.org/";
|
2021-01-21 17:00:13 +00:00
|
|
|
maintainers = [ lib.maintainers.raskin ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.mit;
|
2010-12-22 14:50:13 +00:00
|
|
|
};
|
2012-04-06 09:07:23 +00:00
|
|
|
}
|