2012-04-06 09:07:23 +00: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 14:50:13 +00:00
|
|
|
|
2012-04-06 09:07:23 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ogre-1.7.2";
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2012-04-06 09:07:23 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/ogre/1.7/ogre_src_v1-7-2.tar.bz2";
|
|
|
|
sha256 = "10q8jx842s4aws9py6q67rb4dh5vli5vvg54jl8manjb4f388jh5";
|
|
|
|
};
|
2010-12-22 14:50:13 +00:00
|
|
|
|
2012-04-06 09:07:23 +00:00
|
|
|
cmakeFlags =
|
|
|
|
(map (x: "-DOGRE_BUILD_PLUGIN_${x}=on") [ "BSP" "CG" "OCTREE" "PCZ" "PFX" ])
|
|
|
|
++ (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
|
|
|
|
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;
|
2010-12-22 14:50:13 +00:00
|
|
|
license = "MIT";
|
|
|
|
};
|
2012-04-06 09:07:23 +00:00
|
|
|
}
|