blob: aec41edf7a5de6ae1992baf0a4e1c98b54d80c6b [file] [log] [blame]
Brad Bishop996bc452019-12-02 13:05:15 -05001DESCRIPTION = "Bluetooth library with attribute support"
2SECTION = "libs/network"
3
Andrew Geissler9aee5002022-03-30 16:27:02 +00004LICENSE = "GPL-2.0-or-later | BSD-3-Clause"
Patrick Williamsb542dec2023-06-09 01:26:37 -05005LIC_FILES_CHKSUM = "file://CMakeLists.txt;beginline=1;endline=6;md5=a87ee154f005a6f035b8b34ac2191f3b"
Brad Bishop996bc452019-12-02 13:05:15 -05006
7DEPENDS = "bluez5 glib-2.0"
8DEPENDS += "glib-2.0-native"
9
10PV = "0.2+git${SRCPV}"
11
Andrew Geissler595f6302022-01-24 19:11:47 +000012SRC_URI = "git://github.com/labapart/gattlib.git;branch=master;protocol=https \
Brad Bishope42b3e32020-01-15 22:08:42 -050013 file://dbus-avoid-strange-chars-from-the-build-dir.patch \
Brad Bishope42b3e32020-01-15 22:08:42 -050014 "
Brad Bishop996bc452019-12-02 13:05:15 -050015
16SRCBRANCH = "master"
Patrick Williamsb542dec2023-06-09 01:26:37 -050017SRCREV = "33a8a275928b186381bb0aea0f9778e330e57ec3"
Brad Bishop996bc452019-12-02 13:05:15 -050018
19S = "${WORKDIR}/git"
20
21PACKAGECONFIG[examples] = "-DGATTLIB_BUILD_EXAMPLES=ON,-DGATTLIB_BUILD_EXAMPLES=OFF"
22
23# Set this to force use of DBus API if Bluez version is older than 5.42
24PACKAGECONFIG[force-dbus] = "-DGATTLIB_FORCE_DBUS=TRUE,-DGATTLIB_FORCE_DBUS=FALSE"
25
Andrew Geissler595f6302022-01-24 19:11:47 +000026EXTRA_OECMAKE += "-DGATTLIB_PYTHON_INTERFACE=OFF"
Brad Bishop996bc452019-12-02 13:05:15 -050027EXTRA_OECMAKE += "-DGATTLIB_BUILD_DOCS=OFF"
28
29inherit pkgconfig cmake
30
Patrick Williamsb542dec2023-06-09 01:26:37 -050031do_compile:append() {
32 for f in org-bluez-gattdescriptor1.c org-bluez-battery1.c org-bluez-adaptater1.c \
33 org-bluez-device1.c org-bluez-gattservice1.c org-bluez-gattcharacteristic1.c; do
34 sed -i -e 's|${B}/dbus/||g' ${B}/dbus/$f
35 done
36}
37
Patrick Williams213cb262021-08-07 19:21:33 -050038FILES:${PN} = "${libdir}/*"
Patrick Williams93c203f2021-10-06 16:15:23 -050039FILES:${PN}-dev = "${includedir}/* ${libdir}/pkgconfig"