2019-04-25 07:46:07 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, ptlib, srtp, libtheora, speex, gnome3
|
2014-08-08 20:13:38 +01:00
|
|
|
, ffmpeg, x264, cyrus_sasl, openldap, openssl, expat, unixODBC }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-25 07:46:07 +01:00
|
|
|
pname = "opal";
|
|
|
|
version = "3.10.10";
|
2014-08-08 20:13:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-25 07:46:07 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2014-08-08 20:13:38 +01:00
|
|
|
sha256 = "f208985003461b2743575eccac13ad890b3e5baac35b68ddef17162460aff864";
|
2010-09-06 00:37:54 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ ptlib srtp libtheora speex
|
2014-08-08 20:13:38 +01:00
|
|
|
ffmpeg x264 cyrus_sasl openldap openssl expat unixODBC ];
|
2018-10-25 20:54:43 +01:00
|
|
|
propagatedBuildInputs = [ speex ];
|
2014-08-08 20:13:38 +01:00
|
|
|
|
|
|
|
configureFlags = [ "--enable-h323" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-02 18:49:18 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-D__STDC_CONSTANT_MACROS=1 -std=gnu++98";
|
2014-08-08 20:13:38 +01:00
|
|
|
|
|
|
|
patches = [ ./disable-samples-ftbfs.diff ./libav9.patch ./libav10.patch ];
|
2018-10-25 20:54:43 +01:00
|
|
|
|
2014-08-08 20:13:38 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "VoIP library";
|
2014-08-08 20:13:38 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2019-05-04 14:59:55 +01:00
|
|
|
homepage = "http://www.opalvoip.org/";
|
2018-10-25 20:54:43 +01:00
|
|
|
license = with licenses; [ bsdOriginal mpl10 gpl2Plus lgpl21 ];
|
2010-09-06 00:37:54 +01:00
|
|
|
};
|
2014-08-08 20:13:38 +01:00
|
|
|
|
2010-09-06 00:37:54 +01:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://ftp.gnome.org/pub/GNOME/sources/opal";
|
|
|
|
};
|
2019-04-25 07:46:07 +01:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
2010-09-06 00:37:54 +01:00
|
|
|
};
|
2014-08-08 20:13:38 +01:00
|
|
|
}
|
2010-09-06 00:37:54 +01:00
|
|
|
|