Server application for collaborative production of 3D assets and animations.
(define-module (vfx packages cgal)

  #:use-module (gnu packages)
  #:use-module (gnu packages multiprecision)
  #:use-module (gnu packages boost)

  #:use-module (guix)
  #:use-module (guix gexp)
  #:use-module (guix build utils)
  #:use-module (guix build-system cmake)
  #:use-module ((guix licenses) #:prefix licenses:))

(define-public cgal-5.5
  (package
    (name "cgal")
    (version "5.5.1")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "https://github.com/CGAL/cgal/"
                    "releases/download/v" version "/"
		    "CGAL-" version ".tar.xz"))
              (sha256
               (base32
                "1z7dcqah72pixs3nxjjwhldsrpcysy5bdd8fy35cvyi8y3g305h9"))
	      (patches (search-patches "vfx/patches/cgal-resources-perm.patch"))))
    (build-system cmake-build-system)
    (arguments
     (list #:tests? #f
           #:configure-flags
           #~(list "-DWITH_demos=ON")))
    (propagated-inputs
     (list mpfr gmp boost))
    (home-page "https://www.cgal.org/")
    (synopsis "Computational geometry algorithms library")
    (description
     "CGAL provides easy access to efficient and reliable geometric algorithms
in the form of a C++ library.  CGAL is used in various areas needing geometric
computation, such as: computer graphics, scientific visualization, computer
aided design and modeling, geographic information systems, molecular biology,
medical imaging, robotics and motion planning, mesh generation, numerical
methods, etc.  It provides data structures and algorithms such as
triangulations, Voronoi diagrams, polygons, polyhedra, mesh generation, and
many more.")
    (license licenses:gpl3+)))