mediastreamer2: 2.12.1 -> 2.14.0
This commit is contained in:
parent
599653de54
commit
0bfe4bb9e8
1 changed files with 15 additions and 20 deletions
|
@ -1,39 +1,34 @@
|
|||
{ stdenv, fetchurl, pkgconfig, intltool, alsaLib, libpulseaudio, speex, gsm
|
||||
, libopus, ffmpeg, libX11, libXv, mesa, glew, libtheora, libvpx, SDL, libupnp
|
||||
, ortp, libv4l, libpcap, srtp, vim
|
||||
, ortp, libv4l, libpcap, srtp, fetchFromGitHub, cmake, bctoolbox, doxygen
|
||||
, python, libXext, libmatroska, openssl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mediastreamer-2.12.1";
|
||||
baseName = "mediastreamer2";
|
||||
version = "2.14.0";
|
||||
name = "${baseName}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://savannah/linphone/mediastreamer/${name}.tar.gz";
|
||||
sha256 = "1rzjh2ln8qd6jvfmxlnbrcx2vbajx2j9hblqq2gdn10sf97qvgqd";
|
||||
src = fetchFromGitHub {
|
||||
owner = "BelledonneCommunications";
|
||||
repo = "${baseName}";
|
||||
rev = "${version}";
|
||||
sha256 = "1b59rzsaw54mhy4pz9hndmim4rgidkn7s6c4iyl34mz58lwxpmqp";
|
||||
};
|
||||
|
||||
patches = [ ./plugins_dir.patch ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s/\(SRTP_LIBS=\"\$SRTP_LIBS -lsrtp\"\)/SRTP_LIBS=\"$(pkg-config --libs-only-l libsrtp)\"/g" configure
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig intltool ];
|
||||
nativeBuildInputs = [ pkgconfig intltool cmake doxygen python ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
alsaLib libpulseaudio speex gsm libopus
|
||||
ffmpeg libX11 libXv mesa glew libtheora libvpx SDL libupnp
|
||||
ortp libv4l libpcap srtp
|
||||
vim
|
||||
ortp libv4l libpcap srtp bctoolbox libXext libmatroska
|
||||
openssl
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-external-ortp"
|
||||
"--with-srtp=${srtp}"
|
||||
"--enable-xv"
|
||||
"--enable-glx"
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
||||
NIX_CFLAGS_COMPILE = " -DGIT_VERSION=\"v2.14.0\" -Wno-error=deprecated-declarations ";
|
||||
NIX_LDFLAGS = " -lXext -lssl ";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications";
|
||||
|
|
Loading…
Reference in a new issue