2016-04-11 13:48:01 +00:00
|
|
|
{ fetchurl, stdenv, lib
|
2012-04-06 09:07:23 +00:00
|
|
|
, cmake, mesa
|
|
|
|
, freetype, freeimage, zziplib, randrproto, libXrandr
|
|
|
|
, libXaw, freeglut, libXt, libpng, boost, ois
|
|
|
|
, xproto, libX11, libXmu, libSM, pkgconfig
|
|
|
|
, libXxf86vm, xf86vidmodeproto, libICE
|
|
|
|
, renderproto, libXrender
|
2016-04-11 13:48:01 +00:00
|
|
|
, withNvidiaCg ? false, nvidia_cg_toolkit
|
|
|
|
, withSamples ? false }:
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2012-04-06 09:07:23 +00:00
|
|
|
stdenv.mkDerivation {
|
2016-03-26 17:50:48 +00:00
|
|
|
name = "ogre-1.9-hg-20160322";
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2015-09-26 18:49:54 +00:00
|
|
|
src = fetchurl {
|
2016-03-26 17:50:48 +00:00
|
|
|
url = "https://bitbucket.org/sinbad/ogre/get/v1-9.tar.gz";
|
|
|
|
sha256 = "0w3argjy1biaxwa3c80zxxgll67wjp8czd83p87awlcvwzdk5mz9";
|
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 =
|
|
|
|
[ cmake mesa
|
|
|
|
freetype freeimage zziplib randrproto libXrandr
|
|
|
|
libXaw freeglut libXt libpng boost ois
|
|
|
|
xproto libX11 libXmu libSM pkgconfig
|
|
|
|
libXxf86vm xf86vidmodeproto libICE
|
|
|
|
renderproto 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";
|
2012-04-06 09:07:23 +00:00
|
|
|
homepage = http://www.ogre3d.org/;
|
|
|
|
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
|
|
|
}
|