diff options
author | Mustafa Yuecel <yuecelm@ee.ethz.ch> | 2005-08-18 21:06:43 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-18 21:06:43 +0000 |
commit | a239ca29123112ff2e323f7cf440da6bae0ea179 (patch) | |
tree | 6e5c6d8998391e7921edf1318956521af71f6333 /packages/avetanabt/avetanabt_svn.bb | |
parent | 7730b987f7ba6aa37d350102d52277032e94df9b (diff) | |
parent | 70746d76649dce56539d0040bcade781fa083cd6 (diff) |
merge of 3d35370562671c5b41618274011689a1f8e4cf9c
and a6b994aea0347efce0b57615068f903230d4f9d7
Diffstat (limited to 'packages/avetanabt/avetanabt_svn.bb')
-rw-r--r-- | packages/avetanabt/avetanabt_svn.bb | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/packages/avetanabt/avetanabt_svn.bb b/packages/avetanabt/avetanabt_svn.bb new file mode 100644 index 0000000000..08adcbbdfd --- /dev/null +++ b/packages/avetanabt/avetanabt_svn.bb @@ -0,0 +1,62 @@ +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 <mringwal@inf.ethz.ch> was helping me in the first phase. Thanks. +MAINTAINER = "Mustafa Yuecel <yuecelm@ee.ethz.ch>" +LICENSE = "GPL" +HOMEPAGE = "http://sourceforge.net/projects/avetanabt/" + +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/ + +} |