2012-12-06 12:02:17 +01:00
|
|
|
{ stdenv, fetchurl, SDL, libpng, libjpeg, libtiff, libungif, libXpm }:
|
2009-03-03 14:27:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-12-06 12:02:17 +01:00
|
|
|
name = "SDL_image-1.2.12";
|
2008-02-06 22:17:42 +01:00
|
|
|
|
2012-12-06 12:02:17 +01:00
|
|
|
src = fetchurl {
|
2013-09-06 03:47:49 +02:00
|
|
|
url = "http://www.libsdl.org/projects/SDL_image/release/${name}.tar.gz";
|
2012-12-06 12:02:17 +01:00
|
|
|
sha256 = "16an9slbb8ci7d89wakkmyfvp7c0cval8xw4hkg0842nhhlp540b";
|
2008-02-06 22:17:42 +01:00
|
|
|
};
|
2007-08-09 19:33:18 +02:00
|
|
|
|
2013-09-06 03:47:49 +02:00
|
|
|
buildInputs = [ SDL libpng libjpeg libtiff libungif libXpm ];
|
2007-08-09 19:33:18 +02:00
|
|
|
|
2011-03-28 18:08:17 +02:00
|
|
|
postInstall = ''
|
|
|
|
sed -i -e 's,"SDL.h",<SDL/SDL.h>,' \
|
2012-12-06 12:02:17 +01:00
|
|
|
-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>,' \
|
2011-03-28 18:08:17 +02:00
|
|
|
$out/include/SDL/SDL_image.h
|
2012-12-06 12:02:17 +01:00
|
|
|
ln -sv SDL/SDL_image.h $out/include/SDL_image.h
|
2011-03-28 18:08:17 +02:00
|
|
|
'';
|
2007-08-09 19:33:18 +02:00
|
|
|
|
2013-09-06 03:47:49 +02:00
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "SDL image library";
|
2013-09-06 03:47:49 +02:00
|
|
|
homepage = http://www.libsdl.org/projects/SDL_image/;
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
2007-08-09 19:33:18 +02:00
|
|
|
};
|
2009-03-03 14:27:40 +01:00
|
|
|
}
|