3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/blender/2.49.nix
Lluís Batlle i Rossell e47a2a9651 Adding blender 2.49, additional to the last 'alpha' 2.50 there already was in nixpkgs.
I put the alpha in lowPrio too; too many things don't work still, there.

svn path=/nixpkgs/trunk/; revision=21701
2010-05-10 10:20:51 +00:00

34 lines
1.1 KiB
Nix

{stdenv, fetchurl, cmake, mesa, gettext, python, libjpeg, libpng, zlib, openal, SDL
, openexr, libsamplerate, libXi, libtiff, ilmbase, freetype}:
stdenv.mkDerivation rec {
name = "blender-2.49b";
src = fetchurl {
url = "http://download.blender.org/source/${name}.tar.gz";
sha256 = "1214fp2asij7l1sci2swh46nfjgpm72gk2qafq70xc0hmas4sm93";
};
buildInputs = [ cmake mesa gettext python libjpeg libpng zlib openal SDL openexr libsamplerate
libXi libtiff ilmbase freetype ];
cmakeFlags = [ "-DFREETYPE_INC=${freetype}/include" "-DOPENEXR_INC=${openexr}/include/OpenEXR" "-DWITH_OPENCOLLADA=OFF"
"-DPYTHON_LIBPATH=${python}/lib" ];
NIX_LDFLAGS = "-lX11";
NIX_CFLAGS_COMPILE = "-iquote ${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix} -I${freetype}/include/freetype2";
installPhase = ''
ensureDir $out/bin
cp bin/* $out/bin
'';
meta = {
description = "3D Creation/Animation/Publishing System";
homepage = http://www.blender.org;
# They comment two licenses: GPLv2 and Blender License, but they
# say: "The BL has not been activated yet."
license = "GPLv2+";
};
}