2011-09-26 01:12:48 +01:00
|
|
|
{ stdenv, fetchhg, SDL, libpng, libjpeg, libtiff, libungif, libXpm, automake,
|
|
|
|
autoconf, pkgconfig }:
|
2009-03-03 13:27:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2008-02-06 21:17:42 +00:00
|
|
|
pname = "SDL_image";
|
2011-09-26 01:12:48 +01:00
|
|
|
version = "1.2.10-20110925";
|
2008-02-06 21:17:42 +00:00
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
2007-08-09 18:33:18 +01:00
|
|
|
|
2011-09-26 01:12:48 +01:00
|
|
|
src = fetchhg {
|
|
|
|
url = http://hg.libsdl.org/SDL_image;
|
|
|
|
tag = "bb611e7cb1e5";
|
|
|
|
sha256 = "0003inlvvmlc2fyrzy01lwhhfb90ppsar2skaa7x6rhmpc71dakz";
|
2008-02-06 21:17:42 +00:00
|
|
|
};
|
2007-08-09 18:33:18 +01:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
buildInputs = [SDL libpng libjpeg libtiff libungif libXpm];
|
2007-08-09 18:33:18 +01:00
|
|
|
|
2011-09-26 01:12:48 +01:00
|
|
|
buildNativeInputs = [ automake autoconf pkgconfig ];
|
|
|
|
|
|
|
|
patches = [ ./jpeg-linux.diff ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2011-03-28 17:08:17 +01: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 18:33:18 +01:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "SDL image library";
|
2011-09-26 00:36:20 +01:00
|
|
|
homepage = http://www.libsdl.org/projects/SDL_image/;
|
2012-05-09 22:10:12 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2007-08-09 18:33:18 +01:00
|
|
|
};
|
2009-03-03 13:27:40 +00:00
|
|
|
}
|