15 inherit (darwin.apple_sdk.frameworks) OpenGL GLUT;
17 stdenv.mkDerivation rec {
21 src = fetchFromGitHub {
22 owner = "frankheckenbach";
25 hash = "sha256-6TDNGoMeBLnucmHRgEDIVWcjlJb7N0sTluqBwRMMWn4=";
28 # GL_DYLIB is hardcoded to an impure path
29 # /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
30 # and breaks build on recent macOS versions
32 substituteInPlace m4/gl.m4 \
33 --replace ' -dylib_file $GL_DYLIB: $GL_DYLIB' ""
43 ] ++ (if stdenv.hostPlatform.isDarwin then [
53 "--with-ft-prefix=${lib.getDev freetype}"
56 enableParallelBuilding = true;
59 install -Dm644 src/FTSize.h -t ${placeholder "out"}/include/FTGL
60 install -Dm644 src/FTFace.h -t ${placeholder "out"}/include/FTGL
64 homepage = "https://github.com/frankheckenbach/ftgl";
65 description = "Font rendering library for OpenGL applications";
67 FTGL is a free cross-platform Open Source C++ library that uses Freetype2
68 to simplify rendering fonts in OpenGL applications. FTGL supports bitmaps,
69 pixmaps, texture maps, outlines, polygon mesh, and extruded polygon
72 license = licenses.mit;
73 maintainers = with maintainers; [ AndersonTorres ];
74 platforms = platforms.unix;