media-video/pipewire: fix bluetooth USE logic, handle codec switches

Package-Manager: Portage-3.0.17, Repoman-3.0.2
This commit is contained in:
Guillaume Castagnino 2021-03-15 11:13:56 +01:00
parent 60114a8acd
commit 99b7b37637
2 changed files with 15 additions and 5 deletions

View file

@ -1,2 +1,2 @@
EBUILD pipewire-9999.ebuild 3288 BLAKE2B 65842ad2c7afca685a4f7507906e10fb724c0fb5f8f9c20f1ee01ded8058cedc0ff90c0930f027e4db76502c599e93c6de83b910a900d70a7cd5b35ce0193123 SHA512 afd9de1c19be99af1d02b7072e921e60f0916d13579071149499d93d73038fb66b9ed6a7aaf99987925bd5ea8cf74bf05c3e430b09a3c444294738c68b6270fb
EBUILD pipewire-9999.ebuild 3602 BLAKE2B 47088a5e63a9288490f254de711f1987d2ddcb839a4c79467c97239f21c3d06119caaee7222af8a7a8bcac00102c46ee90edd96bd6a157477ed26d0fd7f2d7a3 SHA512 cd8643eb8913e13e6a8647746641d39a0d47175ce63d859647e7d39c1dc8e98967cb70ce1673fc2112b32f4c5d71b70d9f8a361c0f4e3cb9432b6e1a10d7b231
MISC metadata.xml 823 BLAKE2B e2bfad2125f6f580b7ab8ac0a47db10246e25ac5124a98b615aa874a9b941be646fceb17b1714497652e0db60b0d4329ba32c44396fec510d805ba2d2fd4895b SHA512 6a8d9f757a79f77dfa543fa17d054290e2fc95db19430d7ba8b3a7ea61ea32411f94bb2ee87f7e60ebd5b5ab06f437568939d9f9822a5fd1862e5086ef9d0fa0

View file

@ -18,7 +18,13 @@ HOMEPAGE="https://pipewire.org/"
LICENSE="LGPL-2.1+"
SLOT="0/0.3"
IUSE="alsa aptx bluetooth debug doc ffmpeg gstreamer hsphfpd jack rtkit sdl sndfile systemd test vulkan X"
# ldacBT not packaged for ldac support
IUSE="alsa aac aptx bluetooth debug doc ffmpeg gstreamer hsphfpd jack rtkit sdl sndfile systemd test vulkan X"
REQUIRED_USE="
aac? ( bluetooth )
aptx? ( bluetooth )
hsphfpd? ( bluetooth )
"
BDEPEND="
app-doc/xmltoman
@ -36,6 +42,7 @@ RDEPEND="
media-libs/sbc
net-wireless/bluez:=
aptx? ( media-libs/libopenaptx )
aac? ( media-libs/fdk-aac )
)
ffmpeg? ( media-video/ffmpeg:= )
gstreamer? (
@ -89,10 +96,13 @@ src_configure() {
# spa-plugins
# we install alsa support unconditionally
$(meson_feature bluetooth bluez5)
$(meson_feature !hsphfpd bluez5-backend-hsp-native)
$(meson_feature !hsphfpd bluez5-backend-hfp-native)
-Dbluez5-backend-ofono=disabled
$(meson_feature $(usex bluetooth !hsphfpd bluetooth) bluez5-backend-hsp-native)
$(meson_feature $(usex bluetooth !hsphfpd bluetooth) bluez5-backend-hfp-native)
$(meson_feature hsphfpd bluez5-backend-hsphfpd)
-Dbluez5-backend-ofono=disabled
# bluetooth codecs
$(meson_feature aac bluez5-codec-aac)
$(meson_feature aptx bluez5-codec-aptx)
$(meson_feature ffmpeg)
$(meson_feature jack)
$(meson_feature vulkan)