Add SDL2_image and SDL2_mixer, release candidate.
This commit is contained in:
parent
e87589b2ef
commit
0d637ea5e0
27
pkgs/development/libraries/SDL2_image/default.nix
Normal file
27
pkgs/development/libraries/SDL2_image/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ stdenv, fetchurl, SDL2, libpng, libjpeg, libtiff, libungif, libXpm, zlib }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "SDL2_image-2.0.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://www.libsdl.org/projects/SDL_image/release/${name}.tar.gz";
|
||||||
|
sha256 = "0cxb4ss2d6d13ivm40cb230cy880v9jwlxkgmnpxkaf498ban54w";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [SDL2 libpng libjpeg libtiff libungif libXpm zlib];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
sed -i -e 's,"SDL.h",<SDL2/SDL.h>,' \
|
||||||
|
-e 's,"SDL_version.h",<SDL2/SDL_version.h>,' \
|
||||||
|
-e 's,"begin_code.h",<SDL2/begin_code.h>,' \
|
||||||
|
-e 's,"close_code.h",<SDL2/close_code.h>,' \
|
||||||
|
$out/include/SDL2/SDL_image.h
|
||||||
|
ln -sv SDL2/SDL_image.h $out/include/SDL_image.h
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "SDL image library";
|
||||||
|
homepage = "http://www.libsdl.org/projects/SDL_image/";
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
20
pkgs/development/libraries/SDL2_mixer/default.nix
Normal file
20
pkgs/development/libraries/SDL2_mixer/default.nix
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{ stdenv, fetchurl, SDL2, libogg, libvorbis, enableNativeMidi ? false }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "SDL2_mixer-2.0.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://www.libsdl.org/projects/SDL_mixer/release/${name}.tar.gz";
|
||||||
|
sha256 = "0dpqh6ak77wvxwk06ak57vm79n27jbqfxzv5hv2yyzfj0852pmx3";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [SDL2 libogg libvorbis];
|
||||||
|
|
||||||
|
configureFlags = "--disable-music-ogg-shared" + stdenv.lib.optionalString enableNativeMidi "--enable-music-native-midi-gpl";
|
||||||
|
|
||||||
|
postInstall = "ln -s $out/include/SDL2/SDL_mixer.h $out/include/";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "SDL multi-channel audio mixer library";
|
||||||
|
};
|
||||||
|
}
|
@ -5412,6 +5412,10 @@ let
|
|||||||
pulseaudioSupport = false; # better go through ALSA
|
pulseaudioSupport = false; # better go through ALSA
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SDL2_image = callPackage ../development/libraries/SDL2_image { };
|
||||||
|
|
||||||
|
SDL2_mixer = callPackage ../development/libraries/SDL2_mixer { };
|
||||||
|
|
||||||
serd = callPackage ../development/libraries/serd {};
|
serd = callPackage ../development/libraries/serd {};
|
||||||
|
|
||||||
silgraphite = callPackage ../development/libraries/silgraphite {};
|
silgraphite = callPackage ../development/libraries/silgraphite {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user