summaryrefslogtreecommitdiff
path: root/recipes-extended/uvccapture
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2014-11-04 11:51:34 -0600
committerJesse Gilles <jgilles@multitech.com>2014-11-04 11:51:34 -0600
commite243c30f04c18722dc65effe6d4f275a3f35de46 (patch)
tree807610ce8af0ead02681d6c3cc89d902ec941652 /recipes-extended/uvccapture
downloadmeta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.tar.gz
meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.tar.bz2
meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.zip
initial commit of mLinux layer
Diffstat (limited to 'recipes-extended/uvccapture')
-rw-r--r--recipes-extended/uvccapture/files/makefile.patch29
-rw-r--r--recipes-extended/uvccapture/files/uvccapture_use_videodev2.patch24
-rw-r--r--recipes-extended/uvccapture/uvccapture_0.5.bb15
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"