Applying some patches from Debian to build it with fresh OpenCV
svn path=/nixpkgs/trunk/; revision=24292
This commit is contained in:
parent
798a6bb103
commit
e958760535
@ -25,6 +25,9 @@ rec {
|
|||||||
preConfigure = fullDepEntry ''
|
preConfigure = fullDepEntry ''
|
||||||
cd src
|
cd src
|
||||||
sed -e /LDCONFIG/d -i libdecodeqr/Makefile.in
|
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"];
|
'' ["doUnpack"];
|
||||||
postInstall = fullDepEntry ''
|
postInstall = fullDepEntry ''
|
||||||
cp sample/simple/simpletest $out/bin/qrdecode
|
cp sample/simple/simpletest $out/bin/qrdecode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user