2015-04-07 02:15:57 +01:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, readline, openldap, cyrus_sasl, libupnp
|
2016-09-05 23:53:33 +01:00
|
|
|
, zlib, libxml2, gtk2, libnotify, speex, ffmpeg, libX11, libsoup, udev
|
2015-04-07 02:15:57 +01:00
|
|
|
, ortp, mediastreamer, sqlite, belle-sip, libosip, libexosip
|
2015-08-26 21:17:41 +01:00
|
|
|
, mediastreamer-openh264, makeWrapper
|
2015-04-07 02:15:57 +01:00
|
|
|
}:
|
2013-02-16 20:48:47 +00:00
|
|
|
|
2011-08-18 13:52:41 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-09-05 23:52:21 +01:00
|
|
|
name = "linphone-${version}";
|
|
|
|
major = "3.9";
|
|
|
|
version = "${major}.1";
|
2011-01-13 20:49:58 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-09-05 23:52:21 +01:00
|
|
|
url = "mirror://savannah/linphone/${major}.x/sources/${name}.tar.gz";
|
|
|
|
sha256 = "1b14gwq36d0sbn1125if9zydll9kliigk19zchbqiy9n2gjymrl4";
|
2011-01-13 20:49:58 +00:00
|
|
|
};
|
|
|
|
|
2015-04-07 02:15:57 +01:00
|
|
|
buildInputs = [
|
|
|
|
readline openldap cyrus_sasl libupnp zlib libxml2 gtk2 libnotify speex ffmpeg libX11
|
2016-09-05 23:53:33 +01:00
|
|
|
libsoup udev ortp mediastreamer sqlite belle-sip libosip libexosip
|
2015-04-07 02:15:57 +01:00
|
|
|
];
|
2011-01-13 20:49:58 +00:00
|
|
|
|
2015-08-26 21:17:41 +01:00
|
|
|
nativeBuildInputs = [ intltool pkgconfig makeWrapper ];
|
2012-02-17 13:03:33 +00:00
|
|
|
|
2015-04-07 02:15:57 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-ldap"
|
2016-04-16 17:49:49 +01:00
|
|
|
"--with-ffmpeg=${ffmpeg.dev}"
|
2015-04-07 02:15:57 +01:00
|
|
|
"--enable-external-ortp"
|
|
|
|
"--enable-external-mediastreamer"
|
|
|
|
];
|
2013-02-16 20:48:47 +00:00
|
|
|
|
2015-08-26 21:17:41 +01:00
|
|
|
postInstall = ''
|
|
|
|
for i in $(cd $out/bin && ls); do
|
|
|
|
wrapProgram $out/bin/$i --set MEDIASTREAMER_PLUGINS_DIR ${mediastreamer-openh264}/lib/mediastreamer/plugins
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2015-04-07 02:15:57 +01:00
|
|
|
meta = with stdenv.lib; {
|
2011-01-13 20:49:58 +00:00
|
|
|
homepage = http://www.linphone.org/;
|
|
|
|
description = "Open Source video SIP softphone";
|
2015-04-07 02:15:57 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2011-01-13 20:49:58 +00:00
|
|
|
};
|
|
|
|
}
|