diff options
author | Zero_Chaos <zerochaos@gentoo.org> | 2017-01-24 17:25:07 -0500 |
---|---|---|
committer | Zero_Chaos <zerochaos@gentoo.org> | 2017-01-24 17:25:26 -0500 |
commit | 5f28ce967e668c4403e0c875c3a05a49eadb00b5 (patch) | |
tree | 327a4acf8b11fd6c8e5f2a61db77596bca707e97 /net-wireless | |
parent | games-util/lgogdownloader: Version bump to 3.1 (diff) | |
download | gentoo-5f28ce967e668c4403e0c875c3a05a49eadb00b5.tar.gz gentoo-5f28ce967e668c4403e0c875c3a05a49eadb00b5.tar.bz2 gentoo-5f28ce967e668c4403e0c875c3a05a49eadb00b5.zip |
net-wireless/gqrx: add audio options from bug #596248
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/gqrx/gqrx-2.6.ebuild | 21 | ||||
-rw-r--r-- | net-wireless/gqrx/gqrx-9999.ebuild | 21 | ||||
-rw-r--r-- | net-wireless/gqrx/metadata.xml | 3 |
3 files changed, 41 insertions, 4 deletions
diff --git a/net-wireless/gqrx/gqrx-2.6.ebuild b/net-wireless/gqrx/gqrx-2.6.ebuild index eae2f9f6635a..2f342baa83f3 100644 --- a/net-wireless/gqrx/gqrx-2.6.ebuild +++ b/net-wireless/gqrx/gqrx-2.6.ebuild @@ -20,7 +20,8 @@ fi LICENSE="GPL-3" SLOT="0" -IUSE="pulseaudio" +IUSE="gr-audio portaudio pulseaudio" +REQUIRED_USE="^^ ( pulseaudio portaudio gr-audio )" DEPEND=">=net-wireless/gnuradio-3.7_rc:=[audio,analog,filter] >=net-wireless/gr-osmosdr-0.1.0:= @@ -29,10 +30,26 @@ DEPEND=">=net-wireless/gnuradio-3.7_rc:=[audio,analog,filter] dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtwidgets:5 - pulseaudio? ( media-sound/pulseaudio:= )" + pulseaudio? ( media-sound/pulseaudio:= ) + portaudio? ( media-libs/portaudio:= )" RDEPEND="${DEPEND} dev-qt/qtsvg:5" +src_configure() { + if use pulseaudio; then + LINUX_AUDIO_BACKEND=Pulseaudio + elif use portaudio; then + LINUX_AUDIO_BACKEND=Portaudio + elif use gr-audio; then + LINUX_AUDIO_BACKEND=Gr-audio + fi + + local mycmakeargs=( + "-DLINUX_AUDIO_BACKEND=${LINUX_AUDIO_BACKEND}" + ) + cmake-utils_src_configure +} + src_prepare() { if use !pulseaudio; then sed -i 's/AUDIO_BACKEND = pulse/#AUDIO_BACKEND = pulse/' gqrx.pro || die diff --git a/net-wireless/gqrx/gqrx-9999.ebuild b/net-wireless/gqrx/gqrx-9999.ebuild index eae2f9f6635a..2f342baa83f3 100644 --- a/net-wireless/gqrx/gqrx-9999.ebuild +++ b/net-wireless/gqrx/gqrx-9999.ebuild @@ -20,7 +20,8 @@ fi LICENSE="GPL-3" SLOT="0" -IUSE="pulseaudio" +IUSE="gr-audio portaudio pulseaudio" +REQUIRED_USE="^^ ( pulseaudio portaudio gr-audio )" DEPEND=">=net-wireless/gnuradio-3.7_rc:=[audio,analog,filter] >=net-wireless/gr-osmosdr-0.1.0:= @@ -29,10 +30,26 @@ DEPEND=">=net-wireless/gnuradio-3.7_rc:=[audio,analog,filter] dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtwidgets:5 - pulseaudio? ( media-sound/pulseaudio:= )" + pulseaudio? ( media-sound/pulseaudio:= ) + portaudio? ( media-libs/portaudio:= )" RDEPEND="${DEPEND} dev-qt/qtsvg:5" +src_configure() { + if use pulseaudio; then + LINUX_AUDIO_BACKEND=Pulseaudio + elif use portaudio; then + LINUX_AUDIO_BACKEND=Portaudio + elif use gr-audio; then + LINUX_AUDIO_BACKEND=Gr-audio + fi + + local mycmakeargs=( + "-DLINUX_AUDIO_BACKEND=${LINUX_AUDIO_BACKEND}" + ) + cmake-utils_src_configure +} + src_prepare() { if use !pulseaudio; then sed -i 's/AUDIO_BACKEND = pulse/#AUDIO_BACKEND = pulse/' gqrx.pro || die diff --git a/net-wireless/gqrx/metadata.xml b/net-wireless/gqrx/metadata.xml index 28b2012c01cb..66eed02afb31 100644 --- a/net-wireless/gqrx/metadata.xml +++ b/net-wireless/gqrx/metadata.xml @@ -11,6 +11,9 @@ </maintainer> <longdescription lang="en"> </longdescription> + <use> + <flag name="gr-audio">Use audio support from <pkg>net-wireless/gnuradio</pkg></flag> + </use> <upstream> <remote-id type="github">csete/gqrx</remote-id> </upstream> |