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