[packages/gqrx] - rel 4; disable pulseaudio by default

arekm arekm at pld-linux.org
Sat Mar 1 21:48:42 CET 2014


commit 11dfa3ae91cc5bc481627a359775951a51310ac4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 1 21:48:40 2014 +0100

    - rel 4; disable pulseaudio by default

 gqrx-nopulse.patch | 39 +++++++++++++++++++++++++++++++++++++++
 gqrx.spec          | 12 +++++++++++-
 2 files changed, 50 insertions(+), 1 deletion(-)
---
diff --git a/gqrx.spec b/gqrx.spec
index 3d66df0..ca95477 100644
--- a/gqrx.spec
+++ b/gqrx.spec
@@ -1,11 +1,15 @@
+#
+%bcond_with	pulseaudio
+#
 Summary:	Software defined radio receiver powered by GNU Radio and Qt
 Name:		gqrx
 Version:	2.2.0
-Release:	3
+Release:	4
 License:	GPL v3+
 Group:		Applications/Engineering
 Source0:	http://downloads.sourceforge.net/gqrx/%{name}-%{version}-src.tar.gz
 # Source0-md5:	ff771b9c31ee17f704859398362b8cc0
+Patch0:		%{name}-nopulse.patch
 URL:		http://gqrx.dk/
 BuildRequires:	QtCore-devel
 BuildRequires:	QtGui-devel
@@ -13,7 +17,11 @@ BuildRequires:	QtSvg-devel
 BuildRequires:	boost-devel
 BuildRequires:	gnuradio-devel >= 3.7
 BuildRequires:	gr-osmosdr-devel
+%if %{with pulseaudio}
 BuildRequires:	pulseaudio-devel
+%else
+BuildRequires:	portaudio-devel
+%endif
 BuildRequires:	qt4-qmake
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -23,12 +31,14 @@ framework and the Qt graphical toolkit.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
 cd build
 qmake-qt4 \
 	PREFIX=%{_prefix} \
+	AUDIO_BACKEND=%{?with_pulseaudio:pulse}%{!?with_pulseaudio:portaudio} \
 	../gqrx.pro
 %{__make}
 
diff --git a/gqrx-nopulse.patch b/gqrx-nopulse.patch
new file mode 100644
index 0000000..8e4eff0
--- /dev/null
+++ b/gqrx-nopulse.patch
@@ -0,0 +1,39 @@
+--- gqrx-2.2.0.org/gqrx.pro	2013-08-08 21:52:05.000000000 +0200
++++ gqrx-2.2.0/gqrx.pro	2014-03-01 21:46:56.512501576 +0100
+@@ -26,12 +26,15 @@
+ }
+ 
+ unix:!macx {
+-    CONFIG += link_pkgconfig
++  CONFIG += link_pkgconfig
++  contains(AUDIO_BACKEND, portaudio): {
++  } else {
+     packagesExist(libpulse libpulse-simple) {
+         # Comment out to use gr-audio (not recommended with ALSA and Funcube Dongle Pro)
+         AUDIO_BACKEND = pulse
+         message("Gqrx configured with pulseaudio backend")
+     }
++  }
+ }
+ 
+ RESOURCES += icons.qrc
+@@ -191,6 +194,7 @@
+     contains(AUDIO_BACKEND, pulse): {
+         PKGCONFIG += libpulse libpulse-simple
+     } else {
++        LIBS += -lportaudio
+         PKGCONFIG += gnuradio-audio
+     }
+     PKGCONFIG += gnuradio-analog \
+@@ -214,11 +218,6 @@
+     LIBS += -lboost_system-mt -lboost_program_options-mt
+     LIBS += -lgnuradio-runtime -lgnuradio-pmt -lgnuradio-audio -lgnuradio-analog
+     LIBS += -lgnuradio-blocks -lgnuradio-filter -lgnuradio-fft -lgnuradio-osmosdr
+-
+-    # portaudio
+-    contains(AUDIO_BACKEND, portaudio): {
+-        LIBS    += -lportaudio
+-    }
+ }
+ 
+ OTHER_FILES += \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gqrx.git/commitdiff/11dfa3ae91cc5bc481627a359775951a51310ac4



More information about the pld-cvs-commit mailing list