summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2021-04-05 19:20:59 +0200
committerGuillaume Le Vaillant <glv@posteo.net>2021-04-05 21:01:42 +0200
commit92ff287e746ab294427aaafbede74f57678e28e5 (patch)
treec345f44ddda56d4b3cbf8209d2592043cc036470 /gnu/packages
parent653faaebd60c407cbd2265c6ee8a72a521f6b116 (diff)
gnu: Add dream.
* gnu/packages/radio.scm (dream): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/radio.scm72
1 files changed, 72 insertions, 0 deletions
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 826693a538..bd26252c64 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -29,6 +29,7 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix utils)
+ #:use-module (gnu packages admin)
#:use-module (gnu packages algebra)
#:use-module (gnu packages audio)
#:use-module (gnu packages autotools)
@@ -36,6 +37,7 @@
#:use-module (gnu packages bash)
#:use-module (gnu packages boost)
#:use-module (gnu packages check)
+ #:use-module (gnu packages compression)
#:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages documentation)
@@ -49,6 +51,7 @@
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages golang)
+ #:use-module (gnu packages gps)
#:use-module (gnu packages gstreamer)
#:use-module (gnu packages gtk)
#:use-module (gnu packages image)
@@ -1414,3 +1417,72 @@ Compatible hardware/software:
@item Icom IC-9700
@end itemize\n")
(license license:expat)))
+
+(define-public dream
+ (package
+ (name "dream")
+ (version "2.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/drm/dream/" version
+ "/dream-" version "-svn808.tar.gz"))
+ (sha256
+ (base32 "01dv6gvljz64zrjbr08mybr9aicvpq2c6qskww46lngdjyhk8xs1"))))
+ (build-system qt-build-system)
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("faad2" ,faad2)
+ ("fftw" ,fftw)
+ ("libsndfile" ,libsndfile)
+ ("libpcap" ,libpcap)
+ ("opus" ,opus)
+ ("pulseaudio" ,pulseaudio)
+ ("qtbase" ,qtbase)
+ ("qtsvg" ,qtsvg)
+ ("qtwebkit" ,qtwebkit)
+ ("qwt" ,qwt)
+ ("speexdsp" ,speexdsp)
+ ("zlib" ,zlib)))
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (substitute* "dream.pro"
+ (("target\\.path = /usr/bin")
+ (string-append "target.path = "
+ (assoc-ref outputs "out") "/bin"))
+ (("documentation\\.path = /usr/share/man/man1")
+ (string-append "documentation.path = "
+ (assoc-ref outputs "out")
+ "/share/man/man1"))
+ (("/usr/include/pulse/")
+ (string-append (assoc-ref inputs "pulseaudio")
+ "/include/pulse/"))
+ (("/usr/include/sndfile\\.h")
+ (string-append (assoc-ref inputs "libsndfile")
+ "/include/sndfile.h"))
+ (("/usr/include/opus/")
+ (string-append (assoc-ref inputs "opus")
+ "/include/opus/"))
+ (("/usr/include/speex/")
+ (string-append (assoc-ref inputs "speexdsp")
+ "/include/speex/"))
+ (("/usr/include/qwt/")
+ (string-append (assoc-ref inputs "qwt")
+ "/include/qwt/"))
+ (("\\$\\$OUT_PWD/include/neaacdec\\.h")
+ (string-append (assoc-ref inputs "faad2")
+ "/include/neaacdec.h")))))
+ (replace 'configure
+ (lambda _
+ (invoke "qmake"))))))
+ (home-page "https://sourceforge.net/projects/drm/")
+ (synopsis "Digital Radio Mondiale receiver")
+ (description
+ "Dream is a software implementation of a Digital Radio Mondiale (DRM)
+receiver.")
+ (license license:gpl2+)))