baresip: packaging cleanups

the `LIBRE*` and `USE_*` make flags were removed during the cmake
transition in v2.11.0: <https://github.com/baresip/baresip/pull/2354/files>

upstream now detects features on a best-effort basis, with pkg-config.

authored by

Colin and committed by
Emery Hemingway
0db1163a 7245ee83

+43 -84
+43 -84
pkgs/by-name/ba/baresip/package.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchFromGitHub 4 - , zlib 5 - , openssl 6 - , libre 7 - , librem 8 - , pkg-config 9 - , gst_all_1 10 - , cairo 11 - , gtk3 12 - , mpg123 13 - , alsa-lib 14 - , SDL2 15 - , libv4l 16 - , celt 17 - , libsndfile 18 - , srtp 19 - , ffmpeg 20 - , gsm 21 - , speex 22 - , portaudio 23 - , spandsp3 24 - , libuuid 25 - , libvpx 26 - , cmake 27 - , dbusSupport ? true 28 }: 29 stdenv.mkDerivation rec { 30 version = "3.10.1"; ··· 38 prePatch = lib.optionalString (!dbusSupport) '' 39 substituteInPlace cmake/modules.cmake --replace 'list(APPEND MODULES ctrl_dbus)' "" 40 ''; 41 - nativeBuildInputs = [ pkg-config cmake ]; 42 buildInputs = [ 43 - zlib 44 - openssl 45 - libre 46 - librem 47 cairo 48 - gtk3 49 - mpg123 50 - alsa-lib 51 - SDL2 52 - libv4l 53 celt 54 - libsndfile 55 - srtp 56 ffmpeg 57 gsm 58 - speex 59 - portaudio 60 - spandsp3 61 libuuid 62 libvpx 63 ] ++ (with gst_all_1; [ gstreamer gst-libav gst-plugins-base gst-plugins-bad gst-plugins-good ]); 64 65 cmakeFlags = [ ··· 68 ]; 69 70 makeFlags = [ 71 - "LIBRE_MK=${libre}/share/re/re.mk" 72 - "LIBRE_SO=${libre}/lib" 73 - "LIBREM_PATH=${librem}" 74 "PREFIX=$(out)" 75 - "USE_VIDEO=1" 76 "CCACHE_DISABLE=1" 77 - 78 - "USE_ALSA=1" 79 - "USE_AMR=1" 80 - "USE_CAIRO=1" 81 - "USE_CELT=1" 82 - "USE_CONS=1" 83 - "USE_EVDEV=1" 84 - "USE_FFMPEG=1" 85 - "USE_GSM=1" 86 - "USE_GST1=1" 87 - "USE_GTK=1" 88 - "USE_L16=1" 89 - "USE_MPG123=1" 90 - "USE_OSS=1" 91 - "USE_PLC=1" 92 - "USE_VPX=1" 93 - "USE_PORTAUDIO=1" 94 - "USE_SDL=1" 95 - "USE_SNDFILE=1" 96 - "USE_SPEEX=1" 97 - "USE_SPEEX_AEC=1" 98 - "USE_SPEEX_PP=1" 99 - "USE_SPEEX_RESAMP=1" 100 - "USE_SRTP=1" 101 - "USE_STDIO=1" 102 - "USE_SYSLOG=1" 103 - "USE_UUID=1" 104 - "USE_V4L2=1" 105 - "USE_X11=1" 106 - 107 - "USE_BV32=" 108 - "USE_COREAUDIO=" 109 - "USE_G711=1" 110 - "USE_G722=1" 111 - "USE_G722_1=" 112 - "USE_ILBC=" 113 - "USE_OPUS=" 114 - "USE_SILK=" 115 ] 116 ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}" 117 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}"
··· 1 + { 2 + SDL2, 3 + alsa-lib, 4 + cairo, 5 + celt, 6 + cmake, 7 + fetchFromGitHub, 8 + ffmpeg, 9 + gsm, 10 + gst_all_1, 11 + gtk3, 12 + lib, 13 + libre, 14 + librem, 15 + libsndfile, 16 + libuuid, 17 + libv4l, 18 + libvpx, 19 + mpg123, 20 + openssl, 21 + pkg-config, 22 + portaudio, 23 + spandsp3, 24 + speex, 25 + srtp, 26 + stdenv, 27 + zlib, 28 + dbusSupport ? true, 29 }: 30 stdenv.mkDerivation rec { 31 version = "3.10.1"; ··· 39 prePatch = lib.optionalString (!dbusSupport) '' 40 substituteInPlace cmake/modules.cmake --replace 'list(APPEND MODULES ctrl_dbus)' "" 41 ''; 42 + nativeBuildInputs = [ cmake pkg-config ]; 43 buildInputs = [ 44 + SDL2 45 + alsa-lib 46 cairo 47 celt 48 ffmpeg 49 gsm 50 + gtk3 51 + libre 52 + librem 53 + libsndfile 54 libuuid 55 + libv4l 56 libvpx 57 + mpg123 58 + openssl 59 + portaudio 60 + spandsp3 61 + speex 62 + srtp 63 + zlib 64 ] ++ (with gst_all_1; [ gstreamer gst-libav gst-plugins-base gst-plugins-bad gst-plugins-good ]); 65 66 cmakeFlags = [ ··· 69 ]; 70 71 makeFlags = [ 72 "PREFIX=$(out)" 73 "CCACHE_DISABLE=1" 74 ] 75 ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}" 76 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}"