2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, freetype, libGL, libGLU, OpenGL }:
|
2012-01-15 11:44:05 +00:00
|
|
|
|
|
|
|
let
|
2010-10-20 11:53:45 +01:00
|
|
|
name = "ftgl-2.1.3-rc5";
|
2012-01-15 11:44:05 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
|
|
|
|
2010-10-20 11:53:45 +01:00
|
|
|
src = fetchurl {
|
2012-01-15 11:44:05 +00:00
|
|
|
url = "mirror://sourceforge/ftgl/${name}.tar.gz";
|
2010-10-20 11:53:45 +01:00
|
|
|
sha256 = "0nsn4s6vnv5xcgxcw6q031amvh2zfj2smy1r5mbnjj2548hxcn2l";
|
|
|
|
};
|
2012-01-15 11:44:05 +00:00
|
|
|
|
2019-02-01 19:16:52 +00:00
|
|
|
buildInputs = [ freetype ]
|
|
|
|
++ (if stdenv.isDarwin then
|
|
|
|
[ OpenGL ]
|
|
|
|
else
|
2019-11-07 16:39:02 +00:00
|
|
|
[ libGL libGLU ])
|
2019-02-01 19:16:52 +00:00
|
|
|
;
|
2017-11-27 15:29:37 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
configureFlags = [ "--with-ft-prefix=${lib.getDev freetype}" ];
|
2020-04-02 03:26:48 +01:00
|
|
|
|
2017-11-27 15:29:37 +00:00
|
|
|
enableParallelBuilding = true;
|
2010-10-20 11:53:45 +01:00
|
|
|
|
2012-01-15 11:44:11 +00:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/apps/mediawiki/ftgl/";
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Font rendering library for OpenGL applications";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2012-01-15 11:44:11 +00:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
FTGL is a free cross-platform Open Source C++ library that uses
|
|
|
|
Freetype2 to simplify rendering fonts in OpenGL applications. FTGL
|
|
|
|
supports bitmaps, pixmaps, texture maps, outlines, polygon mesh,
|
|
|
|
and extruded polygon rendering modes.
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2012-01-15 11:44:11 +00:00
|
|
|
maintainers = [];
|
|
|
|
};
|
2010-10-20 11:53:45 +01:00
|
|
|
}
|