Making SDL_gfx and SDL_image find the SDL headers, by a postInstall patch.

They expected to sit in the same directory as the SDL headers.

svn path=/nixpkgs/trunk/; revision=26574
This commit is contained in:
Lluís Batlle i Rossell
2011-03-28 16:08:17 +00:00
parent 83b3ab4657
commit 97182f0bcb
2 changed files with 15 additions and 2 deletions
@@ -12,7 +12,12 @@ stdenv.mkDerivation rec {
configureFlags = "--disable-mmx";
postInstall = "ln -s $out/include/SDL/*.h $out/include/";
postInstall = ''
sed -i -e 's,"SDL.h",<SDL/SDL.h>,' \
$out/include/SDL/*.h
ln -s $out/include/SDL/*.h $out/include/;
'';
meta = {
description = "SDL graphics drawing primitives and support functions";