Ogre: Rewrite using `stdenv'; enable various plug-ins.
svn path=/nixpkgs/trunk/; revision=33641
This commit is contained in:
parent
725745c5b4
commit
292e9d1029
@ -1,62 +1,41 @@
|
|||||||
x@{builderDefsPackage
|
{ fetchurl, stdenv
|
||||||
, mesa, cmake, automake, libtool, autoconf
|
, cmake, mesa
|
||||||
, freetype, freeimage, zziplib, randrproto, libXrandr
|
, freetype, freeimage, zziplib, randrproto, libXrandr
|
||||||
, libXaw, freeglut, libXt, libpng, boost, ois
|
, libXaw, freeglut, libXt, libpng, boost, ois
|
||||||
, xproto, libX11, libXmu, libSM, pkgconfig
|
, xproto, libX11, libXmu, libSM, pkgconfig
|
||||||
, libXxf86vm, xf86vidmodeproto, libICE
|
, libXxf86vm, xf86vidmodeproto, libICE
|
||||||
, renderproto, libXrender
|
, renderproto, libXrender
|
||||||
, nvidia_cg_toolkit
|
, nvidia_cg_toolkit }:
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "ogre-1.7.2";
|
||||||
sourceInfo = rec {
|
|
||||||
baseName="ogre";
|
src = fetchurl {
|
||||||
majorVersion="1";
|
url = "mirror://sourceforge/ogre/1.7/ogre_src_v1-7-2.tar.bz2";
|
||||||
minorVersion="7";
|
sha256 = "10q8jx842s4aws9py6q67rb4dh5vli5vvg54jl8manjb4f388jh5";
|
||||||
patchLevel="2";
|
|
||||||
version="${majorVersion}.${minorVersion}.${patchLevel}";
|
|
||||||
name="${baseName}-${version}";
|
|
||||||
project="${baseName}";
|
|
||||||
url="mirror://sourceforge/project/${project}/${baseName}/${majorVersion}.${minorVersion}/${baseName}_src_v${majorVersion}-${minorVersion}-${patchLevel}.tar.bz2";
|
|
||||||
hash="10q8jx842s4aws9py6q67rb4dh5vli5vvg54jl8manjb4f388jh5";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
cmakeFlags =
|
||||||
inherit buildInputs;
|
(map (x: "-DOGRE_BUILD_PLUGIN_${x}=on") [ "BSP" "CG" "OCTREE" "PCZ" "PFX" ])
|
||||||
|
++ (map (x: "-DOGRE_BUILD_RENDERSYSTEM_${x}=on") [ "GL" ]);
|
||||||
|
|
||||||
doMyBuild = a.fullDepEntry ("make -j4") ["doCmake"];
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
buildInputs =
|
||||||
phaseNames = ["doCmake" "doMyBuild" "doMakeInstall"];
|
[ cmake mesa
|
||||||
|
freetype freeimage zziplib randrproto libXrandr
|
||||||
cmakeSkipRpath = false;
|
libXaw freeglut libXt libpng boost ois
|
||||||
|
xproto libX11 libXmu libSM pkgconfig
|
||||||
|
libXxf86vm xf86vidmodeproto libICE
|
||||||
|
renderproto libXrender
|
||||||
|
nvidia_cg_toolkit
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A 3D engine";
|
description = "A 3D engine";
|
||||||
maintainers = with a.lib.maintainers;
|
homepage = http://www.ogre3d.org/;
|
||||||
[
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
||||||
raskin
|
platforms = stdenv.lib.platforms.linux;
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = "MIT";
|
license = "MIT";
|
||||||
};
|
};
|
||||||
passthru = {
|
}
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://www.ogre3d.org/download/source";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user