3
0
Fork 0
forked from mirrors/nixpkgs

vigra: fix install

svn path=/nixpkgs/trunk/; revision=32362
This commit is contained in:
Yury G. Kudryashov 2012-02-17 18:50:29 +00:00
parent e446dee4c3
commit c1c3317f65

View file

@ -11,10 +11,9 @@ stdenv.mkDerivation rec {
buildInputs = [ cmake fftw fftwSinglePrec libtiff libpng libjpeg python boost
numpy hdf5 ];
cmakeFlags = if (stdenv.system == "x86_64-linux") then
"-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC"
else
"";
preConfigure = "cmakeFlags+=\" -DVIGRANUMPY_INSTALL_DIR=$out/lib/${python.libPrefix}/site-packages\"";
cmakeFlags = stdenv.lib.optionals (stdenv.system == "x86_64-linux")
[ "-DCMAKE_CXX_FLAGS=-fPIC" "-DCMAKE_C_FLAGS=-fPIC" ];
meta = {
description = "Novel computer vision C++ library with customizable algorithms and data structures";