1 |
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI=7
|
|
4 |
EAPI=8
|
5 |
5 |
inherit autotools bash-completion-r1 multilib-minimal systemd
|
6 |
6 |
|
7 |
7 |
DESCRIPTION="Bluetooth Audio ALSA Backend"
|
... | ... | |
17 |
17 |
|
18 |
18 |
LICENSE="MIT"
|
19 |
19 |
SLOT="0"
|
20 |
|
IUSE="aac aptx debug hcitop lame ldac man mpg123 ofono static-libs test unwind upower"
|
|
20 |
IUSE="aac aptx debug hcitop lame ldac man mpg123 ofono static-libs systemd test unwind upower"
|
21 |
21 |
RESTRICT="!test? ( test )"
|
22 |
22 |
|
23 |
23 |
# bluez-alsa does not directly link to upower but
|
24 |
24 |
# is using the upower interface via dbus calls.
|
25 |
25 |
RDEPEND="
|
26 |
|
>=dev-libs/glib-2.26[${MULTILIB_USEDEP}]
|
|
26 |
>=dev-libs/glib-2.32[${MULTILIB_USEDEP}]
|
27 |
27 |
>=media-libs/alsa-lib-1.1.2[${MULTILIB_USEDEP}]
|
28 |
28 |
>=media-libs/sbc-1.2[${MULTILIB_USEDEP}]
|
29 |
29 |
>=net-wireless/bluez-5.0[${MULTILIB_USEDEP}]
|
... | ... | |
39 |
39 |
)
|
40 |
40 |
ldac? ( >=media-libs/libldac-2.0.0 )
|
41 |
41 |
ofono? ( net-misc/ofono )
|
|
42 |
systemd? ( sys-apps/systemd )
|
42 |
43 |
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
43 |
44 |
upower? ( sys-power/upower )
|
44 |
45 |
"
|
45 |
46 |
DEPEND="${RDEPEND}
|
46 |
|
test? ( dev-libs/check )"
|
|
47 |
test? (
|
|
48 |
dev-libs/check
|
|
49 |
media-libs/libsndfile
|
|
50 |
)"
|
47 |
51 |
BDEPEND="
|
48 |
52 |
virtual/pkgconfig
|
49 |
53 |
man? ( virtual/pandoc )
|
... | ... | |
57 |
61 |
multilib_src_configure() {
|
58 |
62 |
local myeconfargs=(
|
59 |
63 |
--enable-cli
|
|
64 |
--enable-faststream
|
60 |
65 |
--enable-rfcomm
|
61 |
66 |
--with-bash-completion="$(get_bashcompdir)"
|
62 |
67 |
$(use_enable aac)
|
... | ... | |
65 |
70 |
$(use_enable man manpages)
|
66 |
71 |
$(use_enable mpg123)
|
67 |
72 |
$(use_enable static-libs static)
|
|
73 |
$(use_enable systemd)
|
68 |
74 |
$(use_enable test)
|
|
75 |
$(use_with systemd systemdsystemunitdir $(systemd_get_systemunitdir))
|
69 |
76 |
$(multilib_native_use_enable aptx)
|
70 |
77 |
$(multilib_native_use_enable hcitop)
|
71 |
78 |
$(multilib_native_use_enable ldac)
|
... | ... | |
83 |
90 |
|
84 |
91 |
newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
|
85 |
92 |
newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa
|
86 |
|
systemd_dounit "${FILESDIR}"/bluealsa.service
|
|
93 |
#systemd_dounit "${FILESDIR}"/bluealsa.service
|
87 |
94 |
|
88 |
95 |
# Add config file to alsa datadir as well to preserve changes in /etc
|
89 |
96 |
insinto "/usr/share/alsa/alsa.conf.d/"
|