Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=6ca657537b7dd5f4d93fa76b4be6b68e4eca96b6

commit 6ca657537b7dd5f4d93fa76b4be6b68e4eca96b6
Author: DeX77 <de...@frugalware.org>
Date:   Sun Jan 19 12:19:38 2014 +0100

libunicap-0.9.12-2-x86_64

* relbump
* fix udev rules
+ added patch for linux/videodev.h header removal
+ added option asneeded

diff --git a/source/lib-extra/libunicap/FrugalBuild 
b/source/lib-extra/libunicap/FrugalBuild
index 687434d..fb49a0d 100644
--- a/source/lib-extra/libunicap/FrugalBuild
+++ b/source/lib-extra/libunicap/FrugalBuild
@@ -1,17 +1,26 @@
# Compiling Time: 0.14 SBU
# Maintainer: Elentir <elen...@frugalware.org>

+options+=('asneeded')
+
pkgname=libunicap
pkgver=0.9.12
-pkgrel=1
+pkgrel=2
pkgdesc="unicap provides a uniform API for all kinds of video capture devices"
url="http://unicap-imaging.org/";
-depends=('libraw1394>=2.0')
+depends=('libraw1394>=2.0' 'systemd>=208' 'v4l-utils')
makedepends=('perl-xml-parser' 'intltool')
groups=('lib-extra')
archs=('i686' 'x86_64')
up2date="Flasttar $url/download.htm"
-source=(http://unicap-imaging.org/downloads/$pkgname-$pkgver.tar.gz)
-sha1sums=('a4d3a484ecc63a6f7e080c67d54131f7058f2790')
+source=(http://unicap-imaging.org/downloads/$pkgname-$pkgver.tar.gz \
+       libunicap-0.9.12-videodev.patch)
+sha1sums=('a4d3a484ecc63a6f7e080c67d54131f7058f2790' \
+          '45d1783a445e58c273164e4f51503141cf4c6f75')
+
+build(){
+       Fsed SYSFS ATTR data/50-euvccam.rules
+       Fbuild
+}

# optimization OK
diff --git a/source/lib-extra/libunicap/libunicap-0.9.12-videodev.patch 
b/source/lib-extra/libunicap/libunicap-0.9.12-videodev.patch
new file mode 100644
index 0000000..51ea700
--- /dev/null
+++ b/source/lib-extra/libunicap/libunicap-0.9.12-videodev.patch
@@ -0,0 +1,25 @@
+Patch by Robert Scheck <rob...@fedoraproject.org> for libunicap >= 0.9.12, 
which switches
+after the removal of v4l1 from the Linux kernel to the libv4l1compat header of 
libv4l.
+
+--- libunicap-0.9.12/cpi/v4l/v4l.c                     2010-01-17 
08:49:29.000000000 +0100
++++ libunicap-0.9.12/cpi/v4l/v4l.c.videodev            2011-10-09 
02:50:26.000000000 +0200
+@@ -49,7 +49,7 @@
+ #endif
+ #include <debug.h>
+
+-#include <linux/videodev.h>
++#include <libv4l1-videodev.h>
+ #include <linux/videodev2.h> // for v4l2 checks
+
+ #include "v4l.h"
+--- libunicap-0.9.12/cpi/v4l2cpi/uvcvideo.h            2010-01-17 
08:49:29.000000000 +0100
++++ libunicap-0.9.12/cpi/v4l2cpi/uvcvideo.h.videodev   2011-10-09 
02:50:09.000000000 +0200
+@@ -2,7 +2,7 @@
+ #define _USB_VIDEO_H_
+
+ #include <linux/kernel.h>
+-#include <linux/videodev.h>
++#include <libv4l1-videodev.h>
+
+ #include "uvc_compat.h"
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to