summaryrefslogtreecommitdiff
path: root/recipes/bluez/bluez-libs.inc
blob: 1de371840a939b26eb04594d553ac43e06384572 (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
DESCRIPTION = "Linux Bluetooth Stack Userland Libaries."
SECTION = "libs"
PRIORITY = "optional"
HOMEPAGE = "http://www.bluez.org"
LICENSE = "GPL"
PR = "r0"

python () {
    distro = bb.data.getVar("DISTRO_NAME", d, 1)
    if distro == "Angstrom":
        raise bb.parse.SkipPackage("Angstrom doesn't support bluez3 anymore, only bluez4")
}

SRC_URI = "http://bluez.sourceforge.net/download/bluez-libs-${PV}.tar.gz"

inherit autotools pkgconfig

HEADERS = "bluetooth.h bnep.h cmtp.h hci.h hci_lib.h hidp.h l2cap.h rfcomm.h sco.h sdp.h sdp_lib.h"

do_stage() {
        oe_libinstall -a -so -C src libbluetooth ${STAGING_LIBDIR}

        install -d ${STAGING_INCDIR}/bluetooth/
        for f in ${HEADERS}
        do
		install -m 0644 include/$f ${STAGING_INCDIR}/bluetooth/$f
        done
}