summaryrefslogtreecommitdiff
path: root/recipes/icommand/icommand-bluez_0.7.bb
blob: 70d78f02d065f011570285d41896d755b8ad894f (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;patch=1 \
    "

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"