2014-08-20 21:27:43 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, autoreconfHook, commoncpp2, ccrtp, openssl, boost
|
2012-01-07 18:06:49 +01:00
|
|
|
, libsndfile, libxml2, libjpeg, readline, qt3, perl, file
|
2010-07-28 20:01:17 +02:00
|
|
|
, alsaLib, speex, libzrtpcpp, xorg }:
|
2014-08-08 17:58:34 +02:00
|
|
|
|
2014-08-20 21:27:43 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2009-09-20 19:01:19 +02:00
|
|
|
name = "twinkle-1.4.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-20 21:27:43 +02:00
|
|
|
url = "http://www.xs4all.nl/~mfnboer/twinkle/download/${name}.tar.gz";
|
2009-09-20 19:01:19 +02:00
|
|
|
sha256 = "19c9gqam78srsgv0463g7lfnv4mn5lvbxx3zl87bnm0vmk3qcxl0";
|
|
|
|
};
|
|
|
|
|
2014-08-20 21:27:43 +02:00
|
|
|
patches = [ # all from Debian
|
|
|
|
./newer-libccrtp.diff
|
|
|
|
./libgsm.patch
|
|
|
|
./localetime_r_conflict.diff
|
|
|
|
./boost_regex.patch # modified not to use "-mt" suffix
|
|
|
|
];
|
|
|
|
|
2009-09-20 19:01:19 +02:00
|
|
|
configureFlags = "--with-extra-includes=${libjpeg}/include";
|
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
buildInputs =
|
2014-10-01 21:55:40 +02:00
|
|
|
[ pkgconfig autoreconfHook commoncpp2 openssl boost libsndfile
|
2015-04-07 00:08:52 +02:00
|
|
|
libxml2 libjpeg readline qt3 perl file ccrtp
|
2010-07-28 20:01:17 +02:00
|
|
|
# optional ? :
|
2014-08-20 21:27:43 +02:00
|
|
|
alsaLib speex
|
|
|
|
libzrtpcpp xorg.libX11 xorg.libXaw xorg.libICE xorg.libXext
|
2009-09-20 19:01:19 +02:00
|
|
|
];
|
|
|
|
|
2014-08-20 21:27:43 +02:00
|
|
|
NIX_CFLAGS_LINK = "-Wl,--as-needed -lboost_regex -lasound -lzrtpcpp -lspeex -lspeexdsp";
|
|
|
|
|
2014-09-02 21:52:34 +02:00
|
|
|
#enableParallelBuilding = true; # fatal error: messageform.h: No such file or directory
|
2014-08-20 21:27:43 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.twinklephone.com/;
|
|
|
|
license = licenses.gpl2Plus;
|
2014-08-20 23:38:43 +02:00
|
|
|
maintainers = [ maintainers.marcweber ];
|
2014-08-20 21:27:43 +02:00
|
|
|
platforms = platforms.linux;
|
2009-09-20 19:01:19 +02:00
|
|
|
};
|
|
|
|
}
|