mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
Making sflphone build, and its gnome client too.
This commit is contained in:
parent
53f38dcbd0
commit
538a1d3aa1
@ -1,8 +1,10 @@
|
|||||||
{ stdenv, fetchurl, libyaml, alsaLib, openssl, libuuid, pkgconfig, pulseaudio, libsamplerate,
|
{ stdenv, fetchurl, libyaml, alsaLib, openssl, libuuid, pkgconfig, pulseaudio, libsamplerate
|
||||||
commoncpp2, ccrtp, libzrtpcpp, dbus, dbus_cplusplus, expat, pcre, gsm, speex, ilbc, libopus,
|
, commoncpp2, ccrtp, libzrtpcpp, dbus, dbus_cplusplus, expat, pcre, gsm, speex, ilbc, libopus
|
||||||
autoconf, automake, libtool, gettext, perl }:
|
, autoconf, automake, libtool, gettext, perl
|
||||||
|
, cmake, qt4
|
||||||
|
, gtk, glib, dbus_glib, libnotify, intltool }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "sflphone-1.2.3";
|
name = "sflphone-1.2.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -10,23 +12,68 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0aiwlky7mp5l51a7kkhkmaz7ivapypar291kdxzdxl1s3qy0x6fd";
|
sha256 = "0aiwlky7mp5l51a7kkhkmaz7ivapypar291kdxzdxl1s3qy0x6fd";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./libzrtpcpp-cflags.patch ];
|
meta = {
|
||||||
|
homepage = http://sflphone.org/;
|
||||||
|
license = "GPLv3+";
|
||||||
|
description = "Free software enterprise-class softphone for GNU/Linux";
|
||||||
|
platforms = with stdenv.lib.platforms; linux;
|
||||||
|
maintainers = with stdenv.lib.maintainers; [viric];
|
||||||
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
in
|
||||||
cd daemon
|
rec {
|
||||||
|
daemon = stdenv.mkDerivation {
|
||||||
|
name = name + "-daemon";
|
||||||
|
|
||||||
# Post patch, required
|
inherit src;
|
||||||
autoreconf -vfi
|
|
||||||
|
|
||||||
cd libs
|
patches = [ ./libzrtpcpp-cflags.patch ];
|
||||||
bash ./compile_pjsip.sh
|
|
||||||
cd ..
|
|
||||||
'';
|
|
||||||
|
|
||||||
configureFlags = "--with-expat --with-expat-inc=${expat}/include " +
|
preConfigure = ''
|
||||||
"--with-expat-lib=-lexpat --with-opus ";
|
cd daemon
|
||||||
|
|
||||||
buildInputs = [ libyaml alsaLib openssl libuuid pkgconfig pulseaudio libsamplerate
|
# Post patch, required
|
||||||
commoncpp2 ccrtp libzrtpcpp dbus dbus_cplusplus expat pcre gsm speex ilbc libopus
|
autoreconf -vfi
|
||||||
autoconf automake libtool gettext perl ];
|
|
||||||
|
cd libs
|
||||||
|
bash ./compile_pjsip.sh
|
||||||
|
cd ..
|
||||||
|
'';
|
||||||
|
|
||||||
|
configureFlags = "--with-expat --with-expat-inc=${expat}/include " +
|
||||||
|
"--with-expat-lib=-lexpat --with-opus ";
|
||||||
|
|
||||||
|
buildInputs = [ libyaml alsaLib openssl libuuid pkgconfig pulseaudio libsamplerate
|
||||||
|
commoncpp2 ccrtp libzrtpcpp dbus dbus_cplusplus expat pcre gsm speex ilbc libopus
|
||||||
|
autoconf automake libtool gettext perl ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# This fails still.
|
||||||
|
# I don't know the best way to make this a KDE program (with switchable kde
|
||||||
|
# libs, like digikam for example)
|
||||||
|
/*
|
||||||
|
kde = stdenv.mkDerivation {
|
||||||
|
name = name + "-kde";
|
||||||
|
|
||||||
|
inherit src;
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
cd kde
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ daemon cmake qt4 pkgconfig ];
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
|
gnome = stdenv.mkDerivation {
|
||||||
|
name = name + "-gnome";
|
||||||
|
|
||||||
|
inherit src;
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
cd gnome
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ daemon pkgconfig gtk glib dbus_glib libnotify intltool ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -8107,7 +8107,9 @@ let
|
|||||||
|
|
||||||
seq24 = callPackage ../applications/audio/seq24 { };
|
seq24 = callPackage ../applications/audio/seq24 { };
|
||||||
|
|
||||||
sflphone = callPackage ../applications/networking/instant-messengers/sflphone { };
|
sflphone = callPackage ../applications/networking/instant-messengers/sflphone {
|
||||||
|
gtk = gtk3;
|
||||||
|
};
|
||||||
|
|
||||||
siproxd = callPackage ../applications/networking/siproxd { };
|
siproxd = callPackage ../applications/networking/siproxd { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user