2015-04-06 23:06:50 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, alsaLib, pulseaudio, speex, gsm
|
|
|
|
, libopus, ffmpeg, libX11, libXv, mesa, glew, libtheora, libvpx, SDL, libupnp
|
|
|
|
, ortp, libv4l, libpcap, srtp, vim
|
|
|
|
}:
|
2008-02-07 11:07:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-06 23:06:50 +01:00
|
|
|
name = "mediastreamer-2.11.1";
|
2008-02-07 11:07:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-06-07 22:49:25 +01:00
|
|
|
url = "mirror://savannah/linphone/mediastreamer/${name}.tar.gz";
|
2015-04-06 23:06:50 +01:00
|
|
|
sha256 = "0gfv4k2rsyvyq838xjgsrxmmn0fkw40apqs8vakzjwzsz2c9z8pd";
|
2008-02-07 11:07:27 +00:00
|
|
|
};
|
|
|
|
|
2015-04-06 23:06:50 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "s/\(SRTP_LIBS=\"\$SRTP_LIBS -lsrtp\"\)/SRTP_LIBS=\"$(pkg-config --libs-only-l libsrtp)\"/g" configure
|
|
|
|
'';
|
2008-02-10 17:34:49 +00:00
|
|
|
|
2015-04-06 23:06:50 +01:00
|
|
|
# TODO: make it load plugins from *_PLUGIN_PATH
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
2008-02-10 17:34:49 +00:00
|
|
|
|
2015-04-06 23:06:50 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
alsaLib pulseaudio speex gsm libopus
|
|
|
|
ffmpeg libX11 libXv mesa glew libtheora libvpx SDL libupnp
|
|
|
|
ortp libv4l libpcap srtp
|
|
|
|
vim
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-external-ortp"
|
|
|
|
"--with-srtp=${srtp}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "a powerful and lightweight streaming engine specialized for voice/video telephony applications";
|
|
|
|
homepage = http://www.linphone.org/technical-corner/mediastreamer2/overview;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2008-02-07 11:07:27 +00:00
|
|
|
}
|