1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
| | ;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages linphone)
#:use-module (gnu packages)
#:use-module (gnu packages admin)
#:use-module (gnu packages audio)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
#:use-module (gnu packages documentation)
#:use-module (gnu packages gcc)
#:use-module (gnu packages gettext)
#:use-module (gnu packages gl)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages graphviz)
#:use-module (gnu packages gtk)
#:use-module (gnu packages image)
#:use-module (gnu packages java)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages linux)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages pth)
#: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 sqlite)
#:use-module (gnu packages telephony)
#:use-module (gnu packages tls)
#:use-module (gnu packages version-control)
#:use-module (gnu packages video)
#:use-module (gnu packages xiph)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (guix build-system qt))
(define-public bcunit
(package
(name "bcunit")
(version "3.0.2")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "0ylchj8w98ic2fkqpxc6yk4s6s0h0ql2zsz5n49jd7126m4h8dqk"))))
(build-system cmake-build-system)
(arguments
'(#:tests? #f ; No test target
#:configure-flags
(list
"-DENABLE_SHARED=YES"
"-DENABLE_STATIC=YES"
"-DENABLE_AUTOMATED=ON"
"-DENABLE_BASIC=ON"
"-DENABLE_CONSOLE=ON"
"-DENABLE_CURSES=ON"
"-DENABLE_DOC=ON"
"-DENABLE_EXAMPLES=ON"
"-DENABLE_TEST=OFF" ; Undefined reference to CU_trace_handler
"-DENABLE_MEMTRACE=ON"
"-DENABLE_DEPRECATED=OFF"))) ; Not required
(inputs
`(("curses" ,ncurses)))
(synopsis "Belledonne Communications Unit Testing Framework")
(description "BCUnit is a fork of the defunct project CUnit,
with several fixes and patches applied. It is an unit testing
framework for writing, administering, and running unit tests in C.")
(home-page "https://gitlab.linphone.org/BC/public/bcunit")
(license license:lgpl2.0+)))
(define-public bctoolbox
(package
(name "bctoolbox")
(version "0.6.0")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "1a1i70pb4hhnykkwyhhc7fv67q556l8kprny8xzgfqpj1nby2ms6"))))
(build-system cmake-build-system)
(arguments
'(#:tests? #f ; No test target
#:configure-flags
(list
"-DENABLE_SHARED=ON"
"-DENABLE_STATIC=ON"
"-DENABLE_POLARSSL=OFF" ; Deprecated in favor of MbedTLS
"-DENABLE_MBEDTLS=ON"
"-DENABLE_STRICT=YES"
"-DENABLE_TESTS_COMPONENT=ON"
"-DENABLE_TESTS=ON")))
(inputs
`(("mbedtls" ,mbedtls-apache)
("threads" ,pth)))
(propagated-inputs
`(("bcunit" ,bcunit)))
(synopsis "Belledonne Communications Tool Box")
(description "BcToolBox is an utilities library used by Belledonne
Communications softwares like belle-sip, mediastreamer2 and linphone.")
(home-page "https://gitlab.linphone.org/BC/public/bctoolbox")
(license license:gpl2+)))
(define-public belr
(package
(name "belr")
(version "0.1.3")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "1fwv2cg3qy9vdc7dimcda7nqcqc1h2cdd7ikhk7ng7q4ys8m96c1"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; No test target
#:configure-flags
(list
"-DENABLE_SHARED=ON"
"-DENABLE_STATIC=ON"
"-DENABLE_STRICT=YES"
"-DENABLE_TOOLS=YES")))
(propagated-inputs
`(("bctoolbox" ,bctoolbox)))
(synopsis "Belledonne Communications Language Recognition Library")
(description "Belr is Belledonne Communications' language recognition library,
written in C++11. It parses text inputs formatted according to a language
defined by an ABNF grammar, such as the protocols standardized at IETF.")
(home-page "https://gitlab.linphone.org/BC/public/belr")
(license license:gpl3+)))
(define-public belcard
(package
(name "belcard")
(version "1.0.2")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "0iiyrll1shnbb0561pkvdqcmx9b2cdr76xpsbaqdirc3s4xzcl0k"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; No test target
#:configure-flags
(list
"-DENABLE_SHARED=ON"
"-DENABLE_STATIC=ON"
"-DENABLE_STRICT=YES"
"-DENABLE_TOOLS=YES"
"-DENABLE_UNIT_TESTS=YES")))
(propagated-inputs
`(("bctoolbox" ,bctoolbox)
("belr" ,belr)))
(synopsis "Belledonne Communications VCard Library")
(description "Belcard is a C++ library to manipulate VCard standard format.")
(home-page "https://gitlab.linphone.org/BC/public/belcard")
(license license:gpl3+)))
(define-public bcmatroska2
(package
(name "bcmatroska2")
(version "0.23")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "1a0vlk4fhh189pfzrwbc3xbc5vyx6cnxy642d1h40045jz9y4h15"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; No test target
#:configure-flags
(list
"-DENABLE_SHARED=YES"
"-DENABLE_STATIC=YES"
"-DENABLE_EBML_WRITING=ON"
"-DENABLE_EBML_UNICODE=ON"
"-DENABLE_DEBUGCHECKS=ON"
"-DENABLE_STDIO=ON"
"-DENABLE_FILEPOS_64=ON"
"-DENABLE_DEBUG_LEAKS=ON")))
(synopsis "Belledonne Communications Media Container")
(description "BcMatroska is a free and open standard multi-media
container format. It can hold an unlimited number of video, audio,
picture, or subtitle tracks in one file. ")
(home-page "https://gitlab.linphone.org/BC/public/bcmatroska2")
(license
(list
;; For Core C and LibEBML2
;; https://www.matroska.org/node/47
license:bsd-4
;; For LibMatroska2
;; https://www.matroska.org/node/47
license:lgpl2.1+))))
(define-public bcg729
(package
(name "bcg729")
(version "1.0.4")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "01y34ky7ykjgfnf8a9f59hg61fqfjiprfrzshdz06w0lz4gvy3qs"))))
(build-system cmake-build-system)
(arguments
`(#:configure-flags
(list
"-DENABLE_SHARED=YES"
"-DENABLE_STATIC=YES"
"-DENABLE_TESTS=YES")))
(synopsis "Belledonne Communications G729 Codec")
(description "BcG729 is an implementation of both encoder and decoder of
the ITU G729 speech codec. The library written in C 99 is fully portable and
can be executed on many platforms including both ARM and x86 processors. It
supports concurrent channels encoding and decoding for multi call application
such as conferencing.")
(home-page "https://gitlab.linphone.org/BC/public/belcard")
(license license:gpl3+)))
(define-public ortp
(package
(name "ortp")
(version "1.0.2")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "016qg0lmdgmqh2kv19w9qhi4kkiyi5h1xp35g2s65b1j8ccm25d5"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; No test target
#:configure-flags
(list
"-DENABLE_SHARED=YES"
"-DENABLE_STATIC=YES"
"-DENABLE_DOC=YES"
"-DENABLE_NTP_TIMESTAMP=NO" ; "ORTP_TIMESTAMP" redefined [-Werror]
"-DENABLE_PERF=YES"
"-DENABLE_STRICT=YES"
"-DENABLE_TESTS=YES"
"-DENABLE_DEBUG_LOGS=YES")))
(native-inputs
`(("dot" ,graphviz)
("doxygen" ,doxygen)
("threads" ,pth)))
(propagated-inputs
`(("bctoolbox" ,bctoolbox)))
(synopsis "Belledonne Communications RTP Library")
(description "oRTP is a C library implementing the RTP protocol. It uses
RFC 3550 standard.")
(home-page "https://gitlab.linphone.org/BC/public/ortp")
(license license:gpl2+)))
(define-public bzrtp
(package
(name "bzrtp")
(version "1.0.6")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "12y0kkh90pixaaxfyx26ca2brhy6nw57fsypp6vh8jk1illv0j5z"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; CTest errors
#:configure-flags
(list
"-DENABLE_SHARED=YES"
"-DENABLE_STATIC=YES"
"-DENABLE_ZIDCACHE=YES"
"-DENABLE_STRICT=YES"
"-DENABLE_TESTS=YES")))
(native-inputs
`(("sqlite3" ,sqlite)
("xml2" ,libxml2)))
(propagated-inputs
`(("bctoolbox" ,bctoolbox)))
(synopsis "Belledonne Communications ZRTP Library")
(description "BZRTP is an implementation of ZRTP keys exchange
protocol, written in C. It is fully portable and can be executed on many
platforms including both ARM and x86.")
(home-page "https://gitlab.linphone.org/BC/public/bzrtp")
(license license:gpl2+)))
(define-public mediastreamer
(package
(name "mediastreamer")
(version "2.16.1")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "0whpqr69wz0pnzvragkpfblxhd0rds8k06c3mw5a0ag216a1yd9k"))
(patches
(list
;; For srtp2 compatibility.
(origin
(method url-fetch)
(uri
(string-append "https://gitlab.linphone.org/BC/public/mediastreamer2/commit/"
"97903498364ae2596e790cb2c2ce9ac76c04d64a.diff"))
(file-name "srtp.patch")
(sha256
(base32 "1k1cj72gyzb05ann6amc54gim19mwqz84y36kk5sb77p5qwg50hf")))
;; For fixing definitions.
(origin
(method url-fetch)
(uri
(string-append "https://gitlab.linphone.org/BC/public/mediastreamer2/commit/"
"de3a24b795d7a78e78eab6b974e7ec5abf2259ac.diff"))
(file-name "msfactory.patch")
(sha256
(base32 "18lsn9fc9di8bzr12ck3h9k9h8xvvhjzgkimbj9p4vmxxwhjaxn2")))))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; No test target
#:configure-flags
(list
;; To detect the required directory.
(string-append "-DSRTP_INCLUDE_DIRS="
(string-append (assoc-ref %build-inputs "srtp") "/include"))
;; To detect the required directory.
(string-append "-DSRTP_LIBRARIES="
(string-append (assoc-ref %build-inputs "srtp") "/lib"))
;; *** Generic ***
"-DENABLE_SHARED=YES"
"-DENABLE_STATIC=YES"
"-DENABLE_DEBUG_LOGS=YES"
"-DENABLE_DOC=YES"
"-DENABLE_NON_FREE_CODECS=NO" ; XXX-Hazardous-XXX
"-DENABLE_PCAP=YES"
"-DENABLE_STRICT=YES"
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_TOOLS=YES"
"-DENABLE_UNIT_TESTS=YES"
;; *** Encryption ***
"-DENABLE_SRTP=NO" ; Undefined references
"-DENABLE_ZRTP=YES"
;; *** Audio ***
"-DENABLE_SOUND=YES"
"-DENABLE_ALSA=YES"
"-DENABLE_ANDROIDSND=NO" ; Not compatible
"-DENABLE_ARTSC=NO" ; Not available
"-DENABLE_MACSND=NO" ; Not compatible
"-DENABLE_MACAQSND=NO" ; Not compatible
"-DENABLE_QSA=NO" ; Not available
"-DENABLE_OSS=NO" ; Deprecated
"-DENABLE_PORTAUDIO=NO" ; Parsing errors
"-DENABLE_PULSEAUDIO=YES"
;; *** Standards ***
"-DENABLE_G726=YES"
"-DENABLE_GSM=NO" ; Need recompilation with -fPIC
"-DENABLE_BV16=NO" ; Not available
"-DENABLE_OPUS=YES"
"-DENABLE_SPEEX_CODEC=YES"
"-DENABLE_SPEEX_DSP=YES"
"-DENABLE_G729=YES"
"-DENABLE_G729B_CNG=YES"
"-DENABLE_RESAMPLE=YES"
;; *** Video ***
"-DENABLE_VIDEO=YES"
"-DENABLE_FFMPEG=YES"
"-DENABLE_GL=YES"
"-DENABLE_GLX=YES"
"-DENABLE_SDL=YES"
"-DENABLE_V4L=YES"
"-DENABLE_X11=YES"
"-DENABLE_XV=YES"
"-DENABLE_THEORA=YES"
"-DENABLE_VPX=YES"
;; *** Formats ***
"-DENABLE_MKV=YES"
"-DENABLE_QNX=NO" ; Not available
"-DENABLE_VT_H264=NO" ; Not available
"-DENABLE_JPEG=YES")))
(native-inputs
`(("dot" ,graphviz)
("doxygen" ,doxygen)
("python" ,python)))
(inputs
`(("alsa" ,alsa-lib)
("ffmpeg" ,ffmpeg)
("glew" ,glew)
("glu" ,glu)
("glx" ,mesa-utils)
("gsm" ,gsm)
("opengl" ,mesa)
("opus" ,opus)
("pcap" ,libpcap)
("portaudio" ,portaudio)
("pulseaudio" ,pulseaudio)
("spandsp" ,spandsp)
("speex" ,speex)
("speexdsp" ,speexdsp)
("srtp" ,libsrtp)
("theora" ,libtheora)
("turbojpeg" ,libjpeg-turbo)
("v4l" ,v4l-utils)
("vpx" ,libvpx)
("x11" ,libx11)
("xv" ,libxv)))
(propagated-inputs
`(("bcg729" ,bcg729)
("bcmatroska2" ,bcmatroska2)
("bctoolbox" ,bctoolbox)
("zrtp", bzrtp)
("ortp" ,ortp)))
(synopsis "Belledonne Communications Streaming Engine")
(description "Mediastreamer is a powerful and lightweight streaming
engine for telephony applications. This media processing and streaming toolkit
is responsible for receiving and sending all multimedia streams in Linphone,
including media capture, encoding and decoding, and rendering.")
(home-page "https://gitlab.linphone.org/BC/public/mediastreamer2")
(license license:gpl2+)))
(define-public belle-sip
(package
(name "belle-sip")
(version "1.6.3")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "0s55kggmgxap54dkw5856bgk4xg7yvbzialpxnjm0zhpic3hff1z"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; CTest errors
#:configure-flags
(list
"-DENABLE_SHARED=YES"
"-DENABLE_STATIC=YES"
"-DENABLE_RTP_MAP_ALWAYS_IN_SDP=ON"
"-DENABLE_STRICT=YES"
"-DENABLE_TUNNEL=OFF" ; Not available
"-DENABLE_TESTS=ON")))
(inputs
`(("antlr3" ,antlr3-3.3)
("antlr3c" ,libantlr3c)
("threads" ,pth)
("java" ,icedtea)
("zlib" ,zlib)))
(propagated-inputs
`(("bctoolbox" ,bctoolbox)))
(synopsis "Belledonne Communications SIP Library")
(description "Belle-sip is a modern library implementing SIP transport,
transaction and dialog layers. It is written in C, with an object-oriented
API. It also comprises a simple HTTP/HTTPS client implementation.")
(home-page "https://gitlab.linphone.org/BC/public/belle-sip")
(license license:gpl2+)))
(define-public linphone
(package
(name "linphone")
(version "3.12.0")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/" name
"/" name "-" version ".tar.gz"))
(sha256
(base32 "0phhkx55xdyg28d4wn8l8q4yvsmdgzmjiw584d4s190sq1azm91x"))
(patches
(list
;; For csharp-wrapper's syntactical error.
(origin
(method url-fetch)
(uri
(string-append "https://gitlab.linphone.org/BC/public/liblinphone/commit/"
"cb84ac9a36e1771b7e5112164355c939b858c353.diff"))
(file-name "csharp-wrapper.patch")
(sha256
(base32 "1iimwws2j5hcidj82kwzzp6v9nhmq8m5bbycl4szhm5ddlsl8lqf")))))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; No test target
#:configure-flags
(list
(string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
(string-append (assoc-ref %build-inputs "gtk2") "/lib/gtk-2.0/include"))
(string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
(string-append (assoc-ref %build-inputs "glib") "/lib/glib-2.0/include"))
"-DENABLE_SHARED=YES"
"-DENABLE_STATIC=YES"
"-DENABLE_CONSOLE_UI=YES"
"-DENABLE_DATE=YES"
"-DENABLE_DAEMON=YES"
"-DENABLE_DOC=YES"
"-DENABLE_JAVADOC=NO" ; Translation errors
"-DENABLE_GTK_UI=YES"
"-DENABLE_LDAP=YES"
"-DENABLE_SQLITE_STORAGE=YES"
"-DENABLE_LIME=YES"
"-DENABLE_NOTIFY=YES"
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_STRICT=NO" ; -Werror=unused-but-set-variable
"-DENABLE_TOOLS=YES"
"-DENABLE_TUNNEL=NO" ; Not available
"-DENABLE_TUTORIALS=YES"
"-DENABLE_UNIT_TESTS=YES"
"-DENABLE_UPDATE_CHECK=YES"
"-DENABLE_VIDEO=YES"
"-DENABLE_ASSISTANT=YES"
"-DENABLE_DEBUG_LOGS=YES"
"-DENABLE_NLS=YES"
"-DENABLE_VCARD=YES"
"-DENABLE_ROOTCA_DOWNLOAD=YES"
"-DENABLE_CXX_WRAPPER=YES"
"-DENABLE_CSHARP_WRAPPER=ON")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda _
(substitute* "gtk/main.c"
(("#include \"liblinphone_gitversion.h\"")
""))
#t)))))
(native-inputs
`(("dot" ,graphviz)
("doxygen" ,doxygen)
("gettext" ,gettext-minimal)
("iconv" ,libiconv)
("intl" ,intltool)
("python" ,python)
("xml2" ,libxml2)
("zlib" ,zlib)))
(inputs
`(("gtk2" ,gtk+-2)
("glib" ,glib)
("java" ,icedtea "jdk")
("notify" ,libnotify)
("pystache" ,python-pystache)
("six" ,python-six)
("sqlite" ,sqlite)
("udev" ,eudev)))
(propagated-inputs
`(("bctoolbox" ,bctoolbox)
("belcard" ,belcard)
("bellesip" ,belle-sip)
("bzrtp", bzrtp)
("mediastreamer2" ,mediastreamer)
("ortp" ,ortp)))
(synopsis "Belledonne Communications Softphone")
(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://linphone.org")
(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 cmake-build-system)
(arguments
`(#:tests? #f ; No test target
#:configure-flags
(list
"-DENABLE_DBUS=YES"
"-DENABLE_UPDATE_CHECK=YES")
#: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
`(("gcc" ,gcc-5))) ; Required for libstd.h
(inputs
`(("qtbase" ,qtbase)
("qtdeclarative" ,qtdeclarative)
("qtquickcontrols2" ,qtquickcontrols2)
("qtsvg" ,qtsvg)
("qttools" ,qttools)))
(propagated-inputs
`(("bctoolbox" ,bctoolbox)
("belcard" ,belcard)
("linphone" ,linphone)))
(synopsis "Belledonne Communications Softphone")
(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://linphone.org")
(license license:gpl2+)))
(define-public msamr
(package
(name "msamr")
(version "1.1.3")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/plugins/"
name "/" name "-" version ".tar.gz"))
(sha256
(base32 "16c9f3z4wnj73k7y8gb0fgpr4axsm7b5zrbjvy8vsgz9gyg3agm5"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; No test target
#:configure-flags
(list
"-DENABLE_SHARED=YES"
"-DENABLE_STATIC=YES"
"-DENABLE_NARROWBAND=YES"
"-DENABLE_WIDEBAND=YES")))
(inputs
`(("mediastreamer2" ,mediastreamer)
("opencoreamr" ,opencore-amr)
("ortp" ,ortp)
("voamrwbenc" ,vo-amrwbenc)))
(synopsis "Media Streamer AMR Codec")
(description "MSAMR is a plugin of MediaStreamer, adding support for
AMR codec. It is based on the opencore-amr implementation.")
(home-page "https://gitlab.linphone.org/BC/public/msamr")
(license license:gpl3+)))
(define-public msopenh264
(package
(name "msopenh264")
(version "1.2.1")
(source
(origin
(method url-fetch)
(uri
(string-append "https://www.linphone.org/releases/sources/plugins/"
name "/" name "-" version ".tar.gz"))
(sha256
(base32 "0rdxgazm52560g52pp6mp3mwx6j1z3h2zyizzfycp8y8zi92fqm8"))
(patches
(list
;; For support for OpenH264 version >= 2.
(origin
(method url-fetch)
(uri
(string-append "https://gitlab.linphone.org/BC/public/msopenh264/commit/"
"493d147d28c9a0f788ba4e50b47a1ce7b18bf326.diff"))
(file-name "openh264.patch")
(sha256
(base32 "0mmd7nz5n9ian4rcwn200nldmy5j0dpdrna7r32rqnaw82bx3kdb")))))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; No test target
#:configure-flags
(list
"-DENABLE_SHARED=YES"
"-DENABLE_STATIC=YES"
"-DENABLE_DECODER=YES")))
(inputs
`(("mediastreamer2" ,mediastreamer)
("openh264" ,openh264)
("ortp" ,ortp)))
(synopsis "Media Streamer H.264 Codec")
(description "MsOpenH264 is an H.264 encoder/decoder plugin for
mediastreamer2 based on the openh264 library.")
(home-page "https://gitlab.linphone.org/BC/public/msopenh264")
(license license:gpl2+)))
|