2017-09-02 19:19:44 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, bison, flex, unixODBC
|
2014-12-30 09:05:12 +01:00
|
|
|
, openssl, openldap, cyrus_sasl, kerberos, expat, SDL, libdv, libv4l, alsaLib }:
|
2010-09-06 01:37:54 +02:00
|
|
|
|
2014-08-08 20:47:16 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-02-07 14:52:17 +01:00
|
|
|
name = "ptlib-2.10.11";
|
2014-08-08 20:47:16 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/ptlib/2.10/${name}.tar.xz";
|
2016-02-07 14:52:17 +01:00
|
|
|
sha256 = "1jf27mjz8vqnclhrhrpn7niz4c177kcjbd1hc7vn65ihcqfz05rs";
|
2010-09-06 01:37:54 +02:00
|
|
|
};
|
|
|
|
|
2017-09-02 19:19:44 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-std=gnu++98";
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ bison flex unixODBC openssl openldap
|
2014-12-30 09:05:12 +01:00
|
|
|
cyrus_sasl kerberos expat SDL libdv libv4l alsaLib ];
|
2010-09-06 01:37:54 +02:00
|
|
|
|
2014-08-08 20:47:16 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-02 19:19:44 +02:00
|
|
|
patches = [
|
2017-09-02 19:48:39 +02:00
|
|
|
(fetchpatch { url = http://sources.debian.net/data/main/p/ptlib/2.10.11~dfsg-2.1/debian/patches/bison-fix;
|
|
|
|
sha256 = "0vzv9kyn9s628z8wy2gva380gi1rmhxilwlg5pikl5a0wn8p46nw";
|
|
|
|
})
|
|
|
|
(fetchpatch { url = http://sources.debian.net/data/main/p/ptlib/2.10.11~dfsg-2.1/debian/patches/no-sslv3;
|
|
|
|
sha256 = "172s1dnnrl54p9sf1nl7s475sm78rpw3p8jxi0pdx6izzl8hcdr0";
|
|
|
|
})
|
2017-09-02 19:19:44 +02:00
|
|
|
(fetchpatch { url = http://sources.debian.net/data/main/p/ptlib/2.10.11~dfsg-2.1/debian/patches/gcc-5_support;
|
|
|
|
sha256 = "0pf2yj0150r4cnc6nv65mclrm3dillqh1xjk7m6gsjnk9b96i5d4";
|
|
|
|
})
|
2017-11-15 22:42:26 +01:00
|
|
|
./ptlib-2.10.11-glibc-2.26.patch
|
2017-09-02 19:19:44 +02:00
|
|
|
];
|
2016-02-07 14:52:17 +01:00
|
|
|
|
2014-08-08 20:47:16 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-09-06 01:37:54 +02:00
|
|
|
description = "Portable Tools from OPAL VoIP";
|
2014-08-08 20:47:16 +02:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2010-09-06 01:37:54 +02:00
|
|
|
};
|
2014-08-08 20:47:16 +02:00
|
|
|
|
2010-09-06 01:37:54 +02:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://ftp.gnome.org/sources/ptlib/";
|
|
|
|
};
|
|
|
|
};
|
2014-08-08 20:47:16 +02:00
|
|
|
}
|