mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
update 5.62 (2021-10-17) to 5.63 (2022-01-06) Release of BlueZ 5.63 6th January 2022, 08:49 pm by Tedd Ho-Jeong An This release is mostly a bug fix release, with fixes to features such as GATT, SDP, Daemon, and emulator. It also adds a new MGMT Event for Device Found and Device Lost of Advertisement Monitor. New build options for sanitizers (lsan, asan, ubsan) are added and it may require installing additional libraries depending on the distros.
82 lines
2.7 KiB
Makefile
82 lines
2.7 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="bluez"
|
|
PKG_VERSION="5.63"
|
|
PKG_SHA256="9349e11e8160bb3d720835d271250d8a7424d3690f5289e6db6fe07cc66c6d76"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="http://www.bluez.org/"
|
|
PKG_URL="https://www.kernel.org/pub/linux/bluetooth/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
|
PKG_DEPENDS_TARGET="toolchain dbus glib readline systemd"
|
|
PKG_LONGDESC="Bluetooth Tools and System Daemons for Linux."
|
|
PKG_TOOLCHAIN="autotools"
|
|
PKG_BUILD_FLAGS="+lto"
|
|
|
|
if build_with_debug; then
|
|
BLUEZ_CONFIG="--enable-debug"
|
|
else
|
|
BLUEZ_CONFIG="--disable-debug"
|
|
fi
|
|
|
|
BLUEZ_CONFIG+=" --enable-monitor --enable-test"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-dependency-tracking \
|
|
--disable-silent-rules \
|
|
--disable-library \
|
|
--enable-udev \
|
|
--disable-cups \
|
|
--disable-obex \
|
|
--enable-client \
|
|
--enable-systemd \
|
|
--enable-tools --enable-deprecated \
|
|
--enable-datafiles \
|
|
--disable-manpages \
|
|
--disable-experimental \
|
|
--enable-sixaxis \
|
|
--with-gnu-ld \
|
|
${BLUEZ_CONFIG} \
|
|
storagedir=/storage/.cache/bluetooth"
|
|
|
|
pre_configure_target() {
|
|
# bluez fails to build in subdirs
|
|
cd ${PKG_BUILD}
|
|
rm -rf .${TARGET_NAME}
|
|
|
|
export LIBS="-lncurses"
|
|
}
|
|
|
|
post_configure_target() {
|
|
libtool_remove_rpath libtool
|
|
}
|
|
|
|
post_makeinstall_target() {
|
|
safe_remove ${INSTALL}/usr/lib/systemd
|
|
safe_remove ${INSTALL}/usr/bin/bluemoon
|
|
safe_remove ${INSTALL}/usr/bin/ciptool
|
|
safe_remove ${INSTALL}/usr/share/dbus-1
|
|
|
|
mkdir -p ${INSTALL}/etc/bluetooth
|
|
cp src/main.conf ${INSTALL}/etc/bluetooth
|
|
sed -i ${INSTALL}/etc/bluetooth/main.conf \
|
|
-e "s|^#\[Policy\]|\[Policy\]|g" \
|
|
-e "s|^#AutoEnable.*|AutoEnable=true|g" \
|
|
-e "s|^#JustWorksRepairing.*|JustWorksRepairing=always|g"
|
|
|
|
mkdir -p ${INSTALL}/usr/share/services
|
|
cp -P ${PKG_DIR}/default.d/*.conf ${INSTALL}/usr/share/services
|
|
|
|
# bluez looks in /etc/firmware/
|
|
ln -sf /usr/lib/firmware ${INSTALL}/etc/firmware
|
|
|
|
# pulseaudio checks for bluez via pkgconfig but lib is not actually needed
|
|
sed -i 's/-lbluetooth//g' ${PKG_BUILD}/lib/bluez.pc
|
|
cp -P ${PKG_BUILD}/lib/bluez.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
|
}
|
|
|
|
post_install() {
|
|
enable_service bluetooth-defaults.service
|
|
enable_service bluetooth.service
|
|
enable_service obex.service
|
|
}
|