diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-17 14:32:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-17 14:32:10 +0100 |
commit | 51c50bd4c895ebf56d81fecae8e45ec3b5fc3efa (patch) | |
tree | 753b6b08624c34d1ed8414bbe22c45409f7741b9 /media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3-r2.ebuild | |
parent | be9d77d3ac6af8f4ead98d89706f356b65578c93 (diff) | |
parent | deba8115d2c2af26df42966b91ef04ff4dd79cde (diff) |
Merge branch 'edge' into next
Diffstat (limited to 'media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3-r2.ebuild')
-rw-r--r-- | media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3-r2.ebuild | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3-r2.ebuild b/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3-r2.ebuild new file mode 100644 index 000000000000..f46c7072e9c9 --- /dev/null +++ b/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.3-r2.ebuild @@ -0,0 +1,83 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit cmake-utils readme.gentoo-r1 + +DESCRIPTION="PulseAudio modules for LDAC, aptX, aptX HD, and AAC for Bluetooth" +HOMEPAGE="https://github.com/EHfive/pulseaudio-modules-bt" + +PULSE_VER="13.0" +SRC_URI=" + https://github.com/EHfive/pulseaudio-modules-bt/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://freedesktop.org/software/pulseaudio/releases/pulseaudio-${PULSE_VER}.tar.xz +" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="fdk +ffmpeg +ldac +native-headset ofono-headset" + +DEPEND=" + fdk? ( media-libs/fdk-aac:0= ) + ffmpeg? ( media-video/ffmpeg ) + media-libs/sbc + ldac? ( media-libs/libldac ) + >=net-wireless/bluez-5 + >=sys-apps/dbus-1.0.0 + 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. +RDEPEND="${DEPEND}" +BDEPEND="" + +CMAKE_MAKEFILE_GENERATOR="emake" + +DISABLE_AUTOFORMATTING="no" +DOC_CONTENTS=" +After getting media-sound/pulseaudio merged without its bluetooth +support (to not collide with this) you may have removed the loading +of bluetooth modules in default.pa config file, leading to failure +to use your bluetooth device (see +https://github.com/EHfive/pulseaudio-modules-bt/issues/33). +Please ensure you have this lines present in your /etc/pulse/default.pa +file: + +.ifexists module-bluetooth-policy.so +load-module module-bluetooth-policy +.endif + +.ifexists module-bluetooth-discover.so +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 + + # pulseaudio headers needed to build + rmdir pa/ || die + ln -s ../pulseaudio-${PULSE_VER}/ pa || die +} + +src_install() { + cmake-utils_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} |