SDL2: disable sdltest on darwin

Darwin headless will hang when trying to run the SDL test program.
This commit is contained in:
Matthew Bauer 2018-06-06 19:18:00 -04:00
parent dfc4744afd
commit 08c6c6beb4
6 changed files with 13 additions and 3 deletions

View File

@ -55,7 +55,8 @@ stdenv.mkDerivation rec {
configureFlags = [
"--disable-oss"
] ++ optional (!x11Support) "--without-x"
++ optional alsaSupport "--with-alsa-prefix=${alsaLib.out}/lib";
++ optional alsaSupport "--with-alsa-prefix=${alsaLib.out}/lib"
++ optional stdenv.isDarwin "--disable-sdltest";
postInstall = ''
moveToOutput lib/libSDL2main.a "$dev"

View File

@ -13,7 +13,8 @@ stdenv.mkDerivation rec {
buildInputs = [ SDL2 ]
++ stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
configureFlags = if stdenv.isi686 || stdenv.isx86_64 then "--enable-mmx" else "--disable-mmx";
configureFlags = [(if stdenv.isi686 || stdenv.isx86_64 then "--enable-mmx" else "--disable-mmx")]
++ stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
meta = with stdenv.lib; {
description = "SDL graphics drawing primitives and support functions";

View File

@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
buildInputs = [ SDL2 libpng libjpeg libtiff libungif libXpm zlib ]
++ stdenv.lib.optional stdenv.isDarwin Foundation;
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
enableParallelBuilding = true;
meta = with stdenv.lib; {

View File

@ -23,7 +23,8 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ SDL2 libogg libvorbis fluidsynth smpeg2 flac libmodplug ];
configureFlags = [ "--disable-music-ogg-shared" ]
++ lib.optional enableNativeMidi "--enable-music-native-midi-gpl";
++ lib.optional enableNativeMidi "--enable-music-native-midi-gpl"
++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ];
meta = with stdenv.lib; {
description = "SDL multi-channel audio mixer library";

View File

@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
propagatedBuildInputs = [ SDL2 ];
meta = with stdenv.lib; {

View File

@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "0xljwcpvd2knrjdfag5b257xqayplz55mqlszrqp0kpnphh5xnrl";
};
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
buildInputs = [ SDL2 freetype libGL ]
++ stdenv.lib.optional stdenv.isDarwin darwin.libobjc;