Add bluez-alsa and libopenaptx for bluetooth audio
This commit is contained in:
parent
36099e4f45
commit
74c623d856
4 changed files with 57 additions and 5 deletions
31
packages/audio/bluez-alsa/package.mk
Normal file
31
packages/audio/bluez-alsa/package.mk
Normal file
|
@ -0,0 +1,31 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||
# Copyright (C) 2022-present Fewtarius
|
||||
|
||||
PKG_NAME="bluez-alsa"
|
||||
PKG_VERSION="4.0.0"
|
||||
PKG_SHA256="ce5e060e61669d61d44f5f9bad34a7b88378376e9d49d31482406a68127a6b29"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/Arkq/bluez-alsa"
|
||||
PKG_URL="https://github.com/Arkq/bluez-alsa/archive/refs/tags/v${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain alsa-lib bluez sbc dbus libopenaptx"
|
||||
PKG_LONGDESC="Bluetooth audio ALSA backend"
|
||||
PKG_TOOLCHAIN="autotools"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--enable-aptx \
|
||||
--with-libopenaptx \
|
||||
--enable-upower \
|
||||
--enable-a2dpconf \
|
||||
--enable-cli"
|
||||
|
||||
post_makeinstall_target() {
|
||||
# workaround until I figure out how to query this directory
|
||||
mkdir -p ${INSTALL}/usr/lib/alsa-lib
|
||||
cp -P ${PKG_BUILD}/.*/src/asound/.libs/*.so ${INSTALL}/usr/lib/alsa-lib/
|
||||
rm -rf ${INSTALL}/home
|
||||
# rm -rf ${INSTALL}/lib ${INSTALL}/var
|
||||
# rm -rf ${INSTALL}/usr/share/alsa/speaker-test
|
||||
# rm -rf ${INSTALL}/usr/share/sounds
|
||||
# rm -rf ${INSTALL}/usr/lib/systemd/system
|
||||
}
|
20
packages/audio/libopenaptx/package.mk
Normal file
20
packages/audio/libopenaptx/package.mk
Normal file
|
@ -0,0 +1,20 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||
# Copyright (C) 2022-present Fewtarius
|
||||
|
||||
PKG_NAME="libopenaptx"
|
||||
PKG_VERSION="0.2.1"
|
||||
PKG_SHA256="f13eac1ebfe31a563943cd47819eece1109960e10a1e85c111975bcfd37d5361"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/pali/libopenaptx"
|
||||
PKG_URL="https://github.com/pali/libopenaptx/releases/download/${PKG_VERSION}/libopenaptx-${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_LONGDESC="AptX bluetooth audio codec"
|
||||
PKG_TOOLCHAIN="make"
|
||||
|
||||
post_makeinstall_target() {
|
||||
cp -P -r ${INSTALL}/usr/local/lib/* ${SYSROOT_PREFIX}/usr/lib/
|
||||
cp -P -r ${INSTALL}/usr/local/include/* ${SYSROOT_PREFIX}/usr/include/
|
||||
rm -rf ${INSTALL}/usr/local/lib/pkgconfig
|
||||
}
|
|
@ -23,7 +23,7 @@ BLUEZ_CONFIG+=" --enable-monitor --enable-test"
|
|||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--disable-dependency-tracking \
|
||||
--disable-silent-rules \
|
||||
--disable-library \
|
||||
--enable-library \
|
||||
--enable-udev \
|
||||
--disable-cups \
|
||||
--disable-obex \
|
||||
|
@ -69,9 +69,10 @@ post_makeinstall_target() {
|
|||
# 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
|
||||
# libbluetooth requred for bluez-alsa
|
||||
# sed -i 's/-lbluetooth//g' ${PKG_BUILD}/lib/bluez.pc
|
||||
cp -P ${PKG_BUILD}/lib/bluez.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
||||
cp -P -r ${PKG_BUILD}/lib/bluetooth ${SYSROOT_PREFIX}/usr/include/
|
||||
}
|
||||
|
||||
post_install() {
|
||||
|
|
|
@ -6,6 +6,6 @@ PKG_VERSION=""
|
|||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.alsa-project.org/"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS_TARGET="toolchain alsa-lib alsa-utils"
|
||||
PKG_DEPENDS_TARGET="toolchain alsa-lib alsa-utils bluez-alsa"
|
||||
PKG_SECTION="virtual"
|
||||
PKG_LONGDESC="Matapackage to install all alsa components."
|
||||
PKG_LONGDESC="Metapackage to install all alsa components."
|
||||
|
|
Loading…
Reference in a new issue