lol
1{stdenv, fetchurl, freetype, mesa}:
2
3let
4 name = "ftgl-2.1.2";
5in
6stdenv.mkDerivation {
7 inherit name;
8
9 src = fetchurl {
10 url = "mirror://sourceforge/ftgl/${name}.tar.gz";
11 sha256 = "0xa00fnn6wd3rnkrkcs1wpv21lxdsb83r4hjn3l33dn0zbawnn97";
12 };
13
14 buildInputs = [freetype mesa];
15
16 NIX_LDFLAGS = "-lGLU -lGL";
17
18 patches = [ ./gcc.patch ];
19
20 configureFlags = "--enable-shared";
21
22 preConfigure = ''
23 cd unix
24 cd docs
25 tar vxf ../../docs/html.tar.gz
26 cd ..
27 '';
28
29 meta = {
30 homepage = "http://sourceforge.net/apps/mediawiki/ftgl/";
31 description = "font rendering library for OpenGL applications";
32 license = stdenv.lib.licenses.gpl3Plus;
33
34 longDescription = ''
35 FTGL is a free cross-platform Open Source C++ library that uses
36 Freetype2 to simplify rendering fonts in OpenGL applications. FTGL
37 supports bitmaps, pixmaps, texture maps, outlines, polygon mesh,
38 and extruded polygon rendering modes.
39 '';
40
41 platforms = stdenv.lib.platforms.gnu;
42 maintainers = [];
43 };
44}