1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

SDL: Disable OSS support.

svn path=/nixpkgs/trunk/; revision=17910
This commit is contained in:
Ludovic Courtès 2009-10-21 13:21:18 +00:00
parent 21ddf5e52e
commit 44856bc4d0

View file

@ -4,6 +4,10 @@
, pulseaudioSupport ? true, pulseaudio ? null
}:
# OSS is no longer supported, for it's much crappier than ALSA and
# PulseAudio.
assert alsaSupport || pulseaudioSupport;
assert openglSupport -> mesa != null;
assert alsaSupport -> alsaLib != null;
assert pulseaudioSupport -> pulseaudio != null;
@ -28,6 +32,7 @@ stdenv.mkDerivation {
# we must arrange to add it to its RPATH; however, `patchelf' seems
# to fail at doing this, hence `--disable-pulseaudio-shared'.
configureFlags = ''
--disable-oss
--disable-x11-shared --disable-alsa-shared --enable-rpath --disable-pulseaudio-shared
${if alsaSupport then "--with-alsa-prefix=${alsaLib}/lib" else ""}
'';