mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
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 ''
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user