From 97abdd38a5fffaa87062bb6d73735e4e11135556 Mon Sep 17 00:00:00 2001 From: LluĂ­s Batlle i Rossell Date: Tue, 8 May 2012 09:50:58 +0000 Subject: Adding the Allied Technologies libdc1394 variant and the cc1394 viewer. svn path=/nixpkgs/trunk/; revision=34013 --- pkgs/applications/video/cc1394/default.nix | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/applications/video/cc1394/default.nix (limited to 'pkgs/applications/video') diff --git a/pkgs/applications/video/cc1394/default.nix b/pkgs/applications/video/cc1394/default.nix new file mode 100644 index 000000000000..df131f0e4852 --- /dev/null +++ b/pkgs/applications/video/cc1394/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchurl, libraw1394, libdc1394avt, qt4, SDL }: + +stdenv.mkDerivation rec { + name = "cc1394-3.0"; + + src = fetchurl { + url = http://www.alliedvisiontec.com/fileadmin/content/PDF/Software/AVT_software/zip_files/AVTFire4Linux3v0.src.tar; + sha256 = "13fz3apxcv2rkb34hxd48lbhss6vagp9h96f55148l4mlf5iyyfv"; + }; + + unpackPhase = '' + tar xf $src + BIGTAR=`echo *` + tar xf */cc1394*.tar.gz + rm -R $BIGTAR + cd cc* + ''; + + NIX_LDFLAGS = "-lX11"; + + enableParalellBuilding = true; + + preConfigure = '' + sed -i -e s,/usr,$out, cc1394.pro + qmake PREFIX=$out + ''; + + buildInputs = [ libraw1394 libdc1394avt qt4 SDL ]; + + meta = { + homepage = http://www.alliedvisiontec.com/us/products/software/linux/avt-fire4linux.html; + description = "AVT Viewer application for AVT cameras"; + license = "BSD"; + maintainers = [ stdenv.lib.maintainers.viric ]; + platforms = stdenv.lib.platforms.linux; + }; +} -- cgit 1.4.1