3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/ogre/default.nix
Lluís Batlle i Rossell 627812ffbb Adding Rigs of Rods.
Basically it builds, but I still don't know how to run it. I imagine the
installPhase is still too poor, but it's better than nothing.

I also added two mygui versions. That stable, and that required by Rigs of Roads (svn).

svn path=/nixpkgs/trunk/; revision=26618
2011-03-30 22:08:33 +00:00

60 lines
1.6 KiB
Nix

x@{builderDefsPackage
, mesa, cmake, automake, libtool, autoconf
, freetype, freeimage, zziplib, randrproto, libXrandr
, libXaw, freeglut, libXt, libpng, boost, ois
, xproto, libX11, libXmu, libSM, pkgconfig
, libXxf86vm, xf86vidmodeproto, libICE
, renderproto, libXrender
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
buildInputs = map (n: builtins.getAttr n x)
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
sourceInfo = rec {
baseName="ogre";
majorVersion="1";
minorVersion="7";
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;
inherit buildInputs;
doMyBuild = a.fullDepEntry ("make -j4") ["doCmake"];
/* doConfigure should be removed if not needed */
phaseNames = ["doCmake" "doMyBuild" "doMakeInstall"];
meta = {
description = "A 3D engine";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
license = "MIT";
};
passthru = {
updateInfo = {
downloadPage = "http://www.ogre3d.org/download/source";
};
};
}) x