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