mplayer(2): Add support and library for bs2b.

This also adds a new package "libbs2b", which is needed in order to support
Bauer stereophonic-to-binaural DSP as an audio filter.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-05-17 01:18:48 +02:00
parent 2bd7aa7a65
commit b08d6a39f8
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961
4 changed files with 27 additions and 0 deletions

View File

@ -16,6 +16,7 @@
, x264Support ? false, x264 ? null
, jackaudioSupport ? false, jackaudio ? null
, pulseSupport ? false, pulseaudio ? null
, bs2bSupport ? false, libbs2b ? null
# For screenshots
, libpngSupport ? true, libpng ? null
, useUnfreeCodecs ? false
@ -38,6 +39,7 @@ assert theoraSupport -> libtheora != null;
assert x264Support -> x264 != null;
assert jackaudioSupport -> jackaudio != null;
assert pulseSupport -> pulseaudio != null;
assert bs2bSupport -> libbs2b != null;
assert libpngSupport -> libpng != null;
let
@ -112,6 +114,7 @@ stdenv.mkDerivation rec {
++ optional vdpauSupport libvdpau
++ optional speexSupport speex
++ optional libpngSupport libpng
++ optional bs2bSupport libbs2b
;
nativeBuildInputs = [ yasm ];

View File

@ -12,6 +12,7 @@
, theoraSupport ? true, libtheora ? null
, jackaudioSupport ? false, jackaudio ? null
, pulseSupport ? true, pulseaudio ? null
, bs2bSupport ? false, libbs2b ? null
# For screenshots
, libpngSupport ? true, libpng ? null
, useUnfreeCodecs ? false
@ -29,6 +30,7 @@ assert speexSupport -> speex != null;
assert theoraSupport -> libtheora != null;
assert jackaudioSupport -> jackaudio != null;
assert pulseSupport -> pulseaudio != null;
assert bs2bSupport -> libbs2b != null;
assert libpngSupport -> libpng != null;
let
@ -92,6 +94,7 @@ stdenv.mkDerivation rec {
++ optional screenSaverSupport libXScrnSaver
++ optional vdpauSupport libvdpau
++ optional speexSupport speex
++ optional bs2bSupport libbs2b
++ optional libpngSupport libpng
;

View File

@ -0,0 +1,19 @@
{ stdenv, fetchurl, pkgconfig, libsndfile }:
stdenv.mkDerivation rec {
name = "libbs2b-${version}";
version = "3.1.0";
src = fetchurl {
url = "mirror://sourceforge/bs2b/${name}.tar.bz2";
sha256 = "0vz442kkjn2h0dlxppzi4m5zx8qfyrivq581n06xzvnyxi5rg6a7";
};
buildInputs = [ pkgconfig libsndfile ];
meta = {
homepage = "http://bs2b.sourceforge.net/";
description = "Bauer stereophonic-to-binaural DSP library";
license = stdenv.lib.licenses.mit;
};
}

View File

@ -4198,6 +4198,8 @@ let
libbluray = callPackage ../development/libraries/libbluray { };
libbs2b = callPackage ../development/libraries/audio/libbs2b { };
libcaca = callPackage ../development/libraries/libcaca { };
libcanberra = callPackage ../development/libraries/libcanberra { };