mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
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:
parent
83b3ab4657
commit
97182f0bcb
@ -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";
|
||||
|
@ -13,7 +13,15 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [SDL libpng libjpeg libtiff libungif libXpm];
|
||||
|
||||
postInstall = "ln -sv $out/include/SDL/SDL_image.h $out/include/";
|
||||
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/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "SDL image library";
|
||||
|
Loading…
Reference in New Issue
Block a user