SDL: cleanup and add patch to discover extensions
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{stdenv, fetchurl, SDL} :
|
||||
{ stdenv, fetchurl, SDL }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "SDL_gfx-2.0.25";
|
||||
name = "SDL_gfx-${version}";
|
||||
version = "2.0.25";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.ferzkopp.net/Software/SDL_gfx-2.0/${name}.tar.gz";
|
||||
@@ -10,16 +11,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ SDL ] ;
|
||||
|
||||
configureFlags = "--disable-mmx";
|
||||
configureFlags = [ "--disable-mmx" ];
|
||||
|
||||
postInstall = ''
|
||||
sed -i -e 's,"SDL.h",<SDL/SDL.h>,' \
|
||||
$out/include/SDL/*.h
|
||||
|
||||
ln -s $out/include/SDL/*.h $out/include/;
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "SDL graphics drawing primitives and support functions";
|
||||
|
||||
longDescription =
|
||||
@@ -40,10 +34,10 @@ stdenv.mkDerivation rec {
|
||||
code. Its is written in plain C and can be used in C++ code.
|
||||
'';
|
||||
|
||||
homepage = https://sourceforge.net/projects/sdlgfx/;
|
||||
license = stdenv.lib.licenses.lgpl2Plus;
|
||||
homepage = "https://sourceforge.net/projects/sdlgfx/";
|
||||
license = licenses.zlib;
|
||||
|
||||
maintainers = [ stdenv.lib.maintainers.bjg ];
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = with maintainers; [ bjg ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user