Merge pull request #37745 from Baughn/mpv-openal

mpv: Add openal support
This commit is contained in:
Jörg Thalheim 2018-03-26 19:01:10 +01:00 committed by GitHub
commit 47205202e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@
, youtubeSupport ? true, youtube-dl ? null , youtubeSupport ? true, youtube-dl ? null
, vaapiSupport ? true, libva ? null , vaapiSupport ? true, libva ? null
, drmSupport ? true, libdrm ? null , drmSupport ? true, libdrm ? null
, openalSupport ? true, openalSoft ? null
, vapoursynthSupport ? false, vapoursynth ? null , vapoursynthSupport ? false, vapoursynth ? null
, archiveSupport ? false, libarchive ? null , archiveSupport ? false, libarchive ? null
, jackaudioSupport ? false, libjack2 ? null , jackaudioSupport ? false, libjack2 ? null
@ -59,6 +60,7 @@ assert dvdnavSupport -> available libdvdnav;
assert bluraySupport -> available libbluray; assert bluraySupport -> available libbluray;
assert speexSupport -> available speex; assert speexSupport -> available speex;
assert theoraSupport -> available libtheora; assert theoraSupport -> available libtheora;
assert openalSupport -> available openalSoft;
assert pulseSupport -> available libpulseaudio; assert pulseSupport -> available libpulseaudio;
assert bs2bSupport -> available libbs2b; assert bs2bSupport -> available libbs2b;
assert cacaSupport -> available libcaca; assert cacaSupport -> available libcaca;
@ -113,6 +115,7 @@ in stdenv.mkDerivation rec {
(enableFeature archiveSupport "libarchive") (enableFeature archiveSupport "libarchive")
(enableFeature dvdreadSupport "dvdread") (enableFeature dvdreadSupport "dvdread")
(enableFeature dvdnavSupport "dvdnav") (enableFeature dvdnavSupport "dvdnav")
(enableFeature openalSupport "openal")
(enableFeature vaapiSupport "vaapi") (enableFeature vaapiSupport "vaapi")
(enableFeature waylandSupport "wayland") (enableFeature waylandSupport "wayland")
(enableFeature stdenv.isLinux "dvbin") (enableFeature stdenv.isLinux "dvbin")
@ -143,6 +146,8 @@ in stdenv.mkDerivation rec {
++ optional vdpauSupport libvdpau ++ optional vdpauSupport libvdpau
++ optional speexSupport speex ++ optional speexSupport speex
++ optional bs2bSupport libbs2b ++ optional bs2bSupport libbs2b
++ optional openalSupport openalSoft
++ optional (openalSupport && stdenv.isDarwin) darwin.apple_sdk.frameworks.OpenAL
++ optional libpngSupport libpng ++ optional libpngSupport libpng
++ optional youtubeSupport youtube-dl ++ optional youtubeSupport youtube-dl
++ optional sdl2Support SDL2 ++ optional sdl2Support SDL2