SDL: cleanup and add patch to discover extensions

This commit is contained in:
Nikolay Amiantov
2016-08-22 06:30:00 +03:00
parent 3e2458a085
commit b47327ebd5
10 changed files with 75 additions and 85 deletions
+9 -15
View File
@@ -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;
};
}