mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
ogre: package old version 1.9.1 for mygui, rigsofrods, and stuntrally
This commit is contained in:
parent
968fc0bc0b
commit
a1c21efdad
46
pkgs/development/libraries/ogre/1.9.x.nix
Normal file
46
pkgs/development/libraries/ogre/1.9.x.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{ fetchFromGitHub, stdenv, lib
|
||||
, cmake, mesa
|
||||
, freetype, freeimage, zziplib, randrproto, libXrandr
|
||||
, libXaw, freeglut, libXt, libpng, boost, ois
|
||||
, xproto, libX11, libXmu, libSM, pkgconfig
|
||||
, libXxf86vm, xf86vidmodeproto, libICE
|
||||
, renderproto, libXrender
|
||||
, withNvidiaCg ? false, nvidia_cg_toolkit
|
||||
, withSamples ? false }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ogre";
|
||||
version = "1.9.1";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OGRECave";
|
||||
repo = "ogre";
|
||||
rev = "v${version}";
|
||||
sha256 = "11lfgzqaps3728dswrq3cbwk7aicigyz08q4hfyy6ikc6m35r4wg";
|
||||
};
|
||||
|
||||
cmakeFlags = [ "-DOGRE_BUILD_SAMPLES=${toString withSamples}" ]
|
||||
++ map (x: "-DOGRE_BUILD_PLUGIN_${x}=on")
|
||||
([ "BSP" "OCTREE" "PCZ" "PFX" ] ++ lib.optional withNvidiaCg "CG")
|
||||
++ map (x: "-DOGRE_BUILD_RENDERSYSTEM_${x}=on") [ "GL" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs =
|
||||
[ cmake mesa
|
||||
freetype freeimage zziplib randrproto libXrandr
|
||||
libXaw freeglut libXt libpng boost ois
|
||||
xproto libX11 libXmu libSM pkgconfig
|
||||
libXxf86vm xf86vidmodeproto libICE
|
||||
renderproto libXrender
|
||||
] ++ lib.optional withNvidiaCg nvidia_cg_toolkit;
|
||||
|
||||
meta = {
|
||||
description = "A 3D engine";
|
||||
homepage = http://www.ogre3d.org/;
|
||||
maintainers = [ stdenv.lib.maintainers.raskin ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
};
|
||||
}
|
@ -10195,7 +10195,9 @@ with pkgs;
|
||||
|
||||
mygpoclient = pythonPackages.mygpoclient;
|
||||
|
||||
mygui = callPackage ../development/libraries/mygui {};
|
||||
mygui = callPackage ../development/libraries/mygui {
|
||||
ogre = ogre1_9;
|
||||
};
|
||||
|
||||
mysocketw = callPackage ../development/libraries/mysocketw { };
|
||||
|
||||
@ -10270,6 +10272,7 @@ with pkgs;
|
||||
ode = callPackage ../development/libraries/ode { };
|
||||
|
||||
ogre = callPackage ../development/libraries/ogre {};
|
||||
ogre1_9 = callPackage ../development/libraries/ogre/1.9.x.nix {};
|
||||
|
||||
ogrepaged = callPackage ../development/libraries/ogrepaged { };
|
||||
|
||||
@ -18370,6 +18373,7 @@ with pkgs;
|
||||
|
||||
rigsofrods = callPackage ../games/rigsofrods {
|
||||
angelscript = angelscript_2_22;
|
||||
ogre = ogre1_9;
|
||||
mygui = mygui.override {
|
||||
withOgre = true;
|
||||
};
|
||||
@ -18464,6 +18468,7 @@ with pkgs;
|
||||
};
|
||||
|
||||
stuntrally = callPackage ../games/stuntrally {
|
||||
ogre = ogre1_9;
|
||||
mygui = mygui.override {
|
||||
withOgre = true;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user