2016-04-11 14:48:01 +01: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 10:07:23 +01: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 14:48:01 +01: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 13:41:18 +01:00
|
|
|
pname = "ogre";
|
2019-07-02 05:24:16 +01:00
|
|
|
version = "1.12.1";
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2015-09-26 19:49:54 +01:00
|
|
|
src = fetchurl {
|
2019-02-24 20:39:20 +00:00
|
|
|
url = "https://github.com/OGRECave/ogre/archive/v${version}.zip";
|
2019-07-02 05:24:16 +01:00
|
|
|
sha256 = "1iv6k0dwdzg5nnzw2mcgcl663q4f7p2kj7nhs8afnsikrzxxgsi4";
|
2012-04-06 10:07:23 +01:00
|
|
|
};
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2016-04-11 14:48:01 +01: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 23:08:33 +01:00
|
|
|
|
2012-04-06 10:07:23 +01:00
|
|
|
enableParallelBuilding = true;
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2012-04-06 10:07:23 +01: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 10:07:23 +01: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 14:48:01 +01:00
|
|
|
] ++ lib.optional withNvidiaCg nvidia_cg_toolkit;
|
2011-04-09 16:51:00 +01: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 10:07:23 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2010-12-22 14:50:13 +00:00
|
|
|
};
|
2012-04-06 10:07:23 +01:00
|
|
|
}
|