2014-11-03 12:50:31 +00:00
|
|
|
{ fetchhg, stdenv
|
2012-04-06 10:07:23 +01:00
|
|
|
, cmake, mesa
|
|
|
|
, freetype, freeimage, zziplib, randrproto, libXrandr
|
|
|
|
, libXaw, freeglut, libXt, libpng, boost, ois
|
|
|
|
, xproto, libX11, libXmu, libSM, pkgconfig
|
|
|
|
, libXxf86vm, xf86vidmodeproto, libICE
|
|
|
|
, renderproto, libXrender
|
|
|
|
, nvidia_cg_toolkit }:
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2012-04-06 10:07:23 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-11-03 12:50:31 +00:00
|
|
|
name = "ogre-1.9.0";
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2014-11-03 12:50:31 +00:00
|
|
|
src = fetchhg {
|
|
|
|
url = "https://bitbucket.org/sinbad/ogre/src/";
|
|
|
|
rev = "v1-9-0";
|
|
|
|
sha256 = "06hnf4c2kpycm3mglwdyywvj931k8ym808c15xighpyd8h9j4xdi";
|
2012-04-06 10:07:23 +01:00
|
|
|
};
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2012-04-17 10:57:57 +01:00
|
|
|
cmakeFlags = [ "-DOGRE_INSTALL_SAMPLES=yes" ]
|
|
|
|
++ (map (x: "-DOGRE_BUILD_PLUGIN_${x}=on")
|
|
|
|
[ "BSP" "CG" "OCTREE" "PCZ" "PFX" ])
|
2012-04-06 10:07:23 +01:00
|
|
|
++ (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 =
|
|
|
|
[ cmake mesa
|
|
|
|
freetype freeimage zziplib randrproto libXrandr
|
|
|
|
libXaw freeglut libXt libpng boost ois
|
|
|
|
xproto libX11 libXmu libSM pkgconfig
|
|
|
|
libXxf86vm xf86vidmodeproto libICE
|
|
|
|
renderproto libXrender
|
|
|
|
nvidia_cg_toolkit
|
|
|
|
];
|
2011-04-09 16:51:00 +01:00
|
|
|
|
2010-12-22 14:50:13 +00:00
|
|
|
meta = {
|
|
|
|
description = "A 3D engine";
|
2012-04-06 10:07:23 +01:00
|
|
|
homepage = http://www.ogre3d.org/;
|
|
|
|
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
|
|
|
}
|