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"