summaryrefslogtreecommitdiff
path: root/packages/avetanabt/avetanabt_cvs.bb
diff options
context:
space:
mode:
authorMustafa Yuecel <yuecelm@ee.ethz.ch>2005-09-09 12:30:15 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-09-09 12:30:15 +0000
commit01497c7a1f9b0167c5ec03372049c335e04a420a (patch)
tree58b6691b1b5b2b6bb75e88608f0c9c4942070113 /packages/avetanabt/avetanabt_cvs.bb
parentc5a9846745ad511d74ac2deeca9d2e48754cfb33 (diff)
avetanabt_svn: rename to avetanabt_cvs because sources are in a cvs repository
Diffstat (limited to 'packages/avetanabt/avetanabt_cvs.bb')
-rw-r--r--packages/avetanabt/avetanabt_cvs.bb68
1 files changed, 68 insertions, 0 deletions
diff --git a/packages/avetanabt/avetanabt_cvs.bb b/packages/avetanabt/avetanabt_cvs.bb
new file mode 100644
index 0000000000..fa91771848
--- /dev/null
+++ b/packages/avetanabt/avetanabt_cvs.bb
@@ -0,0 +1,68 @@
+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 = "r2"
+
+SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/avetanabt;module=avetanabt \
+ file://avetanalocaldevice.patch;patch=1"
+
+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
+
+ # create own version.xml (add version information at runtime)
+ head -n 4 version.xml >> build/version.xml
+ echo " <build value=\"${PV}-${PR}\" date=\"${CVSDATE}\" time=\"${@time.strftime('%H:%M',time.gmtime())}\"/>" >> build/version.xml
+ tail -n 3 version.xml >> build/version.xml
+
+ # jar -> fastjar
+ cd build
+ ${STAGING_BINDIR}/fastjar -cf ../avetanaBT.jar de javax com version.xml
+ 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/
+
+}