2012-04-06 13:07:23 +04:00
|
|
|
{ fetchurl, stdenv
|
|
|
|
, 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 17:50:13 +03:00
|
|
|
|
2012-04-06 13:07:23 +04:00
|
|
|
stdenv.mkDerivation {
|
2013-01-10 18:10:27 +04:00
|
|
|
name = "ogre-1.8.1";
|
2010-12-22 17:50:13 +03:00
|
|
|
|
2012-04-06 13:07:23 +04:00
|
|
|
src = fetchurl {
|
2013-01-10 18:10:27 +04:00
|
|
|
url = "mirror://sourceforge/ogre/1.8.1/ogre_src_v1-8-1.tar.bz2";
|
|
|
|
sha256 = "1avadx87sdfdk8165wlffnd5dzks694dcdnkg3ijap966k4qm46s";
|
2012-04-06 13:07:23 +04:00
|
|
|
};
|
2010-12-22 17:50:13 +03:00
|
|
|
|
2012-04-17 13:57:57 +04:00
|
|
|
cmakeFlags = [ "-DOGRE_INSTALL_SAMPLES=yes" ]
|
|
|
|
++ (map (x: "-DOGRE_BUILD_PLUGIN_${x}=on")
|
|
|
|
[ "BSP" "CG" "OCTREE" "PCZ" "PFX" ])
|
2012-04-06 13:07:23 +04:00
|
|
|
++ (map (x: "-DOGRE_BUILD_RENDERSYSTEM_${x}=on") [ "GL" ]);
|
2011-03-31 02:08:33 +04:00
|
|
|
|
2012-04-06 13:07:23 +04:00
|
|
|
enableParallelBuilding = true;
|
2010-12-22 17:50:13 +03:00
|
|
|
|
2012-04-06 13:07:23 +04: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 19:51:00 +04:00
|
|
|
|
2010-12-22 17:50:13 +03:00
|
|
|
meta = {
|
|
|
|
description = "A 3D engine";
|
2012-04-06 13:07:23 +04:00
|
|
|
homepage = http://www.ogre3d.org/;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2010-12-22 17:50:13 +03:00
|
|
|
};
|
2012-04-06 13:07:23 +04:00
|
|
|
}
|