libraries/libunicap: Patch to build with kernel-headers > 2.6.37
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
5ecb002535
commit
6672028785
|
@ -6,3 +6,5 @@ It offers a high level of hardware abstraction while maintaining maximum
|
|||
performance. Zero copy capture of video buffers is possible for devices
|
||||
supporting it allowing fast video capture with low CPU usage even on
|
||||
low-speed architectures.
|
||||
|
||||
ffmpeg is an optional dependency.
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
diff -Naur libunicap-0.9.12.orig/cpi/v4l2cpi/uvcvideo.h libunicap-0.9.12/cpi/v4l2cpi/uvcvideo.h
|
||||
--- libunicap-0.9.12.orig/cpi/v4l2cpi/uvcvideo.h 2010-01-17 08:49:29.000000000 +0100
|
||||
+++ libunicap-0.9.12/cpi/v4l2cpi/uvcvideo.h 2011-06-02 07:41:09.642997395 +0200
|
||||
@@ -2,7 +2,6 @@
|
||||
#define _USB_VIDEO_H_
|
||||
|
||||
#include <linux/kernel.h>
|
||||
-#include <linux/videodev.h>
|
||||
|
||||
#include "uvc_compat.h"
|
||||
|
|
@ -52,6 +52,10 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# kernel in 13.37 doesn't have this header anymore
|
||||
# http://lists.fedoraproject.org/pipermail/devel/2011-February/148519.html
|
||||
patch -p1 < $CWD/disable-v4l.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
@ -61,6 +65,7 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--disable-static \
|
||||
--disable-v4l \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
|
|
Loading…
Reference in New Issue