From 1ed1b4e67ff7d56d51a551a9c8f9721a652710ca Mon Sep 17 00:00:00 2001 From: Mustafa Yuecel Date: Thu, 18 Aug 2005 14:59:58 +0000 Subject: add avetanabt. now we can use bluetooth with java (JSR-82) --- packages/avetanabt/.mtn2git_empty | 0 packages/avetanabt/avetanabt_svn.bb | 61 +++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 packages/avetanabt/.mtn2git_empty create mode 100644 packages/avetanabt/avetanabt_svn.bb (limited to 'packages') diff --git a/packages/avetanabt/.mtn2git_empty b/packages/avetanabt/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/avetanabt/avetanabt_svn.bb b/packages/avetanabt/avetanabt_svn.bb new file mode 100644 index 0000000000..3f17a190e8 --- /dev/null +++ b/packages/avetanabt/avetanabt_svn.bb @@ -0,0 +1,61 @@ +DESCRIPTION = "avetanaBT: Bluetooth API implementation for Java (JSR-82)" +SECTION = "devel" +DEPENDS = "findutils-native jikes-native kaffeh-native fastjar-native bluez-libs classpath" +#RDEPENDS = "bluez-utils" +# Matthias Ringwald was helping me in the first phase. Thanks. +MAINTAINER = "Mustafa Yuecel " +LICENSE = "GPL" + +PV = "0.0cvs${CVSDATE}" +PR = "r0" + +SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/avetanabt;module=avetanabt" + +S = "${WORKDIR}/avetanabt" + +PACKAGES = "${PN}" +FILES_${PN} = "${libdir}/libavetanaBT.so ${datadir}/avetanabt/avetanaBT.jar" + +do_compile() { + + # doing nearly the same as in Makefile written... + + mkdir -p build + rm -fr build/* + + # javac -> jikes + ${STAGING_BINDIR}/find {de,javax,com} -iname *.java > file.list + ${STAGING_BINDIR}/jikes -verbose --bootclasspath ${STAGING_DIR}/${BUILD_SYS}/share/kaffeh/rt.jar -d build @file.list + + # jar -> fastjar + cd build + ${STAGING_BINDIR}/fastjar -cf ../avetanaBT.jar de javax com + cd .. + + # JNI generated header file - de_avetana_bluetooth_stack_BlueZ.h + # javah -> kaffeh + cd c + ${STAGING_BINDIR}/kaffeh -jni -classpath ../avetanaBT.jar:${STAGING_DIR}/${BUILD_SYS}/share/kaffeh/rt.jar de.avetana.bluetooth.stack.BlueZ + + # Native language (C) library - libavetanaBT.so + ${CXX} ${CXXFLAGS} -shared -lbluetooth -I${STAGING_INCDIR}/classpath BlueZ.cpp -o ../libavetanaBT.so ${LDFLAGS} + cd .. + +} + +do_stage() { + + install -d ${STAGING_DIR}/${BUILD_SYS}/share/avetanabt + install avetanaBT.jar ${STAGING_DIR}/${BUILD_SYS}/share/avetanabt/ + +} + +do_install() { + + install -d ${D}${libdir} + install -m 0755 libavetanaBT.so ${D}${libdir}/ + + install -d ${D}${datadir}/avetanabt + install avetanaBT.jar ${D}${datadir}/avetanabt/ + +} -- cgit v1.2.3