2015-04-07 03:15:57 +02:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, readline, openldap, cyrus_sasl, libupnp
|
|
|
|
, zlib, libxml2, gtk2, libnotify, speex, ffmpeg, libX11, polarssl, libsoup, udev
|
|
|
|
, ortp, mediastreamer, sqlite, belle-sip, libosip, libexosip
|
2015-08-26 22:17:41 +02:00
|
|
|
, mediastreamer-openh264, makeWrapper
|
2015-04-07 03:15:57 +02:00
|
|
|
}:
|
2013-02-16 21:48:47 +01:00
|
|
|
|
2011-08-18 14:52:41 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-26 17:08:27 +02:00
|
|
|
name = "linphone-3.8.5";
|
2011-01-13 21:49:58 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-04-07 03:15:57 +02:00
|
|
|
url = "mirror://savannah/linphone/3.8.x/sources/${name}.tar.gz";
|
2015-08-26 17:08:27 +02:00
|
|
|
sha256 = "10brlbwkk61nhd5v2sim1vfv11xm138l1cqqh3imhs2sigmzzlax";
|
2011-01-13 21:49:58 +01:00
|
|
|
};
|
|
|
|
|
2015-04-07 03:15:57 +02:00
|
|
|
buildInputs = [
|
|
|
|
readline openldap cyrus_sasl libupnp zlib libxml2 gtk2 libnotify speex ffmpeg libX11
|
|
|
|
polarssl libsoup udev ortp mediastreamer sqlite belle-sip libosip libexosip
|
|
|
|
];
|
2011-01-13 21:49:58 +01:00
|
|
|
|
2015-08-26 22:17:41 +02:00
|
|
|
nativeBuildInputs = [ intltool pkgconfig makeWrapper ];
|
2012-02-17 14:03:33 +01:00
|
|
|
|
2015-04-07 03:15:57 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-ldap"
|
|
|
|
"--with-ffmpeg=${ffmpeg}"
|
|
|
|
"--with-polarssl=${polarssl}"
|
|
|
|
"--enable-lime"
|
|
|
|
"--enable-external-ortp"
|
|
|
|
"--enable-external-mediastreamer"
|
|
|
|
];
|
2013-02-16 21:48:47 +01:00
|
|
|
|
2015-08-26 22:17:41 +02: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 03:15:57 +02:00
|
|
|
meta = with stdenv.lib; {
|
2011-01-13 21:49:58 +01:00
|
|
|
homepage = http://www.linphone.org/;
|
|
|
|
description = "Open Source video SIP softphone";
|
2015-04-07 03:15:57 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2011-01-13 21:49:58 +01:00
|
|
|
};
|
|
|
|
}
|