Author: raskin
Date: Thu Oct 14 15:44:58 2010
New Revision: 24292
URL: https://svn.nixos.org/websvn/nix/?rev=24292&sc=1

Log:
Applying some patches from Debian to build it with fresh OpenCV

Modified:
   nixpkgs/trunk/pkgs/tools/graphics/qrdecode/default.nix

Modified: nixpkgs/trunk/pkgs/tools/graphics/qrdecode/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/tools/graphics/qrdecode/default.nix      Thu Oct 14 
15:02:37 2010        (r24291)
+++ nixpkgs/trunk/pkgs/tools/graphics/qrdecode/default.nix      Thu Oct 14 
15:44:58 2010        (r24292)
@@ -25,6 +25,9 @@
   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 
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to