1 |
commit: 49bf3ef9457c00bf8fad1499bafe23ddcf5c93fe |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 3 23:36:17 2022 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 3 23:36:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49bf3ef9 |
7 |
|
8 |
media-sound/pulseaudio-modules-bt: Update pulseaudio dependencies |
9 |
|
10 |
Closes: https://bugs.gentoo.org/830351 |
11 |
Bug: https://bugs.gentoo.org/782625 |
12 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
13 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
14 |
|
15 |
.../pulseaudio-modules-bt-1.4-r2.ebuild | 82 ++++++++++++++++++++++ |
16 |
1 file changed, 82 insertions(+) |
17 |
|
18 |
diff --git a/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.4-r2.ebuild b/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.4-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000000..5ce55a2c7a12 |
21 |
--- /dev/null |
22 |
+++ b/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.4-r2.ebuild |
23 |
@@ -0,0 +1,82 @@ |
24 |
+# Copyright 2019-2022 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=8 |
28 |
+inherit cmake readme.gentoo-r1 |
29 |
+ |
30 |
+DESCRIPTION="PulseAudio modules for LDAC, aptX, aptX HD, and AAC for Bluetooth" |
31 |
+HOMEPAGE="https://github.com/EHfive/pulseaudio-modules-bt" |
32 |
+ |
33 |
+PULSE_VER="15.0" |
34 |
+SRC_URI=" |
35 |
+ https://github.com/EHfive/pulseaudio-modules-bt/archive/v${PV}.tar.gz -> ${P}.tar.gz |
36 |
+ https://freedesktop.org/software/pulseaudio/releases/pulseaudio-${PULSE_VER}.tar.xz |
37 |
+" |
38 |
+ |
39 |
+LICENSE="GPL-3" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64" |
42 |
+IUSE="fdk +ffmpeg +ldac +native-headset ofono-headset" |
43 |
+ |
44 |
+DEPEND=" |
45 |
+ fdk? ( media-libs/fdk-aac:0= ) |
46 |
+ ffmpeg? ( media-video/ffmpeg ) |
47 |
+ media-libs/sbc |
48 |
+ ldac? ( media-libs/libldac ) |
49 |
+ >=net-wireless/bluez-5 |
50 |
+ >=sys-apps/dbus-1.0.0 |
51 |
+ ofono-headset? ( >=net-misc/ofono-1.13 ) |
52 |
+ >=media-sound/pulseaudio-${PULSE_VER}[-bluetooth,daemon(+)] |
53 |
+ !media-sound/pulseaudio[bluetooth] |
54 |
+" |
55 |
+# Ordinarily media-libs/libldac should be in DEPEND too, but for now upstream repo is using a ldac submodule instead. |
56 |
+RDEPEND="${DEPEND}" |
57 |
+BDEPEND="" |
58 |
+ |
59 |
+DISABLE_AUTOFORMATTING="no" |
60 |
+DOC_CONTENTS=" |
61 |
+After getting media-sound/pulseaudio merged without its bluetooth |
62 |
+support (to not collide with this) you may have removed the loading |
63 |
+of bluetooth modules in default.pa config file, leading to failure |
64 |
+to use your bluetooth device (see |
65 |
+https://github.com/EHfive/pulseaudio-modules-bt/issues/33). |
66 |
+Please ensure you have this lines present in your /etc/pulse/default.pa |
67 |
+file: |
68 |
+ |
69 |
+.ifexists module-bluetooth-policy.so |
70 |
+load-module module-bluetooth-policy |
71 |
+.endif |
72 |
+ |
73 |
+.ifexists module-bluetooth-discover.so |
74 |
+load-module module-bluetooth-discover |
75 |
+.endif |
76 |
+" |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ cmake_src_prepare |
80 |
+ |
81 |
+ # pulseaudio headers needed to build |
82 |
+ rmdir pa/ || die |
83 |
+ ln -s ../pulseaudio-${PULSE_VER}/ pa || die |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ local mycmakeargs=( |
88 |
+ -DCODEC_AAC_FDK=$(usex fdk "ON" "OFF") |
89 |
+ -DCODEC_APTX_FF=$(usex ffmpeg "ON" "OFF") |
90 |
+ -DCODEC_APTX_HD_FF=$(usex ffmpeg "ON" "OFF") |
91 |
+ -DCODEC_LDAC=$(usex ldac "ON" "OFF") |
92 |
+ -DNATIVE_HEADSET=$(usex native-headset "ON" "OFF") |
93 |
+ -DOFONO_HEADSET=$(usex ofono-headset "ON" "OFF") |
94 |
+ ) |
95 |
+ cmake_src_configure |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ cmake_src_install |
100 |
+ readme.gentoo_create_doc |
101 |
+} |
102 |
+ |
103 |
+pkg_postinst() { |
104 |
+ readme.gentoo_print_elog |
105 |
+} |