2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, pkgconfig, intltool, alsaLib, libpulseaudio, speex, gsm
|
2019-11-10 16:44:34 +00:00
|
|
|
, libopus, ffmpeg, libX11, libXv, libGLU, libGL, glew, libtheora, libvpx, SDL, libupnp
|
2016-09-06 10:28:54 +01:00
|
|
|
, ortp, libv4l, libpcap, srtp, fetchFromGitHub, cmake, bctoolbox, doxygen
|
2019-11-23 17:42:19 +00:00
|
|
|
, python, libXext, libmatroska, fetchpatch
|
2015-04-06 23:06:50 +01:00
|
|
|
}:
|
2008-02-07 11:07:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-11-23 17:42:19 +00:00
|
|
|
pname = "mediastreamer2";
|
2018-02-10 05:18:44 +00:00
|
|
|
version = "2.16.1";
|
2016-09-06 10:28:54 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BelledonneCommunications";
|
2019-11-23 17:42:19 +00:00
|
|
|
repo = pname;
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2018-02-10 05:18:44 +00:00
|
|
|
sha256 = "02745bzl2r1jqvdqzyv94fjd4w92zr976la4c4nfvsy52waqah7j";
|
2008-02-07 11:07:27 +00:00
|
|
|
};
|
|
|
|
|
2018-02-10 05:18:44 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "allow-build-without-git.patch";
|
|
|
|
url = "https://github.com/BelledonneCommunications/mediastreamer2/commit/de3a24b795d7a78e78eab6b974e7ec5abf2259ac.patch";
|
|
|
|
sha256 = "1zqkrab42n4dha0knfsyj4q0wc229ma125gk9grj67ps7r7ipscy";
|
|
|
|
})
|
|
|
|
./plugins_dir.patch
|
|
|
|
];
|
2015-08-26 21:15:31 +01:00
|
|
|
|
2016-09-06 10:28:54 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool cmake doxygen python ];
|
2008-02-10 17:34:49 +00:00
|
|
|
|
2015-04-06 23:06:50 +01:00
|
|
|
propagatedBuildInputs = [
|
2015-05-27 20:42:15 +01:00
|
|
|
alsaLib libpulseaudio speex gsm libopus
|
2019-11-10 16:44:34 +00:00
|
|
|
ffmpeg libX11 libXv libGLU libGL glew libtheora libvpx SDL libupnp
|
2016-09-06 10:28:54 +01:00
|
|
|
ortp libv4l libpcap srtp bctoolbox libXext libmatroska
|
2015-04-06 23:06:50 +01:00
|
|
|
];
|
|
|
|
|
2019-01-11 13:39:44 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
2019-11-23 17:42:19 +00:00
|
|
|
"-DGIT_VERSION=\"v${version}\""
|
2019-01-11 13:39:44 +00:00
|
|
|
"-Wno-error=deprecated-declarations"
|
|
|
|
"-Wno-error=cast-function-type"
|
|
|
|
];
|
2019-11-23 17:42:19 +00:00
|
|
|
NIX_LDFLAGS = "-lXext";
|
2015-11-20 08:11:13 +00:00
|
|
|
|
2015-04-06 23:06:50 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications";
|
2019-11-23 17:42:19 +00:00
|
|
|
homepage = http://www.linphone.org/technical-corner/mediastreamer2;
|
2015-04-06 23:06:50 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2008-02-07 11:07:27 +00:00
|
|
|
}
|