2016-02-06 03:12:00 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, SDL, freetype }:
|
2009-03-03 14:27:40 +01:00
|
|
|
|
2016-02-06 03:12:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "SDL_ttf-${version}";
|
|
|
|
version = "2.0.11";
|
2007-08-09 19:33:18 +02:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2016-02-06 03:12:00 +01:00
|
|
|
url = "http://www.libsdl.org/projects/SDL_ttf/release/${name}.tar.gz";
|
2014-03-14 10:35:37 +01:00
|
|
|
sha256 = "1dydxd4f5kb1288i5n5568kdk2q7f8mqjr7i7sd33nplxjaxhk3j";
|
2009-03-03 14:27:40 +01:00
|
|
|
};
|
2007-08-09 19:33:18 +02:00
|
|
|
|
2016-02-06 03:12:00 +01:00
|
|
|
patches = [
|
|
|
|
# Bug #830: TTF_RenderGlyph_Shaded is broken
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://bugzilla-attachments.libsdl.org/attachment.cgi?id=830";
|
|
|
|
sha256 = "0cfznfzg1hs10wl349z9n8chw80i5adl3iwhq4y102g0xrjyb72d";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = [ "-p0" ];
|
|
|
|
|
|
|
|
buildInputs = [ SDL freetype ];
|
2007-08-09 19:33:18 +02:00
|
|
|
|
2017-11-11 02:22:15 +01:00
|
|
|
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
|
|
|
|
|
2016-02-06 03:12:00 +01:00
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "SDL TrueType library";
|
2016-02-06 03:12:00 +01:00
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.all;
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://www.libsdl.org/projects/SDL_ttf/release-1.2.html;
|
2016-02-06 03:12:00 +01:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2007-08-09 19:33:18 +02:00
|
|
|
};
|
|
|
|
}
|