gnu: Add linphoneqt.

* gnu/packages/linphone.scm (linphoneqt): New variable.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
Raghav Gururajan 2020-04-11 01:21:03 +02:00 committed by Danny Milosavljevic
parent 3daf981942
commit c0cce20557
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -37,6 +37,7 @@ (define-module (gnu packages linphone)
#:use-module (gnu packages pulseaudio)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
#:use-module (gnu packages java)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages telephony)
@ -49,6 +50,7 @@ (define-module (gnu packages linphone)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system cmake)
#:use-module (guix build-system qt)
#:use-module (guix build-system gnu))
(define-public bcunit
@ -470,6 +472,50 @@ (define-public liblinphone
(home-page "https://gitlab.linphone.org/BC/public/liblinphone")
(license license:gpl2+)))
(define-public linphoneqt
(package
(name "linphoneqt")
(version "4.1.1")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "1g2zrr9li0g1hgs6vys06vr98h5dx36z22hx7a6ry231536c002a"))))
(build-system qt-build-system)
(arguments
`(#:tests? #f ; No test target
#:phases
;; For replacing undeclared variable.
(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda _
(substitute* "src/app/AppController.cpp"
(("LINPHONE_QT_GIT_VERSION")
"\"4.1.1\""))
#t)))))
(native-inputs
`(("qttools" ,qttools)))
(inputs
`(("bctoolbox" ,bctoolbox)
("belcard" ,belcard)
("bellesip" ,belle-sip)
("linphone" ,liblinphone)
("mediastreamer2" ,mediastreamer2)
("qtbase" ,qtbase)
("qtdeclarative" ,qtdeclarative)
("qtgraphicaleffects" ,qtgraphicaleffects)
("qtquickcontrols2" ,qtquickcontrols2)
("qtsvg" ,qtsvg)))
(synopsis "Belledonne Communications Softphone Application")
(description "Linphone is a softphone for voice and video over IP calling
and instant messaging. It is fully SIP-based, for all calling, presence
and IM features.")
(home-page "https://gitlab.linphone.org/BC/public/linphone-desktop")
(license license:gpl2+)))
(define-public msopenh264
(package
(name "msopenh264")