Enable additional configuration options
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: bluez
|
name: bluez
|
||||||
description: Official Linux Bluetooth protocol stack
|
description: Official Linux Bluetooth protocol stack
|
||||||
version: "5.84"
|
version: "5.84"
|
||||||
revision: 2
|
revision: 3
|
||||||
url: https://www.bluez.org/
|
url: https://www.bluez.org/
|
||||||
license: GPL2-or-later,LGPL2.1-or-later
|
license: GPL2-or-later,LGPL2.1-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
@@ -9,6 +9,7 @@ type: source
|
|||||||
depends:
|
depends:
|
||||||
- alsa-lib
|
- alsa-lib
|
||||||
- dbus
|
- dbus
|
||||||
|
- ell
|
||||||
- glib
|
- glib
|
||||||
- glibc
|
- glibc
|
||||||
make_depends:
|
make_depends:
|
||||||
|
|||||||
@@ -2,10 +2,33 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
|
# The prepare function is executed in the root of the temp directory
|
||||||
|
# This function is used for putting downloaded files to the correct location or applying patches
|
||||||
|
prepare() {
|
||||||
|
cd "$BPM_SOURCE"
|
||||||
|
# Remove vendored ell to avoid conflicts
|
||||||
|
rm -r ell
|
||||||
|
}
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-library --disable-systemd
|
./configure --prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--with-dbusconfdir=/usr/share \
|
||||||
|
--with-udevdir=/usr/lib/udev \
|
||||||
|
--enable-btpclient \
|
||||||
|
--enable-midi \
|
||||||
|
--enable-sixaxis \
|
||||||
|
--enable-mesh \
|
||||||
|
--enable-hid2hci \
|
||||||
|
--enable-experimental \
|
||||||
|
--enable-datafiles \
|
||||||
|
--enable-external-ell \
|
||||||
|
--enable-library \
|
||||||
|
--enable-deprecated \
|
||||||
|
--disable-systemd
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
@@ -19,6 +42,11 @@ check() {
|
|||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
|
# Add missing tools
|
||||||
|
for _file in $(find tools/ -type f -perm -755 -exec basename {} \;); do
|
||||||
|
install -Dm755 "$BPM_SOURCE"/tools/$_file "$BPM_OUTPUT"/usr/bin/$_file
|
||||||
|
done
|
||||||
|
|
||||||
# Symlink bluetooth daemon
|
# Symlink bluetooth daemon
|
||||||
install -dm755 "$BPM_OUTPUT"/usr/sbin/
|
install -dm755 "$BPM_OUTPUT"/usr/sbin/
|
||||||
ln -sf ../libexec/bluetooth/bluetoothd "$BPM_OUTPUT"/usr/sbin/bluetoothd
|
ln -sf ../libexec/bluetooth/bluetoothd "$BPM_OUTPUT"/usr/sbin/bluetoothd
|
||||||
|
|||||||
Reference in New Issue
Block a user