blender: Enable ocean modifier

This commit is contained in:
Eelco Dolstra 2014-07-15 23:30:55 +02:00
parent 457e539048
commit 12fb52b08a

View file

@ -1,10 +1,12 @@
{ stdenv, fetchurl, SDL, boost, cmake, ffmpeg, gettext, glew
{ stdenv, lib, fetchurl, SDL, boost, cmake, ffmpeg, gettext, glew
, ilmbase, libXi, libjpeg, libpng, libsamplerate, libsndfile
, libtiff, mesa, openal, opencolorio, openexr, openimageio, openjpeg, python
, zlib
, zlib, fftw
, jackaudioSupport ? false, jackaudio
}:
with lib;
stdenv.mkDerivation rec {
name = "blender-2.71";
@ -16,8 +18,8 @@ stdenv.mkDerivation rec {
buildInputs =
[ SDL boost cmake ffmpeg gettext glew ilmbase libXi
libjpeg libpng libsamplerate libsndfile libtiff mesa openal
opencolorio openexr openimageio openjpeg python zlib
] ++ stdenv.lib.optional jackaudioSupport jackaudio;
opencolorio openexr openimageio openjpeg python zlib fftw
] ++ optional jackaudioSupport jackaudio;
postUnpack =
''
@ -27,6 +29,7 @@ stdenv.mkDerivation rec {
cmakeFlags =
[ "-DOPENEXR_INC=${openexr}/include/OpenEXR"
"-DWITH_OPENCOLLADA=OFF"
"-DWITH_MOD_OCEANSIM=ON"
"-DWITH_CODEC_FFMPEG=ON"
"-DWITH_CODEC_SNDFILE=ON"
"-DWITH_INSTALL_PORTABLE=OFF"
@ -34,7 +37,8 @@ stdenv.mkDerivation rec {
"-DPYTHON_LIBPATH=${python}/lib"
"-DPYTHON_INCLUDE_DIR=${python}/include/python${python.majorVersion}m"
"-DPYTHON_VERSION=${python.majorVersion}"
] ++ stdenv.lib.optional jackaudioSupport "-DWITH_JACK=ON";
]
++ optional jackaudioSupport "-DWITH_JACK=ON";
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix}m";