mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
* Drop SRCPV similarly like oe-core did in: https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=843f82a246a535c353e08072f252d1dc78217872 * SRCPV is deferred now from PV to PKGV since: https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=a8e7b0f932b9ea69b3a218fca18041676c65aba0 Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
40 lines
1.2 KiB
BlitzBasic
40 lines
1.2 KiB
BlitzBasic
DESCRIPTION = "Bluetooth library with attribute support"
|
|
SECTION = "libs/network"
|
|
|
|
LICENSE = "GPL-2.0-or-later | BSD-3-Clause"
|
|
LIC_FILES_CHKSUM = "file://CMakeLists.txt;beginline=1;endline=6;md5=a87ee154f005a6f035b8b34ac2191f3b"
|
|
|
|
DEPENDS = "bluez5 glib-2.0"
|
|
DEPENDS += "glib-2.0-native"
|
|
|
|
PV = "0.2+git"
|
|
|
|
SRC_URI = "git://github.com/labapart/gattlib.git;branch=master;protocol=https \
|
|
file://dbus-avoid-strange-chars-from-the-build-dir.patch \
|
|
"
|
|
|
|
SRCBRANCH = "master"
|
|
SRCREV = "33a8a275928b186381bb0aea0f9778e330e57ec3"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
PACKAGECONFIG[examples] = "-DGATTLIB_BUILD_EXAMPLES=ON,-DGATTLIB_BUILD_EXAMPLES=OFF"
|
|
|
|
# Set this to force use of DBus API if Bluez version is older than 5.42
|
|
PACKAGECONFIG[force-dbus] = "-DGATTLIB_FORCE_DBUS=TRUE,-DGATTLIB_FORCE_DBUS=FALSE"
|
|
|
|
EXTRA_OECMAKE += "-DGATTLIB_PYTHON_INTERFACE=OFF"
|
|
EXTRA_OECMAKE += "-DGATTLIB_BUILD_DOCS=OFF"
|
|
|
|
inherit pkgconfig cmake
|
|
|
|
do_compile:append() {
|
|
for f in org-bluez-gattdescriptor1.c org-bluez-battery1.c org-bluez-adaptater1.c \
|
|
org-bluez-device1.c org-bluez-gattservice1.c org-bluez-gattcharacteristic1.c; do
|
|
sed -i -e 's|${B}/dbus/||g' ${B}/dbus/$f
|
|
done
|
|
}
|
|
|
|
FILES:${PN} = "${libdir}/*"
|
|
FILES:${PN}-dev = "${includedir}/* ${libdir}/pkgconfig"
|