mediastreamer2: 2.12.1 -> 2.14.0

This commit is contained in:
Michael Raskin 2016-09-06 11:28:54 +02:00
parent 599653de54
commit 0bfe4bb9e8

View File

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