diff --git a/packages/audio/bluez-alsa/package.mk b/packages/audio/bluez-alsa/package.mk index 048b88560..0edf5b482 100644 --- a/packages/audio/bluez-alsa/package.mk +++ b/packages/audio/bluez-alsa/package.mk @@ -9,7 +9,7 @@ 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_DEPENDS_TARGET="toolchain alsa-lib bluez sbc dbus libopenaptx fdk-aac libldac" PKG_LONGDESC="Bluetooth audio ALSA backend" PKG_TOOLCHAIN="autotools" @@ -20,6 +20,8 @@ fi PKG_CONFIGURE_OPTS_TARGET="${PKG_BLUEALSA_DEBUG} \ --enable-aptx \ --with-libopenaptx \ + --enable-aac \ + --enable-ldac \ --enable-upower \ --enable-a2dpconf \ --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/ sed -i ${INSTALL}/etc/dbus-1/system.d/bluealsa.conf -e "s|audio|root|g" 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}/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() { diff --git a/packages/audio/fdk-aac/package.mk b/packages/audio/fdk-aac/package.mk new file mode 100644 index 000000000..509f2dd1c --- /dev/null +++ b/packages/audio/fdk-aac/package.mk @@ -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 +} diff --git a/packages/audio/libldac/package.mk b/packages/audio/libldac/package.mk new file mode 100644 index 000000000..7627d71f5 --- /dev/null +++ b/packages/audio/libldac/package.mk @@ -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 +}