From b952e7778843adbebae0d12d6f1601e4594313eb Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Thu, 16 Mar 2023 16:54:01 +0100 Subject: Add FLTK --- fltk.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 fltk.scm diff --git a/fltk.scm b/fltk.scm new file mode 100644 index 0000000..6712e73 --- /dev/null +++ b/fltk.scm @@ -0,0 +1,40 @@ +(define-module (fltk) + #:use-module (guix packages) + #:use-module (guix gexp) + #:use-module (gnu packages) + #:use-module (gnu packages autotools) + #:use-module (gnu packages gl) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages man) + #:use-module (gnu packages xorg) + #:use-module (guix git-download) + #:use-module (guix build-system cmake) + #:use-module ((guix licenses) #:prefix license:)) + +(define-public fltk + (package + (name "fltk") + (version "1.3.8") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/fltk/fltk") + (commit (string-append "release-" version)))) + + (sha256 + (base32 "0ksdrk3ii93lfsyzvj351ml0piq0bngj7h87wv85xn521h5z63f9")))) + + (build-system cmake-build-system) + (inputs (list libx11 libxft pkg-config glu man-db)) + (home-page "https://www.fltk.org/index.php") + (synopsis "FLTK is a cross-platform C++ GUI toolkit for UNIX/Linux +(X11), Microsoft Windows, and MacOS X.") + (description "FLTK is a cross-platform C++ GUI toolkit for UNIX/Linux +(X11), Microsoft Windows, and MacOS X. FLTK provides modern GUI functionality +without the bloat and supports 3D graphics via OpenGL and its built-in GLUT +emulation. + +FLTK is designed to be small and modular enough to be statically linked, but +works fine as a shared library. FLTK also includes an excellent UI builder +called FLUID.") + (license license:gpl2))) -- cgit v1.2.3