distribution/packages/audio/bluez-alsa/package.mk

45 lines
1.4 KiB
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0-or-later
2022-11-12 22:56:38 +00:00
# Copyright (C) 2022-present Marek Moeckel (wansti@discarded-ideas.org)
# Copyright (C) 2022-present Fewtarius
PKG_NAME="bluez-alsa"
PKG_VERSION="f7e6ee5"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/Arkq/bluez-alsa"
2023-01-17 12:39:19 +00:00
PKG_URL="${PKG_SITE}.git"
2022-11-12 08:47:36 +00:00
PKG_DEPENDS_TARGET="toolchain alsa-lib bluez sbc dbus libopenaptx fdk-aac libldac"
PKG_LONGDESC="Bluetooth audio ALSA backend"
PKG_TOOLCHAIN="autotools"
2022-11-10 21:39:25 +00:00
if build_with_debug; then
PKG_BLUEALSA_DEBUG=--with-debug
fi
PKG_CONFIGURE_OPTS_TARGET="${PKG_BLUEALSA_DEBUG} \
--enable-aptx \
--with-libopenaptx \
2022-11-12 08:47:36 +00:00
--enable-aac \
--enable-ldac \
--enable-upower \
--enable-a2dpconf \
2022-11-10 21:39:25 +00:00
--enable-cli \
--enable-systemd"
post_makeinstall_target() {
mkdir -p ${INSTALL}/usr/share/services
mkdir -p ${INSTALL}/usr/lib/systemd/system
cp -P ${PKG_DIR}/default.d/*.conf ${INSTALL}/usr/share/services/
cp -P ${PKG_DIR}/system.d/*.service ${INSTALL}/usr/lib/systemd/system/
# 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/
sed -i ${INSTALL}/etc/dbus-1/system.d/bluealsa.conf -e "s|audio|root|g"
rm -rf ${INSTALL}/home
}
2022-11-10 21:39:25 +00:00
post_install() {
#enable_service bluealsa.service
2023-08-09 10:29:28 +00:00
#enable_service bluealsa-defaults.service
2022-11-10 21:39:25 +00:00
}