;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Ludovic Courtès
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see .
(define-module (gnu packages ftgl)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
#:use-module (gnu packages)
#:use-module (gnu packages xorg)
#:use-module (gnu packages fontutils) ;;The licenses module calls freetype (and it warns me), but dosen't seem to work without explicitly called as an input.
#:use-module (gnu packages freeglut))
(define-public ftgl ;Should expression move to fontutils, xorg, or keep here?
(package
(name "ftgl")
(version "2.1.3-rc5")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/project/ftgl/FTGL%20Source/2.1.3~rc5/ftgl-"
version ".tar.gz"))
(sha256
(base32 "0nsn4s6vnv5xcgxcw6q031amvh2zfj2smy1r5mbnjj2548hxcn2l"))))
(build-system gnu-build-system)
(inputs `(("freetype" ,freetype)
("libx11" ,libx11)
("mesa" ,mesa)
("glu" ,glu)))
(home-page "http://sourceforge.net/apps/mediawiki/ftgl/index.php?title=Main_Page")
(synopsis "A font rendering library for OpenGL applications. ")
(description
"FTGL is a font rendering library for OpenGL applications. Supported rendering modes are:
Bitmaps, Anti-aliased pixmaps, Texture maps, Outlines, Polygon meshes, and Extruded polygon meshes")
(license lgpl2.0))) ;Mit or Lgpl at your option, not sure how, or if one can currently dual-license.