mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Adding OGRE - object-oriented graphical engine
svn path=/nixpkgs/trunk/; revision=25240
This commit is contained in:
parent
a34fd23fc1
commit
22c42a26b6
3 changed files with 67 additions and 0 deletions
|
@ -384,6 +384,14 @@ let inherit (builtins) head tail trace; in
|
|||
echo '${toString (attrByPath ["propagatedBuildInputs"] [] args)}' >\$out/nix-support/propagated-build-inputs
|
||||
") ["minInit" "defEnsureDir"];
|
||||
|
||||
cmakeFlags = "";
|
||||
|
||||
doCmake = fullDepEntry (''
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -D CMAKE_INSTALL_PREFIX="$out" ${toString cmakeFlags} ..
|
||||
'') ["minInit" "addInputs" "doUnpack"];
|
||||
|
||||
/*debug = x:(trace x x);
|
||||
debugX = x:(trace (toXML x) x);*/
|
||||
|
||||
|
|
57
pkgs/development/libraries/ogre/default.nix
Normal file
57
pkgs/development/libraries/ogre/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
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;
|
||||
|
||||
/* doConfigure should be removed if not needed */
|
||||
phaseNames = ["doCmake" "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
|
||||
|
|
@ -3721,6 +3721,8 @@ let
|
|||
|
||||
ode = builderDefsPackage (import ../development/libraries/ode) {
|
||||
};
|
||||
|
||||
ogre = callPackage ../development/libraries/ogre {};
|
||||
|
||||
openal = callPackage ../development/libraries/openal { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue