From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Gradl Subject: [Patch 8/10] Add libring. Date: Mon, 12 Sep 2016 21:30:07 -0500 Message-ID: <87lgywzg40.fsf@openmailbox.org> References: <87mvjc1quq.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjdUL-0000hA-D6 for guix-devel@gnu.org; Mon, 12 Sep 2016 22:30:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjdUF-0003M6-U9 for guix-devel@gnu.org; Mon, 12 Sep 2016 22:30:20 -0400 Received: from smtp14.openmailbox.org ([62.4.1.48]:44254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjdUF-0003KZ-K1 for guix-devel@gnu.org; Mon, 12 Sep 2016 22:30:15 -0400 In-Reply-To: <87mvjc1quq.fsf@openmailbox.org> (Lukas Gradl's message of "Mon, 12 Sep 2016 21:22:05 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0008-gnu-Add-libring.patch Content-Transfer-Encoding: quoted-printable From=20ad9397f36c7d4e8797c38a838f27079b8ba32631 Mon Sep 17 00:00:00 2001 From: Lukas Gradl Date: Sun, 28 Aug 2016 12:26:23 -0500 Subject: [PATCH 08/10] gnu: Add libring. * gnu/packages/telephony.scm (libring): New variable. =2D-- gnu/packages/telephony.scm | 94 ++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 94 insertions(+) diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index bd849d6..96b7489 100644 =2D-- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -25,12 +25,24 @@ #:use-module (gnu packages) #:use-module (gnu packages audio) #:use-module (gnu packages autotools) + #:use-module (gnu packages base) + #:use-module (gnu packages boost) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) + #:use-module (gnu packages crypto) + #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) + #:use-module (gnu packages libupnp) #:use-module (gnu packages linux) #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) + #:use-module (gnu packages perl) + #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages pulseaudio) + #:use-module (gnu packages serialization) #:use-module (gnu packages tls) + #:use-module (gnu packages video) #:use-module (gnu packages xiph) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) @@ -469,3 +481,85 @@ patches, most notably the use of gnutls instead of ope= nssl for encryption.") license:gpl3+ ; sfl-patches license:lgpl2+))))) ; bundled resample =20 +(define-public libring + (let ((commit "41e032c81a9cdef457d2ead3767abbd6bcee2a16")) ; This is the + ; commit used by the AUR package. + (package + (name "libring") + (version (string-append "2.2.0-1." (string-take commit 7))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url + "https://gerrit-ring.savoirfairelinux.com/ring-daemon.git") + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (modules '((guix build utils))) + (snippet + '(begin + (delete-file-recursively "contrib") + (substitute* "src/media/video/video_scaler.cpp" + ; Fix compatability with recent versions of ffmpeg: + (("PIX_FMT_RGB") "AV_PIX_FMT_FLAG_RGB") + (("PIX_FMT_PLANAR") "AV_PIX_FMT_FLAG_PLANAR")) + (substitute* "src/media/video/video_input.h" + (("#include \"threadloop.h\"") + (string-append "#include \"threadloop.h\"\n" + "#include \"video/video_base.h\""))))) + (sha256 + (base32 + "05jqmbihn45pajbyvbb45l1084kr285p23mmmncvqcvdzzw87437")))) + (build-system gnu-build-system) + (inputs + `(("alsa-lib" ,alsa-lib) + ("boost" ,boost) + ("dbus-c++" ,dbus-c++) + ("eudev" ,eudev) + ("ffmpeg" ,ffmpeg) + ("flac" ,flac) + ("gmp" ,gmp) + ("gsm" ,gsm) + ("jack" ,jack-1) + ("jsoncpp" ,jsoncpp) + ("libogg" ,libogg) + ("opendht" ,opendht) + ("opus" ,opus) + ("pcre" ,pcre) + ("pjproject" ,pjproject-sfl) + ("pulseaudio" ,pulseaudio) + ("libsamplerate" ,libsamplerate) + ("libsndfile" ,libsndfile) + ("speex" ,speex) + ("libupnp" ,libupnp) + ("libvorbis" ,libvorbis) + ("libx264" ,libx264) + ("yaml-cpp" ,yaml-cpp) + ("zlib" ,zlib))) + (native-inputs + `(("autoconf" ,autoconf) + ("pkg-config" ,pkg-config) + ("automake" ,automake) + ("libtool" ,libtool) + ("cppunit" ,cppunit) + ("perl" ,perl))) ; Needed for documentation. + (arguments + `(#:tests? #f ; The tests fail to compile due to missing headers. + #:phases + (modify-phases %standard-phases + (add-before 'configure 'autoconf + (lambda _ + (zero? (system* "autoreconf" "-vfi")))) + (add-before 'build 'add-lib-dir + (lambda _ + (zero? (system* "mkdir" "src/lib"))))))) + (synopsis "Distributed multimedia communications platform") + (description "Ring is a secure and distributed voice, video and chat +communication platform that requires no centralized server and leaves the +power of privacy in the hands of the user. It supports the SIP and IAX +protocols, as well as decentralized calling using P2P-DHT. + +This package provides a library and daemon implementing the Ring core func= tionality.") + (home-page "https://ring.cx/") + (license license:gpl3+)))) + =2D-=20 2.9.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX12SvAAoJEFP7dyh+2DCRqYsP/R1iS4G4Vd24HMMKj8KxKlhW xRT9IT58nyXkvmw1HcxFN16LE7bn2s230YoB4MWp1TwqWionP8deeTk6NOWaTMPb D6vtIokaUaZ60Ve9x+E8J1t9RCm80HJLWH93dojNPGIgTxqZ8FGuXLq1FlfZp1ZB 75MxQakcm19ZBbJ+8qtR/uP6V6wtH8OycmZeD2/SfUZAx21G5PjhD8N87yaCznKz PLtAzE5VIMx5rZP5oGLL2dk8d2oTcP9eZwiKA0Lkf6/oRFQsVDF2r/tZ6RLzD5P9 cFeNriCIwQofqGtT1iYhbp2isXIrmm5uT6ojPphGZ+BF1cJYzwa1r8ugnY5UM6pw DKU5RWH1emH2GxW27JVGA5YB8J4hsPLIiWPk0WqjqioMjwY+lbxerBB6ooXG2sYk DjqWtVW83ZVoAgOyyof91UD76mdSF3wqn6ZN9fkIg3dqYDBrhQUsTnq2sLYHlV7t joXWiH+BGwD3zsp5bHpQ4Fc2nvEPK3jLLg3GPJG5iJaG7Twq1wb5+MzMz1sRXiAd Jw5U95277v48vkx5MKEE7Jxf3xlurHxFBS50zRTpCqHqcRAHam2W9WXSXAjb5FLX 4bVPIT79jZV8TKRHlOAYpWMAobLkGtq+LIcCEFL2liwhlTZociOXYfuA4R0hjpHt hqAUcbIRTk2fCz4txbWf =eesk -----END PGP SIGNATURE----- --==-=-=--