2016-04-11 13:48:01 +00:00
|
|
|
{ fetchurl, stdenv, lib
|
2018-02-24 13:12:44 +00:00
|
|
|
, cmake, libGLU_combined
|
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
|
2018-12-31 03:40:47 +00:00
|
|
|
, libX11, libXmu, libSM, pkgconfig
|
|
|
|
, 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
|
|
|
|
2012-04-06 09:07:23 +00:00
|
|
|
enableParallelBuilding = true;
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2012-04-06 09:07:23 +00:00
|
|
|
buildInputs =
|
2018-02-24 13:12:44 +00:00
|
|
|
[ cmake libGLU_combined
|
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
|
2018-12-31 03:40:47 +00:00
|
|
|
libX11 libXmu libSM pkgconfig
|
|
|
|
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
|
|
|
|
2019-02-24 20:39:20 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
2010-12-22 14:50:13 +00:00
|
|
|
meta = {
|
|
|
|
description = "A 3D engine";
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://www.ogre3d.org/;
|
2012-04-06 09:07:23 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2010-12-22 14:50:13 +00:00
|
|
|
};
|
2012-04-06 09:07:23 +00:00
|
|
|
}
|