Merge pull request #9462 from ts468/upstream.linphone
linphone: update linphone with dependencies
This commit is contained in:
@@ -9,11 +9,11 @@ let
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "belle-sip-1.4.0";
|
||||
name = "belle-sip-1.4.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://savannah/linphone/belle-sip/${name}.tar.gz";
|
||||
sha256 = "1lwxfvwvclbh0bfwf69jrknqzqh1igzm293wwwbmq4kn8c5fiypz";
|
||||
sha256 = "0q1d3fqsrxi3kxcjcibr376js25h6in8c1hm7c53wz252jx6f42b";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ jre ];
|
||||
|
||||
@@ -4,18 +4,19 @@
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mediastreamer-2.11.1";
|
||||
name = "mediastreamer-2.11.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://savannah/linphone/mediastreamer/${name}.tar.gz";
|
||||
sha256 = "0gfv4k2rsyvyq838xjgsrxmmn0fkw40apqs8vakzjwzsz2c9z8pd";
|
||||
sha256 = "1g6gawrlz1lixzs1kzckm3rxc401ww8pi00x7r5kb84bdijb02cc";
|
||||
};
|
||||
|
||||
patches = [ ./plugins_dir.patch ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s/\(SRTP_LIBS=\"\$SRTP_LIBS -lsrtp\"\)/SRTP_LIBS=\"$(pkg-config --libs-only-l libsrtp)\"/g" configure
|
||||
'';
|
||||
|
||||
# TODO: make it load plugins from *_PLUGIN_PATH
|
||||
nativeBuildInputs = [ pkgconfig intltool ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -28,6 +29,8 @@ stdenv.mkDerivation rec {
|
||||
configureFlags = [
|
||||
"--enable-external-ortp"
|
||||
"--with-srtp=${srtp}"
|
||||
"--enable-xv"
|
||||
"--enable-glx"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
20
pkgs/development/libraries/mediastreamer/msopenh264.nix
Normal file
20
pkgs/development/libraries/mediastreamer/msopenh264.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ stdenv, fetchurl, autoreconfHook, pkgconfig, mediastreamer, openh264 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mediastreamer-openh264-${version}";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download-mirror.savannah.gnu.org/releases/linphone/plugins/sources/msopenh264-${version}.tar.gz";
|
||||
sha256 = "1622ma8g4yqvxa8pqwddsmhlpwak31i8zfl88f60k71k4dplw845";
|
||||
};
|
||||
|
||||
buildInputs = [ autoreconfHook pkgconfig mediastreamer openh264 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "H.264 encoder/decoder plugin for mediastreamer2";
|
||||
homepage = http://www.linphone.org/technical-corner/mediastreamer2/overview;
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
24
pkgs/development/libraries/mediastreamer/plugins_dir.patch
Normal file
24
pkgs/development/libraries/mediastreamer/plugins_dir.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
diff -uNr mediastreamer2/src/base/msfactory.c mediastreamer2-new/src/base/msfactory.c
|
||||
--- a/src/base/msfactory.c 2015-05-13 16:53:49.801113249 +0200
|
||||
+++ b/src/base/msfactory.c 2015-08-26 21:35:44.994724647 +0200
|
||||
@@ -630,12 +630,18 @@
|
||||
}
|
||||
|
||||
void ms_factory_init_plugins(MSFactory *obj) {
|
||||
+ char *package_plugins_dir;
|
||||
if (obj->plugins_dir == NULL) {
|
||||
+ package_plugins_dir=getenv("MEDIASTREAMER_PLUGINS_DIR");
|
||||
+ if (package_plugins_dir!=NULL){
|
||||
+ obj->plugins_dir = ms_strdup(package_plugins_dir);
|
||||
+ } else {
|
||||
#ifdef PACKAGE_PLUGINS_DIR
|
||||
- obj->plugins_dir = ms_strdup(PACKAGE_PLUGINS_DIR);
|
||||
+ obj->plugins_dir = ms_strdup(PACKAGE_PLUGINS_DIR);
|
||||
#else
|
||||
- obj->plugins_dir = ms_strdup("");
|
||||
+ obj->plugins_dir = ms_strdup("");
|
||||
#endif
|
||||
+ }
|
||||
}
|
||||
if (strlen(obj->plugins_dir) > 0) {
|
||||
ms_message("Loading ms plugins from [%s]",obj->plugins_dir);
|
||||
22
pkgs/development/libraries/openh264/default.nix
Normal file
22
pkgs/development/libraries/openh264/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ stdenv, fetchurl, nasm }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "openh264-1.4.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/cisco/openh264/archive/v1.4.0.tar.gz";
|
||||
sha256 = "08haj0xkyjlwbpqdinxk0cmvqw89bx89ly0kqs9lf87fy6ksgfd1";
|
||||
};
|
||||
|
||||
buildInputs = [ nasm ];
|
||||
|
||||
installPhase = ''
|
||||
make PREFIX=$out install
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A codec library which supports H.264 encoding and decoding";
|
||||
homepage = http://www.openh264.org;
|
||||
license = stdenv.lib.licenses.bsd2;
|
||||
};
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ortp-0.24.1";
|
||||
name = "ortp-0.24.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://savannah/linphone/ortp/sources/${name}.tar.gz";
|
||||
sha256 = "1mach7cdq4kydqkll8ra1kir818da07z253rf9pihifipqhcxv6i";
|
||||
sha256 = "05k6ianphr533qnjwxsv7jnh7fb2sq0dj1pdy1bk2w5khmlwfdyb";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
Reference in New Issue
Block a user