Added BareSIP

This commit is contained in:
Michael Raskin 2012-09-24 21:02:19 +04:00
parent e9315d4a1c
commit 732811700a
7 changed files with 120 additions and 2 deletions

View File

@ -0,0 +1,44 @@
{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 {
version = "0.4.2";
name = "baresip-${version}";
src=fetchurl {
url = "http://www.creytiv.com/pub/baresip-${version}.tar.gz";
sha256 = "3ac15b3d3cf17b2417ba871e7eaaaf41ab10cb30b900adcee357d5e91ea033e7";
};
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}"
"SYSROOT=${stdenv.gcc.libc}"
"SYSROOT_ALT=${stdenv.gcc.gcc}"
''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="
];
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];
license = with stdenv.lib.licenses; bsd3;
};
}

View File

@ -0,0 +1,22 @@
{stdenv, fetchurl, zlib, openssl}:
stdenv.mkDerivation rec {
version = "0.4.2";
name = "libre-${version}";
src=fetchurl {
url = "http://www.creytiv.com/pub/re-${version}.tar.gz";
sha256 = "1c99ygs46qhd4a0ardxhdyjaw5p8clhzmsm8jydqxnmbakwy518m";
};
buildInputs = [zlib openssl];
makeFlags = [
"USE_ZLIB=1" "USE_OPENSSL=1"
"SYSROOT=${stdenv.gcc.libc}"
"SYSROOT_ALT=${stdenv.gcc.gcc}"
''PREFIX=$(out)''
];
meta = {
homepage = "http://www.creytiv.com/re.html";
platforms = with stdenv.lib.platforms; linux;
maintainers = with stdenv.lib.maintainers; [raskin];
license = with stdenv.lib.licenses; bsd3;
};
}

Binary file not shown.

View File

@ -0,0 +1,23 @@
{stdenv, fetchurl, zlib, openssl, libre}:
stdenv.mkDerivation rec {
version = "0.4.2";
name = "librem-${version}";
src=fetchurl {
url = "http://www.creytiv.com/pub/rem-${version}.tar.gz";
sha256 = "55c66118e3026c5ed42d8b9e0c668149baefe83f1aa76394cddba2d72f45d5c7";
};
buildInputs = [zlib openssl libre];
makeFlags = [
"LIBRE_MK=${libre}/share/re/re.mk"
"LIBRE_INC=${libre}/include/re"
"SYSROOT=${stdenv.gcc.libc}"
"SYSROOT_ALT=${stdenv.gcc.gcc}"
''PREFIX=$(out)''
];
meta = {
homepage = "http://www.creytiv.com/rem.html";
platforms = with stdenv.lib.platforms; linux;
maintainers = with stdenv.lib.maintainers; [raskin];
license = with stdenv.lib.licenses; bsd3;
};
}

View File

@ -0,0 +1,18 @@
{stdenv, fetchurl, audiofile, libtiff}:
stdenv.mkDerivation rec {
version = "0.0.5";
name = "spandsp-${version}";
src=fetchurl {
url = "http://www.soft-switch.org/downloads/spandsp/spandsp-${version}.tgz";
sha256 = "07f42a237c77b08fa765c3a148c83cdfa267bf24c0ab681d80b90d30dd0b3dbf";
};
buildInputs = [];
propagatedBuildInputs = [audiofile libtiff];
meta = {
homepage = "http://www.creytiv.com/baresip.html";
platforms = with stdenv.lib.platforms; linux;
maintainers = with stdenv.lib.maintainers; [raskin];
license = with stdenv.lib.licenses; gpl2;
};
}

View File

@ -27,7 +27,11 @@ rec {
inherit buildInputs;
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
phaseNames = ["setVars" "doConfigure" "doMakeInstall"];
setVars = a.fullDepEntry ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fPIC"
'' ["minInit"];
meta = {
description = "Secure RTP";

View File

@ -4167,6 +4167,9 @@ let
libQGLViewer = callPackage ../development/libraries/libqglviewer { };
libre = callPackage ../development/libraries/libre {};
librem = callPackage ../development/libraries/librem {};
libsamplerate = callPackage ../development/libraries/libsamplerate { };
libspectre = callPackage ../development/libraries/libspectre { };
@ -4813,6 +4816,8 @@ let
sord = callPackage ../development/libraries/sord {};
spandsp = callPackage ../development/libraries/spandsp {};
speechd = callPackage ../development/libraries/speechd { };
speech_tools = callPackage ../development/libraries/speech-tools {};
@ -6506,6 +6511,8 @@ let
cairo = cairo.override { xcbSupport = true; };
};
baresip = callPackage ../applications/networking/instant-messengers/baresip {};
batik = callPackage ../applications/graphics/batik { };
bazaar = callPackage ../applications/version-management/bazaar { };