2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, freetype
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, OpenGL
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ftgl";
|
|
|
|
version = "2.1.3-rc5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-19 17:17:44 +00:00
|
|
|
url = "mirror://sourceforge/${pname}-${version}.tar.gz";
|
|
|
|
hash = "sha256-VFjWISJFSGlXLTn4qoV0X8BdVRgAG876Y71su40mVls=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
buildInputs = [
|
|
|
|
freetype
|
|
|
|
] ++ (if stdenv.isDarwin then [
|
|
|
|
OpenGL
|
|
|
|
] else [
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-ft-prefix=${lib.getDev freetype}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://sourceforge.net/apps/mediawiki/ftgl/";
|
|
|
|
description = "Font rendering library for OpenGL applications";
|
|
|
|
longDescription = ''
|
2021-03-19 17:17:44 +00:00
|
|
|
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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2021-03-19 17:17:44 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|