3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/ftgl/default.nix

41 lines
1 KiB
Nix
Raw Normal View History

2019-11-07 16:39:02 +00:00
{ stdenv, fetchurl, freetype, libGL, libGLU, OpenGL }:
let
name = "ftgl-2.1.3-rc5";
in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "mirror://sourceforge/ftgl/${name}.tar.gz";
sha256 = "0nsn4s6vnv5xcgxcw6q031amvh2zfj2smy1r5mbnjj2548hxcn2l";
};
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
configureFlags = [ "--with-ft-prefix=${stdenv.lib.getDev freetype}" ];
2017-11-27 15:29:37 +00:00
enableParallelBuilding = true;
meta = {
homepage = "https://sourceforge.net/apps/mediawiki/ftgl/";
description = "Font rendering library for OpenGL applications";
license = stdenv.lib.licenses.gpl3Plus;
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.
'';
2017-11-27 15:29:37 +00:00
platforms = stdenv.lib.platforms.unix;
maintainers = [];
};
}