summaryrefslogtreecommitdiff
path: root/multitech/recipes
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2011-08-30 17:04:45 -0500
committerJesse Gilles <jgilles@multitech.com>2011-08-30 17:04:45 -0500
commite9629e5fcaaeafc4a51ba2b0941055d92549b892 (patch)
treec82df8a9f01890cad462eb2d024b72993c7bdcec /multitech/recipes
parent00508710beeff0223dafc1f906ee3a779b8d3339 (diff)
add v4l4j 0.8.10
Diffstat (limited to 'multitech/recipes')
-rw-r--r--multitech/recipes/v4l4j/files/makefiles.patch41
-rw-r--r--multitech/recipes/v4l4j/v4l4j_0.8.10.bb35
2 files changed, 76 insertions, 0 deletions
diff --git a/multitech/recipes/v4l4j/files/makefiles.patch b/multitech/recipes/v4l4j/files/makefiles.patch
new file mode 100644
index 0000000..ffccaf6
--- /dev/null
+++ b/multitech/recipes/v4l4j/files/makefiles.patch
@@ -0,0 +1,41 @@
+Index: v4l4j-0.8.10/libvideo/Makefile
+===================================================================
+--- v4l4j-0.8.10.orig/libvideo/Makefile 2011-03-27 00:06:05.000000000 -0500
++++ v4l4j-0.8.10/libvideo/Makefile 2011-08-22 14:59:05.417274581 -0500
+@@ -71,12 +71,12 @@
+ qc-probe.o fps-param-probe.o v4l1-query.o v4l2-query.o v4l1-tuner.o \
+ v4l2-tuner.o palettes.o
+
+-CC := gcc
++#CC := gcc
+ CFLAGS := $(DBG) -DVER_MAJ=$(VERSION_MAJOR) -DVER_MIN=$(VERSION_MINOR) \
+ $(OPTIMISATION) -fPIC -I.
+
+-LD := gcc
+-LDFLAGS := -lm -lrt -shared
++LD := $(CC)
++LDFLAGS += -lm -lrt -shared
+
+ all: $(LIB).$(LIB_RELEASE)
+
+Index: v4l4j-0.8.10/src/Makefile
+===================================================================
+--- v4l4j-0.8.10.orig/src/Makefile 2010-11-15 05:10:14.000000000 -0600
++++ v4l4j-0.8.10/src/Makefile 2011-08-22 14:59:31.337596732 -0500
+@@ -41,13 +41,13 @@
+ v4l4j_DeviceInfo.o v4l4j_VideoDevice.o v4l4j_Control.o v4l4j_Tuner.o \
+ v4l4j_ResolutionInfo.o v4l4j_FrameInterval.o
+
+-CC := gcc
++#CC := gcc
+ INCLUDES := -I$(JDK_HOME)/include -I$(JDK_HOME)/include/linux/ \
+ -I$(LIBVIDEO_PATH) -I.
+ CFLAGS := $(INCLUDES) $(DBG) $(OPTIMISATION) -fPIC
+
+-LD := gcc
+-LDFLAGS := -shared -ljpeg -L$(LIBVIDEO_PATH) -l$(LIBVIDEO_NAME)
++LD := $(CC)
++LDFLAGS += -shared -ljpeg -L$(LIBVIDEO_PATH) -l$(LIBVIDEO_NAME)
+
+ all: $(LIB)
+
diff --git a/multitech/recipes/v4l4j/v4l4j_0.8.10.bb b/multitech/recipes/v4l4j/v4l4j_0.8.10.bb
new file mode 100644
index 0000000..5c3838a
--- /dev/null
+++ b/multitech/recipes/v4l4j/v4l4j_0.8.10.bb
@@ -0,0 +1,35 @@
+DESCRIPTION = "A java package to access the Capture interface of the Video4Linux API"
+DEPENDS = "jpeg icedtea6-native"
+PR = "r3"
+
+SRC_URI = "http://v4l4j.googlecode.com/files/v4l4j-0.8.10.tar.gz \
+ file://makefiles.patch"
+
+SRC_URI[md5sum] = "d6736aeaaf6979fa566f82119e45722b"
+SRC_URI[sha256sum] = "d4cb246850eb3967858df6d04c4a00732781a4eec5760a9020c74bed544cdd5b"
+
+export JDK_HOME = "${STAGING_LIBDIR_NATIVE}/jvm/icedtea6-native"
+STAGING_DATADIR_JAVA_NATIVE = ${STAGING_DATADIR_NATIVE}/java
+
+# run ant with icedtea6-native so things get compiled with java 1.6
+ANT = "${JDK_HOME}/bin/java \
+ -cp ${STAGING_DATADIR_JAVA_NATIVE}/ant.jar:${JDK_HOME}/lib/tools.jar \
+ org.apache.tools.ant.launch.Launcher"
+
+do_compile () {
+ ${ANT} clean all
+}
+
+do_install () {
+ install -d ${D}${libdir}
+ install libvideo/libvideo.so.0 ${D}${libdir}
+
+ install -d ${D}/usr/share/java
+ install v4l4j.jar ${D}/usr/share/java
+
+ install -d ${D}/usr/lib/jni
+ install libv4l4j.so ${D}/usr/lib/jni
+}
+
+FILES_${PN} = "/usr/share/java /usr/lib/jni"
+FILES_${PN}-dbg = "/usr/lib/jni/.debug"