about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/ftgl
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/ftgl')
-rw-r--r--nixpkgs/pkgs/development/libraries/ftgl/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/ftgl/default.nix b/nixpkgs/pkgs/development/libraries/ftgl/default.nix
new file mode 100644
index 000000000000..c3fd6ffb9407
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/ftgl/default.nix
@@ -0,0 +1,40 @@
+{ lib, 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";
+  };
+
+  buildInputs = [ freetype ]
+    ++ (if stdenv.isDarwin then
+      [ OpenGL ]
+    else
+      [ libGL libGLU ])
+    ;
+
+  configureFlags = [ "--with-ft-prefix=${lib.getDev freetype}" ];
+
+  enableParallelBuilding = true;
+
+  meta = {
+    homepage = "https://sourceforge.net/apps/mediawiki/ftgl/";
+    description = "Font rendering library for OpenGL applications";
+    license = 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.
+    '';
+
+    platforms = lib.platforms.unix;
+    maintainers = [];
+  };
+}