2010-07-28 19:35:01 +04:00
|
|
|
{ stdenv, fetchurl, SDL, libpng, libjpeg, libtiff, libungif, libXpm }:
|
2009-03-03 16:27:40 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2008-02-07 00:17:42 +03:00
|
|
|
pname = "SDL_image";
|
2011-02-10 00:10:05 +03:00
|
|
|
version = "1.2.10";
|
2008-02-07 00:17:42 +03:00
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
2007-08-09 21:33:18 +04:00
|
|
|
|
2008-01-30 20:20:48 +03:00
|
|
|
src = fetchurl {
|
2008-02-07 00:17:42 +03:00
|
|
|
url = "http://www.libsdl.org/projects/${pname}/release/${name}.tar.gz";
|
2011-02-10 00:10:05 +03:00
|
|
|
sha256 = "0xhqw56xgc0rn3ziccirib8ai2whbbidjmvig527n9znjlg5vq3m";
|
2008-02-07 00:17:42 +03:00
|
|
|
};
|
2007-08-09 21:33:18 +04:00
|
|
|
|
2008-01-30 20:20:48 +03:00
|
|
|
buildInputs = [SDL libpng libjpeg libtiff libungif libXpm];
|
2007-08-09 21:33:18 +04:00
|
|
|
|
2011-03-28 20:08:17 +04:00
|
|
|
postInstall = ''
|
|
|
|
sed -i -e 's,"SDL.h",<SDL/SDL.h>,' \
|
|
|
|
-e 's,"SDL_version.h",<SDL/SDL_version.h>,' \
|
|
|
|
-e 's,"begin_code.h",<SDL/begin_code.h>,' \
|
|
|
|
-e 's,"close_code.h",<SDL/close_code.h>,' \
|
|
|
|
$out/include/SDL/SDL_image.h
|
|
|
|
|
|
|
|
ln -sv $out/include/SDL/SDL_image.h $out/include/
|
|
|
|
'';
|
2007-08-09 21:33:18 +04:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 16:27:40 +03:00
|
|
|
description = "SDL image library";
|
2011-09-26 03:36:20 +04:00
|
|
|
homepage = http://www.libsdl.org/projects/SDL_image/;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2007-08-09 21:33:18 +04:00
|
|
|
};
|
2009-03-03 16:27:40 +03:00
|
|
|
}
|