2011-06-30 19:12:26 +04:00
|
|
|
{ stdenv, fetchurl, SDL, libogg, libvorbis, enableNativeMidi ? false }:
|
2009-03-03 16:27:40 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-09-06 05:47:49 +04:00
|
|
|
pname = "SDL_mixer";
|
|
|
|
version = "1.2.12";
|
|
|
|
name = "${pname}-${version}";
|
2006-09-12 04:15:05 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-09-06 05:47:49 +04:00
|
|
|
url = "http://www.libsdl.org/projects/${pname}/release/${name}.tar.gz";
|
|
|
|
sha256 = "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n";
|
2006-09-12 04:15:05 +04:00
|
|
|
};
|
2008-02-07 00:17:42 +03:00
|
|
|
|
2006-09-12 19:23:28 +04:00
|
|
|
buildInputs = [SDL libogg libvorbis];
|
2008-02-07 00:17:42 +03:00
|
|
|
|
2011-06-30 19:12:26 +04:00
|
|
|
configureFlags = "--disable-music-ogg-shared" + stdenv.lib.optionalString enableNativeMidi "--enable-music-native-midi-gpl";
|
2008-02-07 00:17:42 +03:00
|
|
|
|
2009-03-03 16:27:40 +03:00
|
|
|
postInstall = "ln -s $out/include/SDL/SDL_mixer.h $out/include/";
|
2008-02-07 00:17:42 +03:00
|
|
|
|
2013-09-06 05:47:49 +04:00
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 16:27:40 +03:00
|
|
|
description = "SDL multi-channel audio mixer library";
|
2013-09-06 05:47:49 +04:00
|
|
|
homepage = http://www.libsdl.org/projects/SDL_mixer/;
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
2008-02-07 00:17:42 +03:00
|
|
|
};
|
2009-03-03 16:27:40 +03:00
|
|
|
}
|