CImg and WxCam - New Packages #3519
In this commit, I'm including two new softwares * CImg: A small, simple image toolkit library * WxCam: a small, simple, wxGTK-based webcam application
This commit is contained in:
committed by
Michael Raskin
parent
014f7ad100
commit
40b13e798b
@@ -0,0 +1,12 @@
|
||||
|
||||
source $stdenv/setup
|
||||
|
||||
unpackPhase
|
||||
cd $sourceRoot
|
||||
|
||||
install -dm 755 $out/include/cimg $out/share/doc/cimg/html $out/share/cimg/examples $out/share/cimg/plugins
|
||||
|
||||
install -m 644 CImg.h $out/include/cimg
|
||||
cp -dr --no-preserve=ownership html/* $out/share/doc/cimg/html/
|
||||
cp -dr --no-preserve=ownership examples/* $out/share/cimg/examples/
|
||||
cp -dr --no-preserve=ownership plugins/* $out/share/cimg/plugins/
|
||||
@@ -0,0 +1,27 @@
|
||||
{ stdenv, fetchurl
|
||||
, unzip
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "cimg-${version}";
|
||||
version = "1.5.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://downloads.sourceforge.net/project/cimg/CImg-${version}.zip";
|
||||
sha256 = "1xn20643gcbl76kvy9ajhwbyjjb73mg65q32ma8mdkwn1qhn7f7c";
|
||||
};
|
||||
|
||||
buildInputs = with stdenv.lib;
|
||||
[ unzip ];
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A small, open source, C++ toolkit for image processing";
|
||||
homepage = http://cimg.sourceforge.net/;
|
||||
license = licenses.cecill-c;
|
||||
maintainers = [ maintainers.AndersonTorres ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user