Applying some patches from Debian to build it with fresh OpenCV

svn path=/nixpkgs/trunk/; revision=24292
This commit is contained in:
Michael Raskin 2010-10-14 15:44:58 +00:00
parent 798a6bb103
commit e958760535

View File

@ -25,6 +25,9 @@ rec {
preConfigure = fullDepEntry ''
cd src
sed -e /LDCONFIG/d -i libdecodeqr/Makefile.in
sed -e '/#include <cv.h>/a#include <ml.h>' -i libdecodeqr/imagereader.h
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${args.opencv}/include/opencv"
export NIX_LDFLAGS="$NIX_LDFLAGS -lcxcore"
'' ["doUnpack"];
postInstall = fullDepEntry ''
cp sample/simple/simpletest $out/bin/qrdecode