ftgl: reformat
This commit is contained in:
parent
f295110b26
commit
5c9ab9faf8
@ -1,40 +1,47 @@
|
|||||||
{ lib, stdenv, fetchurl, freetype, libGL, libGLU, OpenGL }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, freetype
|
||||||
|
, libGL
|
||||||
|
, libGLU
|
||||||
|
, OpenGL
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
name = "ftgl-2.1.3-rc5";
|
pname = "ftgl";
|
||||||
in
|
version = "2.1.3-rc5";
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit name;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/ftgl/${name}.tar.gz";
|
url = "mirror://sourceforge/${pname}-${version}.tar.gz";
|
||||||
sha256 = "0nsn4s6vnv5xcgxcw6q031amvh2zfj2smy1r5mbnjj2548hxcn2l";
|
hash = "sha256-VFjWISJFSGlXLTn4qoV0X8BdVRgAG876Y71su40mVls=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ freetype ]
|
buildInputs = [
|
||||||
++ (if stdenv.isDarwin then
|
freetype
|
||||||
[ OpenGL ]
|
] ++ (if stdenv.isDarwin then [
|
||||||
else
|
OpenGL
|
||||||
[ libGL libGLU ])
|
] else [
|
||||||
;
|
libGL
|
||||||
|
libGLU
|
||||||
|
]);
|
||||||
|
|
||||||
configureFlags = [ "--with-ft-prefix=${lib.getDev freetype}" ];
|
configureFlags = [
|
||||||
|
"--with-ft-prefix=${lib.getDev freetype}"
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://sourceforge.net/apps/mediawiki/ftgl/";
|
homepage = "https://sourceforge.net/apps/mediawiki/ftgl/";
|
||||||
description = "Font rendering library for OpenGL applications";
|
description = "Font rendering library for OpenGL applications";
|
||||||
license = lib.licenses.gpl3Plus;
|
|
||||||
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
FTGL is a free cross-platform Open Source C++ library that uses
|
FTGL is a free cross-platform Open Source C++ library that uses Freetype2
|
||||||
Freetype2 to simplify rendering fonts in OpenGL applications. FTGL
|
to simplify rendering fonts in OpenGL applications. FTGL supports bitmaps,
|
||||||
supports bitmaps, pixmaps, texture maps, outlines, polygon mesh,
|
pixmaps, texture maps, outlines, polygon mesh, and extruded polygon
|
||||||
and extruded polygon rendering modes.
|
rendering modes.
|
||||||
'';
|
'';
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
platforms = lib.platforms.unix;
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
maintainers = [];
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user