gnu: Add portaudio.
[jackhill/guix/guix.git] / gnu / packages / graphics.scm
CommitLineData
f327b36e
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages graphics)
20 #:use-module (guix download)
21 #:use-module (guix packages)
22 #:use-module (guix build-system gnu)
23 #:use-module (guix build-system cmake)
24 #:use-module ((guix licenses) #:prefix license:)
25 #:use-module (gnu packages multiprecision)
26 #:use-module (gnu packages boost))
27
28(define-public cgal
29 (package
30 (name "cgal")
31 (version "4.5.1")
32 (source (origin
33 (method url-fetch)
34 (uri (string-append
35 "http://gforge.inria.fr/frs/download.php/file/34402/CGAL-"
36 version ".tar.xz"))
37 (sha256
38 (base32
39 "1565ycbds92bxmhi09avc1jl6ks141ig00j110l49gqxp9swy6zv"))))
40 (build-system cmake-build-system)
41 (arguments
42 '(;; "RelWithDebInfo" is not supported.
43 #:build-type "Release"
44
45 ;; No 'test' target.
46 #:tests? #f))
47 (inputs
48 `(("mpfr" ,mpfr)
49 ("gmp" ,gmp)
50 ("boost" ,boost)))
51 (home-page "http://cgal.org/")
52 (synopsis "Computational geometry algorithms library")
53 (description
54 "CGAL provides easy access to efficient and reliable geometric algorithms
55in the form of a C++ library. CGAL is used in various areas needing geometric
56computation, such as: computer graphics, scientific visualization, computer
57aided design and modeling, geographic information systems, molecular biology,
58medical imaging, robotics and motion planning, mesh generation, numerical
59methods, etc. It provides data structures and algorithms such as
60triangulations, Voronoi diagrams, polygons, polyhedra, mesh generation, and
61many more.")
62
63 ;; The 'LICENSE' file explains that a subset is available under more
64 ;; permissive licenses.
65 (license license:gpl3+)))