2015-05-27 22:42:15 +03:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, alsaLib, libpulseaudio, speex, gsm
|
2015-04-07 01:06:50 +03:00
|
|
|
, libopus, ffmpeg, libX11, libXv, mesa, glew, libtheora, libvpx, SDL, libupnp
|
|
|
|
, ortp, libv4l, libpcap, srtp, vim
|
|
|
|
}:
|
2008-02-07 14:07:27 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-05-07 10:31:40 +03:00
|
|
|
name = "mediastreamer-2.12.1";
|
2008-02-07 14:07:27 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-06-08 01:49:25 +04:00
|
|
|
url = "mirror://savannah/linphone/mediastreamer/${name}.tar.gz";
|
2016-05-07 10:31:40 +03:00
|
|
|
sha256 = "1rzjh2ln8qd6jvfmxlnbrcx2vbajx2j9hblqq2gdn10sf97qvgqd";
|
2008-02-07 14:07:27 +03:00
|
|
|
};
|
|
|
|
|
2015-08-26 23:15:31 +03:00
|
|
|
patches = [ ./plugins_dir.patch ];
|
|
|
|
|
2015-04-07 01:06:50 +03:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "s/\(SRTP_LIBS=\"\$SRTP_LIBS -lsrtp\"\)/SRTP_LIBS=\"$(pkg-config --libs-only-l libsrtp)\"/g" configure
|
|
|
|
'';
|
2008-02-10 20:34:49 +03:00
|
|
|
|
2015-04-07 01:06:50 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
2008-02-10 20:34:49 +03:00
|
|
|
|
2015-04-07 01:06:50 +03:00
|
|
|
propagatedBuildInputs = [
|
2015-05-27 22:42:15 +03:00
|
|
|
alsaLib libpulseaudio speex gsm libopus
|
2015-04-07 01:06:50 +03:00
|
|
|
ffmpeg libX11 libXv mesa glew libtheora libvpx SDL libupnp
|
|
|
|
ortp libv4l libpcap srtp
|
|
|
|
vim
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-external-ortp"
|
|
|
|
"--with-srtp=${srtp}"
|
2015-08-26 23:15:31 +03:00
|
|
|
"--enable-xv"
|
|
|
|
"--enable-glx"
|
2015-04-07 01:06:50 +03:00
|
|
|
];
|
|
|
|
|
2015-11-20 11:11:13 +03:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
|
|
|
|
2015-04-07 01:06:50 +03:00
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 13:53:46 +03:00
|
|
|
description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications";
|
2015-04-07 01:06:50 +03:00
|
|
|
homepage = http://www.linphone.org/technical-corner/mediastreamer2/overview;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2008-02-07 14:07:27 +03:00
|
|
|
}
|