diff options
Diffstat (limited to 'recipes-extended/uvccapture')
-rw-r--r-- | recipes-extended/uvccapture/files/makefile.patch | 29 | ||||
-rw-r--r-- | recipes-extended/uvccapture/files/uvccapture_use_videodev2.patch | 24 | ||||
-rw-r--r-- | recipes-extended/uvccapture/uvccapture_0.5.bb | 15 |
3 files changed, 68 insertions, 0 deletions
diff --git a/recipes-extended/uvccapture/files/makefile.patch b/recipes-extended/uvccapture/files/makefile.patch new file mode 100644 index 0000000..4733154 --- /dev/null +++ b/recipes-extended/uvccapture/files/makefile.patch @@ -0,0 +1,29 @@ +Index: uvccapture-0.5/Makefile +=================================================================== +--- uvccapture-0.5.orig/Makefile 2011-08-18 14:02:17.757628553 -0500 ++++ uvccapture-0.5/Makefile 2011-08-18 14:10:09.627899608 -0500 +@@ -1,8 +1,8 @@ +-CC=gcc +-CPP=g++ ++#CC=gcc ++#CPP=g++ + APP_BINARY=uvccapture +-VERSION = 0.4 +-PREFIX=/usr/local/bin ++VERSION = 0.5 ++PREFIX=/usr/bin + + WARNINGS = -Wall + +@@ -20,8 +20,9 @@ + rm -f *.a *.o $(APP_BINARY) core *~ log errlog + + install: +- install $(APP_BINARY) $(PREFIX) ++ install -d $(DESTDIR)$(PREFIX) ++ install -m755 $(APP_BINARY) $(DESTDIR)$(PREFIX) + + # Applications: + uvccapture: $(OBJECTS) +- $(CC) $(OBJECTS) $(XPM_LIB) $(MATH_LIB) -ljpeg -o $(APP_BINARY) ++ $(CC) $(OBJECTS) $(XPM_LIB) $(MATH_LIB) -ljpeg $(LDFLAGS) -o $(APP_BINARY) diff --git a/recipes-extended/uvccapture/files/uvccapture_use_videodev2.patch b/recipes-extended/uvccapture/files/uvccapture_use_videodev2.patch new file mode 100644 index 0000000..b6e4617 --- /dev/null +++ b/recipes-extended/uvccapture/files/uvccapture_use_videodev2.patch @@ -0,0 +1,24 @@ +--- a/uvccapture.c 2008-08-03 22:02:38 +0000 ++++ b/uvccapture.c 2011-06-09 16:31:30 +0000 +@@ -31,7 +31,7 @@ + #include <unistd.h> + #include <jpeglib.h> + #include <time.h> +-#include <linux/videodev.h> ++#include <linux/videodev2.h> + + #include "v4l2uvc.h" + + +--- a/v4l2uvc.c 2008-03-28 19:13:23 +0000 ++++ b/v4l2uvc.c 2011-06-09 16:31:30 +0000 +@@ -28,7 +28,7 @@ + #include <errno.h> + #include <unistd.h> + #include <fcntl.h> +-#include <linux/videodev.h> ++#include <linux/videodev2.h> + #include <sys/mman.h> + #include <sys/ioctl.h> + #include "v4l2uvc.h" + diff --git a/recipes-extended/uvccapture/uvccapture_0.5.bb b/recipes-extended/uvccapture/uvccapture_0.5.bb new file mode 100644 index 0000000..57fe424 --- /dev/null +++ b/recipes-extended/uvccapture/uvccapture_0.5.bb @@ -0,0 +1,15 @@ +DESCRIPTION = "Command-line tool to capture webcam images" +DEPENDS = "jpeg virtual/kernel" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM="file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +PR = "r1" + +inherit autotools + +SRC_URI = "http://staticwave.ca/source/uvccapture/${PN}-${PV}.tar.bz2 \ + file://uvccapture_use_videodev2.patch \ + file://makefile.patch \ + " + +SRC_URI[md5sum] = "2ac901069a35b8954c11b11f6e036989" +SRC_URI[sha256sum] = "b7c262d2428f23a4c64feddd2c37c43fb39ce4c92a5a6ae0dddf28e3adc5b60e" |