summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2014-08-09 17:13:21 -0300
committerMichael Raskin <7c6f434c@mail.ru>2014-09-04 20:44:05 +0400
commit40b13e798b9bdeb614865f67f961af1b825c2325 (patch)
tree301a847eea0c2fdd3f517bd0e715a2f2807047fd /pkgs/applications/video
parent014f7ad100458bba6fc15184bb605851c0ca0181 (diff)
downloadnixpkgs-40b13e798b9bdeb614865f67f961af1b825c2325.tar
nixpkgs-40b13e798b9bdeb614865f67f961af1b825c2325.tar.gz
nixpkgs-40b13e798b9bdeb614865f67f961af1b825c2325.tar.bz2
nixpkgs-40b13e798b9bdeb614865f67f961af1b825c2325.tar.lz
nixpkgs-40b13e798b9bdeb614865f67f961af1b825c2325.tar.xz
nixpkgs-40b13e798b9bdeb614865f67f961af1b825c2325.tar.zst
nixpkgs-40b13e798b9bdeb614865f67f961af1b825c2325.zip
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
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/wxcam/default.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/video/wxcam/default.nix b/pkgs/applications/video/wxcam/default.nix
new file mode 100644
index 00000000000..1f66d9a589b
--- /dev/null
+++ b/pkgs/applications/video/wxcam/default.nix
@@ -0,0 +1,52 @@
+{ stdenv, fetchurl
+, pkgconfig
+, intltool
+, libX11, libXv, libSM
+, gtk, libglade
+, wxGTK
+, perlXMLParser
+, xvidcore
+, mjpegtools
+, alsaLib
+, libv4l
+, cimg
+}:
+
+stdenv.mkDerivation rec {
+
+  name = "wxcam-${version}";
+  version = "1.1";
+
+  src = fetchurl {
+    url = "http://downloads.sourceforge.net/project/wxcam/wxcam/${version}/${name}.tar.gz";
+    sha256 = "1765bvc65fpzn9ycnnj5hais9xkx9v0sm6a878d35x54bpanr859";
+  };
+
+  buildInputs = with stdenv.lib;
+  [ pkgconfig intltool libX11 libXv libSM gtk libglade wxGTK perlXMLParser xvidcore mjpegtools alsaLib libv4l cimg ];
+
+  NIX_CFLAGS_COMPILE="-I ${cimg}/include/cimg";
+
+  postUnpack = ''
+    sed -ie 's|/usr/share/|'"$out/share/"'|g' $sourceRoot/Makefile.in
+  '';
+
+  installPhase = ''
+    make install prefix="$out" wxcamdocdir="$out/share/doc/wxcam"
+  '';    
+  
+  meta = {
+    description = "An open-source, wxGTK-based webcam app for Linux"; 
+    longDescription = ''
+    wxCam is a webcam application for linux. It supports video recording
+    (avi uncompressed and Xvid formats), snapshot taking, and some special
+    commands for philips webcams, so you can also use it for astronomy purposes.
+    It supports both video4linux 1 and 2 drivers,
+    so it should work on a very large number of devices.
+    '';
+    homepage = http://wxcam.sourceforge.net/;
+    license = stdenv.lib.licenses.gpl3Plus;
+    maintainers = [ stdenv.lib.maintainers.AndersonTorres ];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}