Properly configure mumble to build without the server and libopus

This commit is contained in:
William A. Kennington III 2013-11-21 04:22:04 -06:00
parent 4118e632e8
commit 7aa292a069

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, qt4, libvorbis, boost, speechd, protobuf, libsndfile,
avahi, dbus, libcap, pkgconfig,
{ stdenv, fetchurl, qt4, boost, speechd, protobuf, libsndfile,
speex, libopus, avahi, pkgconfig
jackSupport ? false,
jackaudio ? null }:
@ -18,16 +18,18 @@ stdenv.mkDerivation rec {
'';
configurePhase = ''
qmake CONFIG+=no-g15 CONFIG+=no-update \
CONFIG+=no-embed-qt-translations CONFIG+=no-ice \
qmake CONFIG+=no-g15 CONFIG+=no-update CONFIG+=no-server \
CONFIG+=no-embed-qt-translations CONFIG+=packaged \
CONFIG+=bundled-celt CONFIG+=no-bundled-opus \
CONFIG+=no-bundled-speex
''
+ stdenv.lib.optionalString jackSupport ''
CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio
'';
buildInputs = [ qt4 libvorbis boost speechd protobuf libsndfile avahi dbus
libcap pkgconfig ]
buildInputs = [ qt4 boost speechd protobuf libsndfile speex
libopus avahi pkgconfig ]
++ (stdenv.lib.optional jackSupport jackaudio);
installPhase = ''