Added option to enable native midi support

svn path=/nixpkgs/trunk/; revision=27563
This commit is contained in:
Sander van der Burg 2011-06-30 15:12:26 +00:00
parent 909f438893
commit aa16cb5f11

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL, libogg, libvorbis }:
{ stdenv, fetchurl, SDL, libogg, libvorbis, enableNativeMidi ? false }:
stdenv.mkDerivation rec {
pname = "SDL_mixer";
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
buildInputs = [SDL libogg libvorbis];
configureFlags = "--disable-music-ogg-shared";
configureFlags = "--disable-music-ogg-shared" + stdenv.lib.optionalString enableNativeMidi "--enable-music-native-midi-gpl";
postInstall = "ln -s $out/include/SDL/SDL_mixer.h $out/include/";