The origin used as the "sfl-patches" input contained bundled library tarballs,
and weighed 217 MiB. After this change, it weighs 3.3 MiB.
* gnu/packages/jami.scm (jami-source): Rename #:without-daemon to
\#:keep-contrib-patches. Delete the daemon/contrib/tarballs sub-directory even
when keeping the patches. Delete extraneous code.
(%sfl-patches, %jami-sources): New variables.
(pjproject-jami, ffmpeg-jami, libring): Adjust to use the above variables.
Now that the base pjproject is built as a shared library, the cost of adding
dependencies shared with Jami is minimal. The pjproject-jami now differs only
by its added patches.
* gnu/packages/jami.scm (pjproject-jami)[arguments]: Use the
substitute-keyword-arguments macro to reuse the base pjproject package
arguments, adding only the 'apply-patches phase.
* gnu/packages/patches/pjproject-correct-the-cflags-field.patch: Add patch.
* gnu/packages/patches/pjproject-fix-pkg-config-ldflags.patch: Likewise.
* gnu/local.mk (dist_patch_DATA): Register the new patches.
* gnu/packages/telephony.scm (pjproject): Use them.
* gnu/packages/jami.scm (pjproject-jami): Remove a patch from
pjproject-jami that is already applied against pjproject.
This fixes a bug where Jami crashes while disconnecting from an audio call.
* gnu/packages/jami.scm (pjproject-jami)[arguments]: Use -DNDEBUG flag.
Signed-off-by: Christopher Baines <mail@cbaines.net>
As this package has been deprecated for over a year.
* gnu/packages/jami.scm (jami-client-gnome): Remove variable.
Signed-off-by: Christopher Baines <mail@cbaines.net>
This package is needed because Jami uses a modified version
of ffmpeg, which provides GPU hardware acceleration, automatical
adapting of bitrate and extra codecs. Because of the configure flags
list being long, it is better to keep them separated in variables,
instead of littering the package definition.
* gnu/packages/jami.scm (ffmpeg-jami, %ffmpeg-default-configure-flags,
%ffmpeg-linux-configure-flags, %ffmpeg-linux-x86-configure-flags):
New variables.
(ffmpeg-compose-configure-flags): New procedure.
(libring)[inputs]: Use ffmpeg-jami instead of ffmpeg.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This library isn't mandatory, but it works better with new
routers than libupnp.
* gnu/packages/jami.scm (libring)[inputs]: Add libnatpmp.
Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>
* gnu/packages/jami.scm (pjproject-jami)
[native-inputs]: Rename "savoir-faire-linux-patches" to "sfl-patches".
[arguments]: Move Jami patching procedure to ...
(jami-apply-dependency-patches): ... this new procedure.
Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>
The package name changed from Ring to Jami. Package tarballs start now with
"jami_" prefix. The "ring-release" folder is also deprecated, let's use the
"release" folder instead.
* gnu/packages/jami.scm (jami-source)[origin]:
Change the uri from "https://dl.jami.net/ring-release/tarballs/ring_"
to "https://dl.jami.net/release/tarballs/jami_".
Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>
Jami is a massive package and its developers modify many libraries. Keeping
them in a single file makes maintenance easier.
* gnu/packages/telephony.scm (%jami-version, jami-source,
pjproject-jami, libring, libringclient,
jami, jami-client-gnome): Move to ...
* gnu/packages/jami.scm: ... this new file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>