forked from ports/contrib
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
# Description: Bluetooth libraries and utilities
|
|
# URL: https://www.bluez.org/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: dbus glib
|
|
# Optional: alsa-lib cups docutils json-c libical
|
|
|
|
name=bluez
|
|
version=5.72
|
|
release=2
|
|
source=(https://mirrors.edge.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz
|
|
bluetoothd.service
|
|
bluez-5.72-obexd_without_systemd-1.patch)
|
|
|
|
build() {
|
|
cd bluez-$version
|
|
|
|
patch -Np1 -i $SRC/bluez-5.72-obexd_without_systemd-1.patch
|
|
|
|
prt-get isinst alsa-lib && PKGMK_BLUEZ+=' --enable-midi'
|
|
prt-get isinst cups && PKGMK_BLUEZ+=' --enable-cups' || PKGMK_BLUEZ+=' --disable-cups'
|
|
prt-get isinst docutils || PKGMK_BLUEZ+=' --disable-manpages'
|
|
prt-get isinst json-c && PKGMK_BLUEZ+=' --enable-mesh'
|
|
prt-get isinst libical && PKGMK_BLUEZ+=' --enable-obex' || PKGMK_BLUEZ+=' --disable-obex'
|
|
|
|
./configure $PKGMK_BLUEZ \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--libexecdir=/usr/lib \
|
|
--enable-{a2dp,experimental,hid2hci,library,tools} \
|
|
--disable-systemd
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
prt-get isinst libical && install -D -m 0755 tools/obexctl $PKG/usr/lib/bluetooth/obexctl
|
|
|
|
install -D -m 0644 src/main.conf $PKG/etc/bluetooth/main.conf
|
|
install -D -m 0755 $SRC/bluetoothd.service $PKG/etc/rc.d/bluetoothd
|
|
}
|