2012-09-24 19:02:19 +02:00
|
|
|
{stdenv, fetchurl, zlib, openssl, libre, librem, pkgconfig
|
|
|
|
, cairo, mpg123, gstreamer, gst_ffmpeg, gst_plugins_base, gst_plugins_bad
|
|
|
|
, gst_plugins_good, alsaLib, SDL, libv4l, celt, libsndfile, srtp, ffmpeg
|
|
|
|
, gsm, speex, portaudio, spandsp, libuuid
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
2016-05-25 15:36:59 +02:00
|
|
|
version = "0.4.19";
|
2012-09-24 19:02:19 +02:00
|
|
|
name = "baresip-${version}";
|
|
|
|
src=fetchurl {
|
|
|
|
url = "http://www.creytiv.com/pub/baresip-${version}.tar.gz";
|
2016-05-25 15:36:59 +02:00
|
|
|
sha256 = "1ldh3sc4n19vsjfc1f3kbrin7djb1z6y1rkisc5f6zjx4bd6535v";
|
2012-09-24 19:02:19 +02:00
|
|
|
};
|
|
|
|
buildInputs = [zlib openssl libre librem pkgconfig
|
|
|
|
cairo mpg123 gstreamer gst_ffmpeg gst_plugins_base gst_plugins_bad gst_plugins_good
|
|
|
|
alsaLib SDL libv4l celt libsndfile srtp ffmpeg gsm speex portaudio spandsp libuuid
|
|
|
|
];
|
|
|
|
makeFlags = [
|
|
|
|
"LIBRE_MK=${libre}/share/re/re.mk"
|
|
|
|
"LIBRE_INC=${libre}/include/re"
|
|
|
|
"LIBRE_SO=${libre}/lib"
|
|
|
|
"LIBREM_PATH=${librem}"
|
|
|
|
''PREFIX=$(out)''
|
|
|
|
"USE_VIDEO=1"
|
|
|
|
|
|
|
|
"USE_ALSA=1" "USE_AMR=1" "USE_CAIRO=1" "USE_CELT=1"
|
|
|
|
"USE_CONS=1" "USE_EVDEV=1" "USE_FFMPEG=1" "USE_GSM=1" "USE_GST=1"
|
|
|
|
"USE_L16=1" "USE_MPG123=1" "USE_OSS=1" "USE_PLC=1"
|
|
|
|
"USE_PORTAUDIO=1" "USE_SDL=1" "USE_SNDFILE=1" "USE_SPEEX=1"
|
|
|
|
"USE_SPEEX_AEC=1" "USE_SPEEX_PP=1" "USE_SPEEX_RESAMP=1" "USE_SRTP=1"
|
|
|
|
"USE_STDIO=1" "USE_SYSLOG=1" "USE_UUID=1" "USE_V4L2=1" "USE_X11=1"
|
|
|
|
|
|
|
|
"USE_BV32=" "USE_COREAUDIO=" "USE_G711=" "USE_G722=" "USE_G722_1="
|
|
|
|
"USE_ILBC=" "USE_OPUS=" "USE_SILK="
|
2012-09-24 21:49:11 +02:00
|
|
|
]
|
2015-01-15 05:25:26 +01:00
|
|
|
++ stdenv.lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
|
2014-12-17 19:11:30 +01:00
|
|
|
++ stdenv.lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}"
|
2012-09-24 21:49:11 +02:00
|
|
|
;
|
2012-09-24 19:02:19 +02:00
|
|
|
NIX_CFLAGS_COMPILE='' -I${librem}/include/rem -I${gsm}/include/gsm '';
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.creytiv.com/baresip.html";
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
2015-05-28 19:20:29 +02:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2014-07-01 09:51:46 +02:00
|
|
|
inherit version;
|
|
|
|
downloadPage = "http://www.creytiv.com/pub/";
|
|
|
|
updateWalker = true;
|
|
|
|
downloadURLRegexp = "/baresip-.*[.]tar[.].*";
|
2012-09-24 19:02:19 +02:00
|
|
|
};
|
|
|
|
}
|