summaryrefslogtreecommitdiff
path: root/recipes/icommand/icommand-bluez_0.7.bb
blob: 38b383d196e88f150e4b44e736035b47dc73d856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
DESCRIPTION = "iCommand bluez binding"
LICENSE = "LGPL"
SECTION = "libs"
HOMEPAGE = "http://sourceforge.net/projects/nxtcommand/"
AUTHOR = "Brian Bagnall <bbagnall at users.sourceforge.net>"

inherit java

SRC_URI = "\
    svn://nxtcommand.svn.sourceforge.net/svnroot/nxtcommand;module=icommand-projects/trunk/icommand-bluez;rev=134;proto=https \
    file://makefile.patch \
    "

DEPENDS = "bluez-libs"

S = "${WORKDIR}/icommand-projects/trunk/icommand-bluez/Release"

do_compile() {
  oe_runmake -f makefile clean
  oe_runmake -f makefile all \
    INCLUDES="-I${STAGING_INCDIR}/classpath " \
    LIBS="-lbluetooth"
}

do_install() {
  oe_libinstall -so libicmdbluez  ${D}${libdir_jni}
}

PACKAGES = "${PN}-jni ${PN}-jni-dbg"

RDEPENDS_${PN}-jni = "bluez-libs"

FILES_${PN}-jni = "${libdir_jni}/lib*.so"
FILES_${PN}-jni-dbg = "${libdir_jni}/.debug/lib*.so"