1 ;;; GNU Guix --- Functional package management for GNU
3 ;;; Copyright © 2020, 2021 Raghav Gururajan <raghavgururajan@disroot.org>
4 ;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
5 ;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (gnu packages linphone)
23 #:use-module (gnu packages)
24 #:use-module (gnu packages admin)
25 #:use-module (gnu packages audio)
26 #:use-module (gnu packages base)
27 #:use-module (gnu packages compression)
28 #:use-module (gnu packages crypto)
29 #:use-module (gnu packages documentation)
30 #:use-module (gnu packages gettext)
31 #:use-module (gnu packages gl)
32 #:use-module (gnu packages glib)
33 #:use-module (gnu packages gnome)
34 #:use-module (gnu packages gnome-xyz)
35 #:use-module (gnu packages graphviz)
36 #:use-module (gnu packages gtk)
37 #:use-module (gnu packages image)
38 #:use-module (gnu packages linux)
39 #:use-module (gnu packages ncurses)
40 #:use-module (gnu packages perl)
41 #:use-module (gnu packages pulseaudio)
42 #:use-module (gnu packages python)
43 #:use-module (gnu packages python-xyz)
44 #:use-module (gnu packages qt)
45 #:use-module (gnu packages java)
46 #:use-module (gnu packages sqlite)
47 #:use-module (gnu packages telephony)
48 #:use-module (gnu packages tls)
49 #:use-module (gnu packages video)
50 #:use-module (gnu packages xiph)
51 #:use-module (gnu packages xml)
52 #:use-module (gnu packages xorg)
53 #:use-module ((guix licenses) #:prefix license:)
54 #:use-module (guix packages)
55 #:use-module (guix download)
56 #:use-module (guix git-download)
57 #:use-module (guix build-system cmake)
58 #:use-module (guix build-system qt)
59 #:use-module (guix build-system glib-or-gtk)
60 #:use-module (guix build-system gnu))
63 (let ((commit "74021cc7cb20a4e177748dd2948173e1f9c270ae")
67 (version (git-version "3.0.2" revision commit))
72 (url "git://git.linphone.org/bcunit")
74 (file-name (git-file-name name version))
76 (base32 "0npdwvanjkfg9vrqs5yi8vh6wliv50ycdli8pzavir84nb31nq1b"))))
77 (build-system cmake-build-system)
78 (outputs '("out" "doc"))
80 `(#:configure-flags (list "-DENABLE_STATIC=NO"
83 "-DENABLE_EXAMPLES=ON"
85 "-DENABLE_MEMTRACE=ON")
87 (modify-phases %standard-phases
88 (add-after 'unpack 'patch-source
90 ;; Include BCunit headers for examples.
91 (substitute* "Examples/CMakeLists.txt"
92 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}")
93 (string-append "${CMAKE_CURRENT_SOURCE_DIR} "
94 "${PROJECT_SOURCE_DIR}/BCUnit/Headers "
95 "${CMAKE_BINARY_DIR}/BCUnit/Headers")))
96 ;; Link bcunit and bcunit_tests libraries.
97 (substitute* "BCUnit/Sources/CMakeLists.txt"
98 (("target_include_directories\\(bcunit_test PUBLIC Test\\)")
100 "target_include_directories(bcunit_test PUBLIC Test)\n"
101 "target_link_libraries(bcunit_test bcunit)")))))
104 (with-directory-excursion "BCUnit/Sources/Test"
105 (invoke "./test_bcunit"))))
106 (add-after 'install 'move-doc
107 (lambda* (#:key outputs #:allow-other-keys)
108 (let ((out (assoc-ref outputs "out"))
109 (doc (assoc-ref outputs "doc")))
111 `(,(string-append doc "/share/doc")
112 ,(string-append doc "/share/BCUnit")))
114 (string-append out "/share/doc/BCUnit")
115 (string-append doc "/share/doc/BCUnit"))
117 (string-append out "/share/BCUnit/Examples")
118 (string-append doc "/share/BCUnit/Examples"))))))))
120 `(("ncurses" ,ncurses)))
121 (synopsis "Belledonne Communications Unit Testing Framework")
122 (description "BCUnit is a fork of the defunct project CUnit, with
123 several fixes and patches applied. It is a unit testing framework for
124 writing, administering, and running unit tests in C.")
125 (home-page "https://gitlab.linphone.org/BC/public/bcunit")
126 (license license:lgpl2.0+))))
128 (define-public bctoolbox
136 (url "https://gitlab.linphone.org/BC/public/bctoolbox.git")
138 (file-name (git-file-name name version))
140 (base32 "0bfswwvvdshaahg4jd2j10f0sci8809s4khajd0m6b059zwc7y25"))))
141 (build-system cmake-build-system)
142 (outputs '("out" "debug"))
144 `(#:configure-flags '("-DENABLE_STATIC=OFF")
146 (modify-phases %standard-phases
147 (add-after 'unpack 'patch-cmake
148 (lambda* (#:key inputs #:allow-other-keys)
149 ;; Fix decaf dependency (see:
150 ;; https://gitlab.linphone.org/BC/public/bctoolbox/-/issues/3).
151 (let* ((decaf (assoc-ref inputs "decaf")))
152 (substitute* (find-files "." "CMakeLists.txt")
153 (("find_package\\(Decaf CONFIG\\)")
154 "set(DECAF_FOUND 1)")
155 (("\\$\\{DECAF_INCLUDE_DIRS\\}")
156 (string-append decaf "/include/decaf"))
157 (("\\$\\{DECAF_TARGETNAME\\}")
159 (add-after 'unpack 'skip-problematic-tests
161 ;; The following test relies on networking; disable it.
162 (substitute* "tester/port.c"
163 (("[ \t]*TEST_NO_TAG.*bctbx_addrinfo_sort_test\\)")
165 (add-after 'unpack 'fix-installed-resource-directory-detection
167 ;; There's some broken logic in tester.c that checks if CWD, or
168 ;; if its parent exist, and if so, sets the prefix where the test
169 ;; resources are looked up to; disable it (see:
170 ;; https://gitlab.linphone.org/BC/public/bctoolbox/-/issues/4).
171 (substitute* "src/tester.c"
172 (("if \\(file_exists\\(\".\"\\)\\)")
174 (("if \\(file_exists\\(\"..\"\\)\\)")
178 (with-directory-excursion "tester"
179 (invoke "./bctoolbox_tester")))))))
183 ("mbedtls" ,mbedtls-apache)))
184 (synopsis "Belledonne Communications Tool Box")
185 (description "BcToolBox is an utilities library used by Belledonne
186 Communications software like belle-sip, mediastreamer2 and linphone.")
187 (home-page "https://gitlab.linphone.org/BC/public/bctoolbox")
188 (license license:gpl3+)))
198 (url "https://gitlab.linphone.org/BC/public/belr.git")
200 (file-name (git-file-name name version))
202 (base32 "0w2canwwm0qb99whnangvaybvjzq8xg6vksqxykgr8fbx7clw03h"))))
203 (build-system cmake-build-system)
204 (outputs '("out" "debug" "tester"))
206 `(#:configure-flags '("-DENABLE_STATIC=OFF")
208 (modify-phases %standard-phases
209 (delete 'check) ;moved after the install phase
210 (add-after 'install 'check
211 (lambda* (#:key outputs #:allow-other-keys)
212 (let* ((tester (assoc-ref outputs "tester"))
213 (belr_tester (string-append tester "/bin/belr_tester"))
214 (tester-share (string-append tester "/share/belr_tester")))
215 (invoke belr_tester))))
216 (add-after 'install 'move-tester
217 (lambda* (#:key outputs #:allow-other-keys)
218 (let* ((out (assoc-ref outputs "out"))
219 (tester (assoc-ref outputs "tester")))
221 (list (string-append tester "/bin")
222 (string-append tester "/share")))
224 (string-append out "/bin/belr_tester")
225 (string-append tester "/bin/belr_tester"))
227 (string-append out "/share/belr-tester")
228 ;; The detect_res_prefix procedure in bctoolbox's tester.c
229 ;; resolves the resource path based on the executable path and
230 ;; name, so have it match.
231 (string-append tester "/share/belr_tester"))))))))
233 `(("bctoolbox" ,bctoolbox)))
234 (synopsis "Belledonne Communications Language Recognition Library")
235 (description "Belr is Belledonne Communications' language recognition
236 library, written in C++11. It parses text inputs formatted according to a
237 language defined by an ABNF grammar, such as the protocols standardized at
239 (home-page "https://gitlab.linphone.org/BC/public/belr")
240 (license license:gpl3+)))
242 (define-public belcard
250 (url "https://gitlab.linphone.org/BC/public/belcard.git")
252 (file-name (git-file-name name version))
254 (base32 "16x2xp8d0a115132zhy1kpxkyj86ia7vrsnpjdg78fnbvmvysc8m"))))
255 (build-system cmake-build-system)
256 (outputs '("out" "debug" "tester"))
259 #:configure-flags '("-DENABLE_STATIC=OFF")
261 (modify-phases %standard-phases
262 (add-after 'unpack 'patch-vcard-grammar-location
263 (lambda* (#:key outputs #:allow-other-keys)
264 (let* ((out (assoc-ref outputs "out"))
266 (string-append out "/share/belr/grammars/vcard_grammar")))
267 (substitute* "include/belcard/vcard_grammar.hpp"
268 (("define VCARD_GRAMMAR \"vcard_grammar\"")
269 (format #f "define VCARD_GRAMMAR ~s" vcard-grammar))))))
270 (add-after 'install 'install-tester
271 (lambda* (#:key inputs outputs #:allow-other-keys)
272 (let ((out (assoc-ref outputs "out"))
273 (tester (assoc-ref outputs "tester"))
274 (test-name (string-append ,name "_tester")))
276 (list (string-append tester "/bin")
277 (string-append tester "/share")))
278 (rename-file (string-append out "/bin/" test-name)
279 (string-append tester "/bin/" test-name))
280 (rename-file (string-append out "/share/" test-name)
281 (string-append tester "/share/" test-name)))))
283 (add-after 'install-tester 'check
284 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
286 (let* ((tester (assoc-ref outputs "tester"))
287 (belcard_tester (string-append tester
288 "/bin/belcard_tester")))
289 (invoke belcard_tester))))))))
291 `(("bctoolbox" ,bctoolbox)
293 (synopsis "Belledonne Communications VCard Library")
294 (description "Belcard is a C++ library to manipulate VCard standard
296 (home-page "https://gitlab.linphone.org/BC/public/belcard")
297 (license license:gpl3+)))
299 (define-public bcmatroska2
307 (url "https://gitlab.linphone.org/BC/public/bcmatroska2.git")
309 (file-name (git-file-name name version))
311 (base32 "1avl9w18kh4dxm3g8j0bkw39bksd7bz3nfxvyibqqnz63ds8vfi2"))))
312 (build-system cmake-build-system)
314 `(#:tests? #f ; No test target
315 #:configure-flags (list "-DENABLE_STATIC=NO"))) ; Not required
316 (synopsis "Belledonne Communications Media Container")
317 (description "BcMatroska is a free and open standard multi-media container
318 format. It can hold an unlimited number of video, audio, picture, or subtitle
319 tracks in one file. This project provides a convenient distribution of the
320 Matroska multimedia container format.")
321 (home-page "https://gitlab.linphone.org/BC/public/bcmatroska2")
322 (license (list license:gpl2+ ;for this package (build system files)
323 license:bsd-4 ;for Core C and LibEBML2
324 license:lgpl2.1+)))) ;for LibMatroska2
326 (define-public bcg729
334 (url "git://git.linphone.org/bcg729")
336 (file-name (git-file-name name version))
338 (base32 "1hal6b3w6f8y5r1wa0xzj8sj2jjndypaxyw62q50p63garp2h739"))))
339 (build-system cmake-build-system)
341 `(#:configure-flags (list "-DENABLE_STATIC=NO"
342 "-DENABLE_TESTS=YES")
344 (modify-phases %standard-phases
345 (add-before 'check 'copy-inputs
346 (lambda* (#:key inputs #:allow-other-keys)
347 (let ((test-patterns (assoc-ref inputs "test-patterns"))
348 (dest (string-append "test/bcg729-patterns.zip")))
349 (copy-recursively test-patterns dest))))
352 (with-directory-excursion "test"
353 (invoke "unzip" "bcg729-patterns.zip")
356 (invoke "./testCampaign" "-s" test-name))
357 (list "fixedCodebookSearch"
359 "adaptativeCodebookSearch"
361 "computeAdaptativeCodebookGain"
369 "decodeFixedCodeVector"
371 ;; "LP2LSPConversion"
373 "findOpenLoopPitchDelay"
375 "computeWeightedSpeech"
376 "interpolateqLSPAndConvert2LP"
377 "decodeAdaptativeCodeVector"))))))))
383 (uri (string-append "http://www.belledonne-communications.com/"
384 "bc-downloads/bcg729-patterns.zip"))
386 (base32 "1kivarhh3izrl9sg0szs6x6pbq2ap0y6xsraw0gbgspi4gnfihrh"))))
388 (synopsis "Belledonne Communications G729 Codec")
389 (description "BcG729 is an implementation of both encoder and decoder of
390 the ITU G729 speech codec. The library written in C 99 is fully portable and
391 can be executed on many platforms including both ARM and x86 processors. It
392 supports concurrent channels encoding and decoding for multi call application
393 such as conferencing.")
394 (home-page "https://linphone.org/technical-corner/bcg729")
395 (license license:gpl3+)))
405 (url "https://gitlab.linphone.org/BC/public/ortp.git")
407 (file-name (git-file-name name version))
409 (base32 "1r1kvjzyfvkf66in4p51wi87balzg3sw3aq6r4xr609mz86spi5m"))))
410 (build-system cmake-build-system)
411 (outputs '("out""tester"
412 "doc")) ;1.5 MiB of HTML doc
414 `(#:tests? #f ;requires networking
415 #:configure-flags (list "-DENABLE_STATIC=NO"
416 "-DENABLE_TESTS=YES")
418 (modify-phases %standard-phases
419 (add-after 'unpack 'fix-version-strings
420 ;; See: https://gitlab.linphone.org/BC/public/ortp/-/issues/5.
422 (substitute* "CMakeLists.txt"
423 (("VERSION [0-9]+\\.[0-9]+\\.[0-9]+")
424 (string-append "VERSION " ,version))
425 (("\\$\\{ORTP_DOC_VERSION\\}")
427 (add-after 'install 'separate-outputs
428 (lambda* (#:key outputs #:allow-other-keys)
429 (let* ((out (assoc-ref outputs "out"))
430 (doc (assoc-ref outputs "doc"))
431 (doc-src (string-append out "/share/doc/ortp-" ,version))
432 (doc-dest (string-append doc "/share/doc/ortp-" ,version))
433 (tester (assoc-ref outputs "tester")))
434 (for-each mkdir-p (list (string-append doc "/share/doc")
435 (string-append tester "/bin")))
436 (rename-file doc-src doc-dest)
437 (rename-file (string-append out "/bin")
438 (string-append tester "/bin"))))))))
441 ("doxygen" ,doxygen)))
443 `(("bctoolbox" ,bctoolbox)))
444 (synopsis "Belledonne Communications RTP Library")
445 (description "oRTP is a C library implementing the RTP protocol. It
446 implements the RFC 3550 standard.")
447 (home-page "https://linphone.org/technical-corner/ortp")
448 (license license:gpl3+)))
458 (url "https://gitlab.linphone.org/BC/public/bzrtp")
460 (file-name (git-file-name name version))
462 (base32 "1yjmsbqmymzl4r7sba6w4a2yld8m6hzafr6jf7sj0syhwpnc3zv6"))))
463 (build-system cmake-build-system)
468 "-DENABLE_TESTS=YES")))
470 `(("bctoolbox" ,bctoolbox)
473 (synopsis "Belledonne Communications ZRTP Library")
474 (description "BZRTP is an implementation of ZRTP keys exchange protocol,
475 written in C. It is fully portable and can be executed on many platforms
476 including both ARM and x86.")
477 (home-page "https://gitlab.linphone.org/BC/public/bzrtp")
478 (license license:gpl3+)))
480 (define-public belle-sip
488 (string-append "https://www.linphone.org/releases/sources/" name
489 "/" name "-" version ".tar.gz"))
491 (base32 "0s55kggmgxap54dkw5856bgk4xg7yvbzialpxnjm0zhpic3hff1z"))))
492 (build-system cmake-build-system)
494 `(#:tests? #f ; Requires network access
496 (list "-DENABLE_STATIC=NO") ; Not required
498 (modify-phases %standard-phases
499 (add-after 'unpack 'patch
501 (substitute* "src/CMakeLists.txt"
502 ;; ANTLR would use multithreaded DFA generation otherwise,
503 ;; which would not be reproducible.
504 (("-Xmultithreaded ") ""))
507 `(("antlr3" ,antlr3-3.3)
508 ("antlr3c" ,libantlr3c)
509 ("bctoolbox" ,bctoolbox)
512 (synopsis "Belledonne Communications SIP Library")
513 (description "Belle-sip is a modern library implementing SIP transport,
514 transaction and dialog layers. It is written in C, with an object-oriented
515 API. It also comprises a simple HTTP/HTTPS client implementation.")
516 (home-page "https://gitlab.linphone.org/BC/public/belle-sip")
517 (license license:gpl2+)))
519 (define-public mediastreamer2
521 (name "mediastreamer2")
527 (url "https://gitlab.linphone.org/BC/public/mediastreamer2.git")
529 (file-name (git-file-name name version))
531 (base32 "0989h3d0h7qrx4kjx8gg09j8c5hvvi3h8qi1iq1dqbppwbaxbz8c"))))
532 (outputs '("out" "doc" "tester"))
533 (build-system cmake-build-system)
535 `(#:tests? #f ; No test target
536 #:configure-flags (list "-DENABLE_STATIC=NO")
538 (modify-phases %standard-phases
539 (add-after 'unpack 'fix-version
541 (substitute* "CMakeLists.txt"
542 (("VERSION [0-9]+\\.[0-9]+\\.[0-9]+")
543 (string-append "VERSION " ,version)))))
544 (add-after 'install 'separate-outputs
545 (lambda* (#:key outputs #:allow-other-keys)
546 (let* ((out (assoc-ref outputs "out"))
547 (tester (assoc-ref outputs "tester"))
548 (tester-name (string-append ,name "_tester"))
549 (doc (assoc-ref outputs "doc"))
550 (doc-name (string-append ,name "-" ,version)))
552 (list (string-append tester "/bin")
553 (string-append tester "/share")
554 (string-append doc "/share/doc")))
555 ;; Copy the tester executable.
556 (rename-file (string-append out "/bin/" tester-name)
557 (string-append tester "/bin/" tester-name))
558 ;; Copy the tester data files.
559 (rename-file (string-append out "/share/" tester-name)
560 (string-append tester "/share/" tester-name))
561 ;; Copy the HTML documentation.
562 (rename-file (string-append out "/share/doc/" doc-name)
563 (string-append doc "/share/doc/" doc-name))))))))
567 ("python" ,python-wrapper)))
571 ("bcmatroska2" ,bcmatroska2)
572 ("bctoolbox" ,bctoolbox)
582 ("portaudio" ,portaudio)
583 ("pulseaudio" ,pulseaudio)
586 ("speexdsp" ,speexdsp)
588 ("theora" ,libtheora)
589 ("turbojpeg" ,libjpeg-turbo)
595 (synopsis "Belledonne Communications Streaming Engine")
596 (description "Mediastreamer2 is a powerful and lightweight streaming engine
597 for telephony applications. This media processing and streaming toolkit is
598 responsible for receiving and sending all multimedia streams in Linphone,
599 including media capture, encoding and decoding, and rendering.")
600 (home-page "https://linphone.org/technical-corner/mediastreamer2")
601 (license license:gpl3+)))
603 (define-public liblinphone
611 (string-append "https://www.linphone.org/releases/sources/linphone"
612 "/linphone-" version ".tar.gz"))
614 (base32 "0phhkx55xdyg28d4wn8l8q4yvsmdgzmjiw584d4s190sq1azm91x"))))
615 (outputs '("out" "doc" "tester"))
616 (build-system cmake-build-system)
618 `(#:tests? #f ; No test target
620 (list (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
621 (string-append (assoc-ref %build-inputs "gtk2")
622 "/lib/gtk-2.0/include"))
623 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
624 (string-append (assoc-ref %build-inputs "glib")
625 "/lib/glib-2.0/include"))
626 "-DENABLE_STATIC=NO" ; Not required
628 "-DENABLE_GTK_UI=YES") ; for legacy UI
629 #:imported-modules (,@%cmake-build-system-modules
630 (guix build glib-or-gtk-build-system))
631 #:modules ((guix build cmake-build-system)
632 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
635 (modify-phases %standard-phases
636 (add-after 'unpack 'patch
638 (substitute* "gtk/main.c"
639 (("#include \"liblinphone_gitversion.h\"")
642 (add-after 'install 'separate-outputs
643 (lambda* (#:key outputs #:allow-other-keys)
644 (let* ((out (assoc-ref outputs "out"))
645 (doc (assoc-ref outputs "doc"))
646 (tester (assoc-ref outputs "tester"))
647 (tester-name (string-append ,name "_tester")))
648 ;; Copy the tester executable.
649 (mkdir-p (string-append tester "/bin"))
650 (rename-file (string-append out "/bin/" tester-name)
651 (string-append tester "/bin/" tester-name))
652 ;; Copy the tester data files.
653 (mkdir-p (string-append tester "/share/"))
654 (rename-file (string-append out "/share/" tester-name)
655 (string-append tester "/share/" tester-name))
656 ;; Copy the HTML and XML documentation.
658 (string-append out "/share/doc/linphone-" ,version)
659 (string-append doc "/share/doc/" ,name "-" ,version))
660 (delete-file-recursively
661 (string-append out "/share/doc/linphone-" ,version))
663 (add-after 'install 'install-man-pages
664 (lambda* (#:key outputs #:allow-other-keys)
665 (let* ((out (assoc-ref outputs "out"))
666 (man (string-append out "/share/man/man1")))
667 (for-each (lambda (file)
668 (install-file file man))
669 (find-files ".." ".*.1$"))
671 (add-after 'separate-outputs 'glib-or-gtk-compile-schemas
672 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
673 (add-after 'glib-or-gtk-compile-schemas 'glib-or-gtk-wrap
674 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
676 `(("gettext" ,gettext-minimal)
677 ("udev" ,eudev) ;for libudev.h
678 ;; For generating the C++ wrappers.
682 ("pystache" ,python-pystache)
683 ("six" ,python-six)))
685 `(("bctoolbox" ,bctoolbox)
687 ("bellesip" ,belle-sip)
692 ("mediastreamer2" ,mediastreamer2)
693 ("notify" ,libnotify)
698 (synopsis "Belledonne Communications Softphone Library")
699 (description "Liblinphone is a high-level SIP library integrating
700 all calling and instant messaging features into an unified
701 easy-to-use API. It is the cross-platform VoIP library on which the
702 Linphone application is based on, and that anyone can use to add audio
703 and video calls or instant messaging capabilities to an application.")
704 (home-page "https://gitlab.linphone.org/BC/public/liblinphone")
705 (license license:gpl2+)))
707 (define-public linphoneqt
715 (string-append "https://www.linphone.org/releases/sources/" name
716 "/" name "-" version ".tar.gz"))
718 (base32 "1g2zrr9li0g1hgs6vys06vr98h5dx36z22hx7a6ry231536c002a"))
719 (patches (search-patches "linphoneqt-tabbutton.patch"))))
720 (build-system qt-build-system)
722 `(#:tests? #f ; No test target
724 (modify-phases %standard-phases
725 (add-after 'unpack 'fix-cmake-error
727 ;; This is fixed in commit efed2fd8 of the master branch.
728 (substitute* "CMakeLists.txt"
732 (add-after 'unpack 'set-version-string
734 (substitute* "src/app/AppController.cpp"
735 (("LINPHONE_QT_GIT_VERSION")
736 (format #f "~s" ,version)))
738 (add-after 'install 'extend-shared-resources
739 ;; Not using the FHS exposes an issue where the client refers to
740 ;; its own "share" directory, which lacks sound files installed by
742 (lambda* (#:key inputs outputs #:allow-other-keys)
743 (let ((liblinphone (assoc-ref inputs "linphone"))
744 (out (assoc-ref outputs "out")))
745 (symlink (string-append liblinphone "/share/sounds")
746 (string-append out "/share/sounds"))
749 `(("qttools" ,qttools)))
751 `(("bctoolbox" ,bctoolbox)
753 ("bellesip" ,belle-sip)
754 ("linphone" ,liblinphone)
755 ("mediastreamer2" ,mediastreamer2)
757 ("qtdeclarative" ,qtdeclarative)
758 ("qtgraphicaleffects" ,qtgraphicaleffects)
759 ("qtquickcontrols" ,qtquickcontrols)
760 ("qtquickcontrols2" ,qtquickcontrols2)
762 (synopsis "Desktop client for the Linphone SIP softphone")
763 (description "Linphone is a SIP softphone for voice and video over IP calling
764 (VoIP) and instant messaging. Amongst its features are:
766 @item High Definition (HD) audio and video calls
767 @item Multiple call management (pause and resume)
769 @item Audio conferencing (merge calls into a conference call)
770 @item Call recording and replay (audio only)
771 @item Instant Messaging with message delivery status (IMDN)
772 @item Picture and file sharing
773 @item Echo cancellation
774 @item Secure user authentication using TLS client certificates
775 @item SRTP, zRTP and SRTP-DTLS voice and video encryption
776 @item Telephone tone (DTMF) support using SIP INFO or RFC 4733
777 @item Audio codecs: opus, speex, g711, g729, gsm, iLBC, g722, SILK, etc.
778 @item Video codecs: VP8, H.264 and H.265 with resolutions up to 1080P, MPEG4
780 (home-page "https://gitlab.linphone.org/BC/public/linphone-desktop")
781 (license license:gpl2+)))
783 (define-public msopenh264
791 (string-append "https://www.linphone.org/releases/sources/plugins/"
792 name "/" name "-" version ".tar.gz"))
794 (base32 "0rdxgazm52560g52pp6mp3mwx6j1z3h2zyizzfycp8y8zi92fqm8"))
797 ;; For support for OpenH264 version >= 2.
801 (string-append "https://gitlab.linphone.org/BC/public/msopenh264/"
802 "commit/493d147d28c9a0f788ba4e50b47a1ce7b18bf326"
804 (file-name "msopenh264-openh264.patch")
807 "0mmd7nz5n9ian4rcwn200nldmy5j0dpdrna7r32rqnaw82bx3kdb")))))))
808 (build-system cmake-build-system)
810 `(#:tests? #f ; No test target
812 (list "-DENABLE_STATIC=NO"))) ; Not required
814 `(("mediastreamer2" ,mediastreamer2)
815 ("openh264" ,openh264)
817 (synopsis "Media Streamer H.264 Codec")
818 (description "MsOpenH264 is an H.264 encoder/decoder plugin for
819 mediastreamer2 based on the openh264 library.")
820 (home-page "https://gitlab.linphone.org/BC/public/msopenh264")
821 (license license:gpl2+)))
823 (define-public mssilk
831 (string-append "https://www.linphone.org/releases/sources/plugins/"
832 name "/" name "-" version ".tar.gz"))
834 (base32 "07ip0vd29d1n98lnqs5wpimcsmpm65yl7g5vk4hbqghcbsjw94lj"))))
835 (build-system cmake-build-system)
837 `(#:tests? #f ; No test target
839 (list "-DENABLE_STATIC=NO"))) ; Not required
841 `(("mediastreamer2" ,mediastreamer2)
843 (synopsis "Media Streamer SILK Codec")
844 (description "MSSILK is a plugin of MediaStreamer, adding support for AMR
845 codec. It is based on the Skype's SILK implementation.")
846 (home-page "https://gitlab.linphone.org/BC/public/mssilk")
847 (license license:gpl2+)))
849 (define-public mswebrtc
857 (string-append "https://www.linphone.org/releases/sources/plugins/"
858 name "/" name "-" version ".tar.gz"))
860 (base32 "1wj28hl9myhshqmn64xg0jf07aw75gmnilb5rff6rcbdxim87mqr"))))
861 (build-system cmake-build-system)
863 `(#:tests? #f ; No test target
866 "-DENABLE_STATIC=NO"))) ; Not required
868 `(("bctoolbox" ,bctoolbox)
869 ("mediastreamer2" ,mediastreamer2)
871 (synopsis "Media Streamer WebRTC Codec")
872 (description "MSWebRTC is a plugin of MediaStreamer, adding support for
873 WebRTC codec. It includes features from WebRTC, such as, iSAC and AECM.")
874 (home-page "https://gitlab.linphone.org/BC/public/mswebrtc")
875 (license license:gpl2+)))
885 (string-append "https://www.linphone.org/releases/sources/plugins/"
886 name "/" name "-" version ".tar.gz"))
888 (base32 "16c9f3z4wnj73k7y8gb0fgpr4axsm7b5zrbjvy8vsgz9gyg3agm5"))))
889 (build-system cmake-build-system)
891 `(#:tests? #f ; No test target
893 (list "-DENABLE_STATIC=NO" ; Not required
894 "-DENABLE_WIDEBAND=YES")))
896 `(("mediastreamer2" ,mediastreamer2)
897 ("opencoreamr" ,opencore-amr)
899 ("voamrwbenc" ,vo-amrwbenc)))
900 (synopsis "Media Streamer AMR Codec")
901 (description "MSAMR is a plugin of MediaStreamer, adding support for AMR
902 codec. It is based on the opencore-amr implementation.")
903 (home-page "https://gitlab.linphone.org/BC/public/msamr")
904 (license license:gpl3+)))