ftgl: 2.1.3-rc5 -> 2.4.0

This commit is contained in:
AndersonTorres 2021-04-25 13:46:05 -03:00
parent f58f7892d1
commit 2756b33d07
2 changed files with 27 additions and 8 deletions

View file

@ -1,28 +1,42 @@
{ lib
, stdenv
, fetchurl
, fetchFromGitHub
, autoreconfHook
, doxygen
, freeglut
, freetype
, GLUT
, libGL
, libGLU
, OpenGL
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "ftgl";
version = "2.1.3-rc5";
version = "2.4.0";
src = fetchurl {
url = "mirror://sourceforge/${pname}-${version}.tar.gz";
hash = "sha256-VFjWISJFSGlXLTn4qoV0X8BdVRgAG876Y71su40mVls=";
src = fetchFromGitHub {
owner = "frankheckenbach";
repo = "ftgl";
rev = "v${version}";
hash = "sha256-6TDNGoMeBLnucmHRgEDIVWcjlJb7N0sTluqBwRMMWn4=";
};
nativeBuildInputs = [
autoreconfHook
doxygen
pkg-config
];
buildInputs = [
freetype
] ++ (if stdenv.isDarwin then [
OpenGL
GLUT
] else [
libGL
libGLU
freeglut
]);
configureFlags = [
@ -31,8 +45,13 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
postInstall = ''
install -Dm644 src/FTSize.h -t ${placeholder "out"}/include/FTGL
install -Dm644 src/FTFace.h -t ${placeholder "out"}/include/FTGL
'';
meta = with lib; {
homepage = "https://sourceforge.net/apps/mediawiki/ftgl/";
homepage = "https://github.com/frankheckenbach/ftgl";
description = "Font rendering library for OpenGL applications";
longDescription = ''
FTGL is a free cross-platform Open Source C++ library that uses Freetype2
@ -40,7 +59,7 @@ stdenv.mkDerivation rec {
pixmaps, texture maps, outlines, polygon mesh, and extruded polygon
rendering modes.
'';
license = licenses.gpl3Plus;
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};

View file

@ -4639,7 +4639,7 @@ in
frostwire-bin = callPackage ../applications/networking/p2p/frostwire/frostwire-bin.nix { };
ftgl = callPackage ../development/libraries/ftgl {
inherit (darwin.apple_sdk.frameworks) OpenGL;
inherit (darwin.apple_sdk.frameworks) OpenGL GLUT;
};
ftop = callPackage ../os-specific/linux/ftop { };