2012-02-19 13:15:50 +00:00
|
|
|
{ fetchsvn, stdenv, mesa, unzip, libXrandr, libX11, libXxf86vm }:
|
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
# Version 3843 is required for supertuxkart
|
|
|
|
name = "irrlicht-1.8-svn-3843";
|
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/trunk;
|
|
|
|
rev = 3843;
|
|
|
|
sha256 = "0v31l3k0fzy7isdsx2sh0baaixzlml1m7vgz6cd0015d9f5n99vl";
|
|
|
|
};
|
|
|
|
|
2012-02-26 21:32:29 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i /stdcall-alias/d source/Irrlicht/Makefile
|
|
|
|
'';
|
|
|
|
|
2012-02-19 13:15:50 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cd source/Irrlicht
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make sharedlib NDEBUG=1
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
sed -i s,/usr/local/lib,$out/lib, Makefile
|
|
|
|
mkdir -p $out/lib
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s libIrrlicht.so.1.8.0-SVN $out/lib/libIrrlicht.so.1.8
|
|
|
|
ln -s libIrrlicht.so.1.8.0-SVN $out/lib/libIrrlicht.so
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ unzip mesa libXrandr libX11 libXxf86vm ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://irrlicht.sourceforge.net/;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.zlib;
|
2012-02-19 13:15:50 +00:00
|
|
|
description = "Open source high performance realtime 3D engine written in C++";
|
|
|
|
};
|
|
|
|
}
|