Add LDAC and AAC codecs
This commit is contained in:
parent
ce61514d33
commit
c6754f5025
3 changed files with 44 additions and 6 deletions
|
@ -9,7 +9,7 @@ PKG_SHA256="ce5e060e61669d61d44f5f9bad34a7b88378376e9d49d31482406a68127a6b29"
|
||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="https://github.com/Arkq/bluez-alsa"
|
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_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_DEPENDS_TARGET="toolchain alsa-lib bluez sbc dbus libopenaptx fdk-aac libldac"
|
||||||
PKG_LONGDESC="Bluetooth audio ALSA backend"
|
PKG_LONGDESC="Bluetooth audio ALSA backend"
|
||||||
PKG_TOOLCHAIN="autotools"
|
PKG_TOOLCHAIN="autotools"
|
||||||
|
|
||||||
|
@ -20,6 +20,8 @@ fi
|
||||||
PKG_CONFIGURE_OPTS_TARGET="${PKG_BLUEALSA_DEBUG} \
|
PKG_CONFIGURE_OPTS_TARGET="${PKG_BLUEALSA_DEBUG} \
|
||||||
--enable-aptx \
|
--enable-aptx \
|
||||||
--with-libopenaptx \
|
--with-libopenaptx \
|
||||||
|
--enable-aac \
|
||||||
|
--enable-ldac \
|
||||||
--enable-upower \
|
--enable-upower \
|
||||||
--enable-a2dpconf \
|
--enable-a2dpconf \
|
||||||
--enable-cli \
|
--enable-cli \
|
||||||
|
@ -31,12 +33,8 @@ mkdir -p ${INSTALL}/usr/lib/alsa-lib
|
||||||
cp -P ${PKG_BUILD}/.*/src/asound/.libs/*.so ${INSTALL}/usr/lib/alsa-lib/
|
cp -P ${PKG_BUILD}/.*/src/asound/.libs/*.so ${INSTALL}/usr/lib/alsa-lib/
|
||||||
sed -i ${INSTALL}/etc/dbus-1/system.d/bluealsa.conf -e "s|audio|root|g"
|
sed -i ${INSTALL}/etc/dbus-1/system.d/bluealsa.conf -e "s|audio|root|g"
|
||||||
sed -i ${INSTALL}/usr/lib/systemd/system/bluealsa.service \
|
sed -i ${INSTALL}/usr/lib/systemd/system/bluealsa.service \
|
||||||
-e "s|ExecStart=.*|ExecStart=/usr/bin/bluealsa -p a2dp-source -p a2dp-sink -c aptx|g"
|
-e "s|ExecStart=.*|ExecStart=/usr/bin/bluealsa -p a2dp-source -p a2dp-sink -c aptx -c aac|g"
|
||||||
rm -rf ${INSTALL}/home
|
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
22
packages/audio/fdk-aac/package.mk
Normal file
22
packages/audio/fdk-aac/package.mk
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# 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="fdk-aac"
|
||||||
|
PKG_VERSION="2.0.2"
|
||||||
|
PKG_SHA256="7812b4f0cf66acda0d0fe4302545339517e702af7674dd04e5fe22a5ade16a90"
|
||||||
|
PKG_LICENSE="Apache2"
|
||||||
|
PKG_SITE="https://github.com/mstorsjo/fdk-aac"
|
||||||
|
PKG_URL="https://github.com/mstorsjo/fdk-aac/archive/refs/tags/v${PKG_VERSION}.tar.gz"
|
||||||
|
PKG_DEPENDS_TARGET="toolchain"
|
||||||
|
PKG_LONGDESC="AAC bluetooth audio codec"
|
||||||
|
PKG_TOOLCHAIN="autotools"
|
||||||
|
|
||||||
|
#PKG_CONFIGURE_OPTS_TARGET=""
|
||||||
|
|
||||||
|
post_makeinstall_target() {
|
||||||
|
cp -P -r ${INSTALL}/usr/lib/* ${SYSROOT_PREFIX}/usr/lib/
|
||||||
|
cp -P -r ${INSTALL}/usr/include/* ${SYSROOT_PREFIX}/usr/include/
|
||||||
|
rm -rf ${INSTALL}/usr/lib/pkgconfig
|
||||||
|
}
|
18
packages/audio/libldac/package.mk
Normal file
18
packages/audio/libldac/package.mk
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
# Copyright (C) 2020-present Fewtarius
|
||||||
|
|
||||||
|
PKG_NAME="libldac"
|
||||||
|
PKG_VERSION="fbffba45d15d959da6ee04eafe14c0d4721f6030"
|
||||||
|
PKG_LICENSE="Apache2"
|
||||||
|
PKG_SITE="https://github.com/EHfive/ldacBT"
|
||||||
|
PKG_URL="${PKG_SITE}.git"
|
||||||
|
PKG_DEPENDS_TARGET="toolchain"
|
||||||
|
PKG_LONGDESC="LDAC bluetooth audio codec"
|
||||||
|
PKG_TOOLCHAIN="cmake-make"
|
||||||
|
GET_HANDLER_SUPPORT="git"
|
||||||
|
|
||||||
|
post_makeinstall_target() {
|
||||||
|
cp -P -r ${INSTALL}/usr/lib/* ${SYSROOT_PREFIX}/usr/lib/
|
||||||
|
cp -P -r ${INSTALL}/usr/include/* ${SYSROOT_PREFIX}/usr/include/
|
||||||
|
rm -rf ${INSTALL}/usr/lib/pkgconfig
|
||||||
|
}
|
Loading…
Reference in a new issue