From: "Jason A. Donenfeld" <zx2c4@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/pulseaudio-modules-bt/
Date: Wed, 1 Apr 2020 05:33:24 +0000 (UTC) [thread overview]
Message-ID: <1585719197.b50033ecb5e30204457b16c251c7b7cf798f0673.zx2c4@gentoo> (raw)
commit: b50033ecb5e30204457b16c251c7b7cf798f0673
Author: Pablo Cholaky <waltercool <AT> slash <DOT> cl>
AuthorDate: Mon Mar 23 05:17:28 2020 +0000
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Wed Apr 1 05:33:17 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b50033ec
media-sound/pulseaudio-modules-bt: add USE flags
Closes: https://bugs.gentoo.org/713878
Signed-off-by: Pablo Cholaky <waltercool <AT> slash.cl>
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org>
media-sound/pulseaudio-modules-bt/metadata.xml | 29 +++++++++++++++++-----
....ebuild => pulseaudio-modules-bt-1.3-r1.ebuild} | 22 ++++++++++++----
.../pulseaudio-modules-bt-9999.ebuild | 22 ++++++++++++----
3 files changed, 57 insertions(+), 16 deletions(-)
diff --git a/media-sound/pulseaudio-modules-bt/metadata.xml b/media-sound/pulseaudio-modules-bt/metadata.xml
index c6a40a7b9cb..ecdf5fddd6d 100644
--- a/media-sound/pulseaudio-modules-bt/metadata.xml
+++ b/media-sound/pulseaudio-modules-bt/metadata.xml
@@ -1,10 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="person">
- <email>zx2c4@gentoo.org</email>
-</maintainer>
-<maintainer type="person">
- <email>pacho@gentoo.org</email>
-</maintainer>
+ <maintainer type="person">
+ <email>zx2c4@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>pacho@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="fdk">
+ AAC encoding support using media-libs/fdk-aac
+ </flag>
+ <flag name="ffmpeg">
+ APTX, APTX-HD encoding support
+ </flag>
+ <flag name="ldac">
+ LDAC encoding support, using media-libs/libldac
+ </flag>
+ <flag name="native-headset">
+ Build with native HSP (Headset Profile) headset for bluez 5
+ </flag>
+ <flag name="ofono-headset">
+ Build with oFono HFP (Hands Free Profile) headset for bluez 5, requires net-misc/ofono.
+ </flag>
+ </use>
</pkgmetadata>
diff --git a/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3.ebuild b/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3-r1.ebuild
similarity index 76%
rename from media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3.ebuild
rename to media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3-r1.ebuild
index 72132d0bcd3..22faf22ec86 100644
--- a/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3.ebuild
+++ b/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3-r1.ebuild
@@ -16,16 +16,16 @@ SRC_URI="
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
-IUSE=""
+IUSE="fdk +ffmpeg +ldac +native-headset ofono-headset"
DEPEND="
- media-libs/fdk-aac:0=
- virtual/ffmpeg
+ fdk? ( media-libs/fdk-aac:0= )
+ ffmpeg? ( virtual/ffmpeg )
media-libs/sbc
- media-libs/libldac
+ ldac? ( media-libs/libldac )
>=net-wireless/bluez-5
>=sys-apps/dbus-1.0.0
- >=net-misc/ofono-1.13
+ ofono-headset? ( >=net-misc/ofono-1.13 )
>=media-sound/pulseaudio-${PULSE_VER}[-bluetooth]
"
# Ordinarily media-libs/libldac should be in DEPEND too, but for now upstream repo is using a ldac submodule instead.
@@ -53,6 +53,18 @@ load-module module-bluetooth-discover
.endif
"
+src_configure() {
+ local mycmakeargs=(
+ -DCODEC_AAC_FDK=$(usex fdk "ON" "OFF")
+ -DCODEC_APTX_FF=$(usex ffmpeg "ON" "OFF")
+ -DCODEC_APTX_HD_FF=$(usex ffmpeg "ON" "OFF")
+ -DCODEC_LDAC=$(usex ldac "ON" "OFF")
+ -DNATIVE_HEADSET=$(usex native-headset "ON" "OFF")
+ -DOFONO_HEADSET=$(usex ofono-headset "ON" "OFF")
+ )
+ cmake-utils_src_configure
+}
+
src_prepare() {
cmake-utils_src_prepare
diff --git a/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-9999.ebuild b/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-9999.ebuild
index 4dbb9914396..8b8e74ca04f 100644
--- a/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-9999.ebuild
+++ b/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-9999.ebuild
@@ -17,16 +17,16 @@ EGIT_OVERRIDE_COMMIT_PULSEAUDIO_PULSEAUDIO="v13.0"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
-IUSE=""
+IUSE="fdk +ffmpeg +ldac +native-headset ofono-headset"
DEPEND="
- media-libs/fdk-aac:0=
- virtual/ffmpeg
+ fdk? ( media-libs/fdk-aac:0= )
+ ffmpeg? ( virtual/ffmpeg )
media-libs/sbc
- media-libs/libldac
+ ldac? ( media-libs/libldac )
>=net-wireless/bluez-5
>=sys-apps/dbus-1.0.0
- >=net-misc/ofono-1.13
+ ofono-headset? ( >=net-misc/ofono-1.13 )
>=media-sound/pulseaudio-13[-bluetooth]
"
# Ordinarily media-libs/libldac should be in DEPEND too, but for now upstream repo is using a ldac submodule instead.
@@ -55,6 +55,18 @@ load-module module-bluetooth-discover
.endif
"
+src_configure() {
+ local mycmakeargs=(
+ -DCODEC_AAC_FDK=$(usex fdk "ON" "OFF")
+ -DCODEC_APTX_FF=$(usex ffmpeg "ON" "OFF")
+ -DCODEC_APTX_HD_FF=$(usex ffmpeg "ON" "OFF")
+ -DCODEC_LDAC=$(usex ldac "ON" "OFF")
+ -DNATIVE_HEADSET=$(usex native-headset "ON" "OFF")
+ -DOFONO_HEADSET=$(usex ofono-headset "ON" "OFF")
+ )
+ cmake-utils_src_configure
+}
+
src_install() {
cmake-utils_src_install
readme.gentoo_create_doc
next reply other threads:[~2020-04-01 5:33 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-01 5:33 Jason A. Donenfeld [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-07-31 3:40 [gentoo-commits] repo/gentoo:master commit in: media-sound/pulseaudio-modules-bt/ Sam James
2022-03-08 13:31 Sam James
2022-01-03 23:36 Pacho Ramos
2021-10-28 21:32 Pacho Ramos
2021-04-17 20:08 Pacho Ramos
2021-04-17 20:08 Pacho Ramos
2021-04-17 20:08 Pacho Ramos
2021-02-14 16:23 Pacho Ramos
2020-06-06 18:19 Pacho Ramos
2020-06-06 18:19 Pacho Ramos
2020-04-26 10:35 David Seifert
2019-10-20 11:39 Pacho Ramos
2019-10-20 11:39 Pacho Ramos
2019-10-20 11:39 Pacho Ramos
2019-10-20 11:04 Pacho Ramos
2019-10-20 11:04 Pacho Ramos
2019-07-31 7:32 Pacho Ramos
2019-06-30 11:23 Pacho Ramos
2019-06-30 11:23 Pacho Ramos
2019-01-04 14:32 Jason A. Donenfeld
2019-01-04 13:19 Jason A. Donenfeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1585719197.b50033ecb5e30204457b16c251c7b7cf798f0673.zx2c4@gentoo \
--to=zx2c4@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox