added SDL_net, some minor modifications to SDL_image and SDL_mixer

svn path=/nixpkgs/trunk/; revision=10528
This commit is contained in:
Tobias Hammerschmidt 2008-02-06 21:17:42 +00:00
parent b60e822bfb
commit aa1f102e1c
3 changed files with 51 additions and 13 deletions

View File

@ -1,9 +1,12 @@
args: with args;
stdenv.mkDerivation {
name = "SDL_image-1.2.6";
stdenv.mkDerivation (rec {
pname = "SDL_image";
version = "1.2.6";
name = "${pname}-${version}";
src = fetchurl {
url = http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.6.tar.gz;
url = "http://www.libsdl.org/projects/${pname}/release/${name}.tar.gz";
sha256 = "1i3f72dw3i3l6d77dk81gw57sp0629rng9k76qb37brlz7dv3z48";
};
@ -16,4 +19,4 @@ stdenv.mkDerivation {
SDL image library.
";
};
}
})

View File

@ -1,11 +1,24 @@
{stdenv, fetchurl, SDL, libogg, libvorbis}:
args: with args;
stdenv.mkDerivation (rec {
pname = "SDL_mixer";
version = "1.2.8";
name = "${pname}-${version}";
stdenv.mkDerivation {
name = "SDL_mixer-1.2.7";
src = fetchurl {
url = http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.7.tar.gz;
md5 = "7959b89c8f8f1564ca90968f6c88fa1e";
url = "http://www.libsdl.org/projects/${pname}/release/${name}.tar.gz";
sha256 = "a8222a274778ff16d0e3ee49a30db27a48a4d357169a915fc599a764e405e0b6";
};
buildInputs = [SDL libogg libvorbis];
configureFlags = "--disable-music-ogg-shared";
}
postInstall = "ln -s \${out}/include/SDL/SDL_mixer.h \${out}/include/";
meta = {
description = "
SDL multi-channel audio mixer library.
";
};
})

View File

@ -0,0 +1,22 @@
args: with args;
stdenv.mkDerivation (rec {
pname = "SDL_net";
version = "1.2.7";
name = "${pname}-${version}";
src = fetchurl {
url = "http://www.libsdl.org/projects/SDL_net/release/${name}.tar.gz";
sha256 = "2ce7c84e62ff8117b9f205758bcce68ea603e08bc9d6936ded343735b8b77c53";
};
buildInputs = [SDL];
postInstall = "ln -s \${out}/include/SDL/SDL_net.h \${out}/include/";
meta = {
description = "
SDL networking library.
";
};
})