2013-03-27 17:00:22 -07:00
|
|
|
{ stdenv, fetchurl, SDL, boost, cmake, ffmpeg, gettext, glew
|
2014-05-19 12:29:56 -07:00
|
|
|
, ilmbase, libXi, libjpeg, libpng, libsamplerate, libsndfile
|
2013-03-27 17:00:22 -07:00
|
|
|
, libtiff, mesa, openal, opencolorio, openexr, openimageio, openjpeg, python
|
|
|
|
, zlib
|
2014-05-19 12:29:56 -07:00
|
|
|
, jackaudioSupport ? false, jackaudio
|
2013-03-27 17:00:22 -07:00
|
|
|
}:
|
2010-05-08 14:25:56 -07:00
|
|
|
|
2010-05-08 15:33:20 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2014-07-15 13:52:23 -07:00
|
|
|
name = "blender-2.71";
|
2007-12-01 10:05:26 -08:00
|
|
|
|
2008-01-30 09:20:48 -08:00
|
|
|
src = fetchurl {
|
2010-05-08 15:33:20 -07:00
|
|
|
url = "http://download.blender.org/source/${name}.tar.gz";
|
2014-07-15 13:52:23 -07:00
|
|
|
sha256 = "18pzcnrs4rcb6mf6aqr9xj2r05v8aay8daj31395ljfzw667zakx";
|
2007-12-01 10:05:26 -08:00
|
|
|
};
|
|
|
|
|
2014-05-19 12:29:56 -07:00
|
|
|
buildInputs =
|
2014-07-15 14:33:09 -07:00
|
|
|
[ SDL boost cmake ffmpeg gettext glew ilmbase libXi
|
2014-05-19 12:29:56 -07:00
|
|
|
libjpeg libpng libsamplerate libsndfile libtiff mesa openal
|
|
|
|
opencolorio openexr openimageio openjpeg python zlib
|
|
|
|
] ++ stdenv.lib.optional jackaudioSupport jackaudio;
|
|
|
|
|
2014-07-15 13:52:23 -07:00
|
|
|
postUnpack =
|
|
|
|
''
|
|
|
|
substituteInPlace */doc/manpage/blender.1.py --replace /usr/bin/python ${python}/bin/python3
|
|
|
|
'';
|
|
|
|
|
2014-05-19 12:29:56 -07:00
|
|
|
cmakeFlags =
|
|
|
|
[ "-DOPENEXR_INC=${openexr}/include/OpenEXR"
|
|
|
|
"-DWITH_OPENCOLLADA=OFF"
|
|
|
|
"-DWITH_CODEC_FFMPEG=ON"
|
|
|
|
"-DWITH_CODEC_SNDFILE=ON"
|
|
|
|
"-DWITH_INSTALL_PORTABLE=OFF"
|
|
|
|
"-DPYTHON_LIBRARY=python${python.majorVersion}m"
|
|
|
|
"-DPYTHON_LIBPATH=${python}/lib"
|
|
|
|
"-DPYTHON_INCLUDE_DIR=${python}/include/python${python.majorVersion}m"
|
|
|
|
"-DPYTHON_VERSION=${python.majorVersion}"
|
|
|
|
] ++ stdenv.lib.optional jackaudioSupport "-DWITH_JACK=ON";
|
2008-05-14 06:39:20 -07:00
|
|
|
|
2013-03-27 14:25:33 -07:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix}m";
|
2012-09-19 13:41:15 -07:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2007-12-01 10:05:26 -08:00
|
|
|
|
2014-02-18 13:11:39 -08:00
|
|
|
meta = with stdenv.lib; {
|
2010-05-08 14:25:56 -07:00
|
|
|
description = "3D Creation/Animation/Publishing System";
|
|
|
|
homepage = http://www.blender.org;
|
|
|
|
# They comment two licenses: GPLv2 and Blender License, but they
|
|
|
|
# say: "We've decided to cancel the BL offering for an indefinite period."
|
2014-02-18 13:11:39 -08:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2010-05-08 14:25:56 -07:00
|
|
|
};
|
2007-12-01 10:05:26 -08:00
|
|
|
}
|