2008-11-15 18:54:09 +01:00
|
|
|
args :
|
|
|
|
let
|
|
|
|
lib = args.lib;
|
|
|
|
fetchurl = args.fetchurl;
|
|
|
|
FullDepEntry = args.FullDepEntry;
|
|
|
|
|
|
|
|
version = lib.getAttr ["version"] "" args;
|
|
|
|
buildInputs = with args; [
|
|
|
|
libtiff libpng libjpeg pkgconfig
|
|
|
|
gtk glib
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.debian.org/debian/pool/main/o/opencv/opencv_0.9.7.orig.tar.gz;
|
|
|
|
sha256 = "14qnm59gn518gjxwjb9hm3ij0b1awlxa76qdvnn5ygxsx713lf2j";
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
|
|
|
phaseNames = ["doConfigure" "doMakeInstall" "postInstall"];
|
|
|
|
|
|
|
|
postInstall = FullDepEntry (''
|
|
|
|
ln -s $out/include/opencv/* $out/include
|
|
|
|
'') ["doMakeInstall" "minInit"];
|
|
|
|
|
2009-03-03 14:27:40 +01:00
|
|
|
name = "libcv-0.9.7";
|
2008-11-15 18:54:09 +01:00
|
|
|
meta = {
|
|
|
|
description = "libcv - computer vision library";
|
|
|
|
};
|
|
|
|
}
|