aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/haskell-check.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/haskell-check.scm')
0 files changed, 0 insertions, 0 deletions
et> ;;; Copyright © 2023, 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com> ;;; Copyright © 2024 Ivan Vilata-i-Balaguer <ivan@selidor.net> ;;; ;;; 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 <http://www.gnu.org/licenses/>. (define-module (gnu packages graphics) #:use-module (gnu packages) #:use-module (gnu packages algebra) #:use-module (gnu packages audio) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages bison) #:use-module (gnu packages boost) #:use-module (gnu packages build-tools) #:use-module (gnu packages cdrom) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) #:use-module (gnu packages datastructures) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) #:use-module (gnu packages fonts) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) #:use-module (gnu packages game-development) #:use-module (gnu packages gettext) #:use-module (gnu packages ghostscript) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gnunet) #:use-module (gnu packages gnuzilla) #:use-module (gnu packages graphviz) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages icu4c) #:use-module (gnu packages image) #:use-module (gnu packages image-processing) #:use-module (gnu packages imagemagick) #:use-module (gnu packages jemalloc) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages logging) #:use-module (gnu packages llvm) #:use-module (gnu packages lua) #:use-module (gnu packages man) #:use-module (gnu packages maths) #:use-module (gnu packages mp3) #:use-module (gnu packages multiprecision) #:use-module (gnu packages ninja) #:use-module (gnu packages pciutils) #:use-module (gnu packages pdf) #:use-module (gnu packages perl) #:use-module (gnu packages photo) #:use-module (gnu packages pkg-config) #:use-module (gnu packages plotutils) #:use-module (gnu packages pretty-print) #:use-module (gnu packages pth) #:use-module (gnu packages pulseaudio) ; libsndfile, libsamplerate #:use-module (gnu packages python) #:use-module (gnu packages python-build) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages readline) #:use-module (gnu packages sdl) #:use-module (gnu packages serialization) #:use-module (gnu packages stb) #:use-module (gnu packages swig) #:use-module (gnu packages tbb) #:use-module (gnu packages toolkits) #:use-module (gnu packages upnp) #:use-module (gnu packages version-control) #:use-module (gnu packages video) #:use-module (gnu packages vulkan) #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (gnu packages xdisorg) #:use-module (guix build-system copy) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) #:use-module (guix build-system python) #:use-module (guix build-system qt) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix hg-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix deprecation) #:use-module (guix utils) #:use-module (ice-9 match)) (define-public mmm (package (name "mmm") (version "0.1.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/hodefoting/mmm") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1xmcv6rwinqsbr863rgl9005h2jlmd7k2qrwsc1h4fb8r61ykpjl")))) (build-system meson-build-system) (arguments (list #:phases #~(modify-phases %standard-phases ;; XXX: Meson build fails due to a misspelling of ;; "description" keyword in the configuration. This phase ;; fixes that. (add-after 'unpack 'patch-meson-build (lambda _ (substitute* "meson.build" (("not stable, Description:") "not stable, description:"))))))) (native-inputs (list luajit pkg-config)) (inputs (list alsa-lib sdl sdl2)) (synopsis "Memory Mapped Machine") (description "MMM is a shared memory protocol for virtualising access to framebuffer graphics, audio output and input event.") (home-page "https://github.com/hodefoting/mmm") (license license:isc))) (define-public directfb (package (name "directfb") (version "1.7.7") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/deniskropp/DirectFB") (commit "DIRECTFB_1_7_7"))) (file-name (git-file-name name version)) (sha256 (base32 "0bs3yzb7hy3mgydrj8ycg7pllrd2b6j0gxj596inyr7ihssr3i0y")))) (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'remove-buildtime ;; Remove embedded build time for reproducible builds (lambda _ (substitute* "src/core/core.c" (("..BUILDTIME..") "")))) ;; TODO: Move patch to source. ,@(if (target-arm32?) `((add-after 'unpack 'patch-source (lambda* (#:key inputs #:allow-other-keys) (invoke "patch" "--force" "-p1" "-i" (assoc-ref inputs "patch-file"))))) '()) (add-after 'unpack 'disable-configure-during-bootstrap (lambda _ (substitute* "autogen.sh" (("^.*\\$srcdir/configure.*") "")) #t))))) (native-inputs `(("autoconf" ,autoconf) ("automake" ,automake) ("libtool" ,libtool) ("perl" ,perl) ("pkg-config" ,pkg-config) ,@(if (target-arm32?) `(("patch" ,patch) ("patch-file" ,(search-patch "directfb-davinci-glibc-228-compat.patch"))) '()))) (inputs (list alsa-lib ffmpeg freetype glu gstreamer imlib2 jasper libjpeg-turbo libcddb libdrm libtimidity libmad libmng libmpeg2 libmpeg3 mesa libpng sdl (librsvg-for-system) libtiff tslib libvdpau libvorbis wayland libwebp libx11 libxcomposite libxext xorgproto zlib)) (propagated-inputs (list flux)) (synopsis "DFB Graphics Library") (description "DirectFB is a graphics library which was designed with embedded systems in mind. It offers maximum hardware accelerated performance at a minimum of resource usage and overhead.") (home-page "https://github.com/deniskropp/DirectFB") (license license:lgpl2.1+))) (define-public minifb (let ((commit "43f8c1309341f4709a471b592d04434326042483") (revision "1")) (package (name "minifb") (version (git-version "0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/emoon/minifb") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "1z0720azsgi83yg4ysmfvpvsg0566s2cq59xx52w8w5rpkla4cjh")))) (build-system cmake-build-system) (arguments ;; Don't build examples. '(#:configure-flags '("-DMINIFB_BUILD_EXAMPLES=0") #:phases ;; There is no install target, so we have to copy the static library ;; and headers to the output directory ourselves. (modify-phases %standard-phases (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (includedir (string-append out "/include")) (libdir (string-append out "/lib"))) (mkdir-p includedir) (mkdir-p libdir) (for-each (lambda (header) (copy-file header (string-append includedir "/" (basename header)))) (find-files "../source/include" "\\.h$")) (copy-file "libminifb.a" (string-append libdir "/libminifb.a")))))) ;; No check target. #:tests? #f)) ;; libminifb.a won't work without these libraries, so propagate them. (propagated-inputs (list libx11 libxkbcommon mesa)) (synopsis "Small library for rendering pixels to a framebuffer") (description "MiniFB (Mini FrameBuffer) is a small, cross-platform library that makes it easy to render (32-bit) pixels in a window.") (home-page "https://github.com/emoon/minifb") (license license:expat)))) (define-public flux (package (name "flux") (version "1.4.4") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/deniskropp/flux") (commit "e45758a"))) (file-name (git-file-name name version)) (sha256 (base32 "11f3ypg0sdq5kj69zgz6kih1yrzgm48r16spyvzwvlswng147410")))) (build-system gnu-build-system) (native-inputs (list autoconf automake libtool pkg-config)) (synopsis "Interface description language") (description "Flux is an interface description language used by DirectFB. Fluxcomp compiles .flux files to .cpp or .c files.") (home-page "https://www.directfb.org/") (license license:lgpl2.1+))) ; Same as DirectFB (define-public fox (package (name "fox") (version "1.6.57") (source (origin (method url-fetch) (uri (string-append "https://fox-toolkit.org/ftp/fox-" version ".tar.gz")) (sha256 (base32 "08w98m6wjadraw1pi13igzagly4b2nfa57kdqdnkjfhgkvg1bvv5")))) (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'patch (lambda _ (substitute* "configure" (("-I/usr/include/freetype2") (string-append "-I" (string-append (assoc-ref %build-inputs "freetype") "/include/freetype2")))) #t))))) (native-inputs (list doxygen)) (inputs `(("bzip2" ,lbzip2) ("freetype" ,freetype) ("gl" ,mesa) ("glu" ,glu) ("jpeg" ,libjpeg-turbo) ("png" ,libpng) ("tiff" ,libtiff) ("x11" ,libx11) ("xcursor" ,libxcursor) ("xext" ,libxext) ("xfixes" ,libxfixes) ("xft" ,libxft) ("xinput" ,libxi) ("xrandr" ,libxrandr) ("xrender" ,libxrender) ("xshm" ,libxshmfence) ("zlib" ,zlib))) (synopsis "Widget Toolkit for building GUI") (description"FOX (Free Objects for X) is a C++ based Toolkit for developing Graphical User Interfaces easily and effectively. It offers a wide, and growing, collection of Controls, and provides state of the art facilities such as drag and drop, selection, as well as OpenGL widgets for 3D graphical manipulation. FOX also implements icons, images, and user-convenience features such as status line help, and tooltips. Tooltips may even be used for 3D objects!") (home-page "http://www.fox-toolkit.org") (license license:lgpl2.1+))) (define-public autotrace (package (name "autotrace") (version "0.31.10") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/autotrace/autotrace") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0ai91c567c5z560s4zjgjclgca1pm61h8cb8c8q84wg3xvkhmc9x")))) (build-system gnu-build-system) (arguments (list #:configure-flags #~'("--disable-static") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-pkg-config-file (lambda _ ;; autotrace can be built against either GraphicsMagick or ;; ImageMagick. However the pkg-config file refers to ;; non-existent MAGICK_ variables instead of GRAPHICSMAGICK_ ;; or IMAGEMAGICK_; fix that. (substitute* "autotrace.pc.in" (("@MAGICK_(LIBS|CFLAGS)@" _ var) (string-append "@IMAGEMAGICK_" var "@")))))))) (native-inputs (list which autoconf automake libtool intltool pkg-config procps)) ;for tests (inputs (list glib imagemagick libjpeg-turbo libpng pstoedit ;; pango is required because of libtool, from the imagemagick ;; library files (.la), which records all its transitive ;; dependencies. pango)) (home-page "https://github.com/autotrace/autotrace") (synopsis "Bitmap to vector graphics converter") (description "AutoTrace is a utility for converting bitmap into vector graphics. It can trace outlines and midlines, effect color reduction or despeckling and has support for many input and output formats. It can be used with the @command{autotrace} utility or as a C library, @code{libautotrace}.") (license (list license:gpl2+ ;for the utility itself license:lgpl2.1+)))) ;for use as a library (define-public embree (package (name "embree") (version "4.3.3") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/embree/embree") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1p8xlzz8lvcg2laz164snp9hf4nnn4ynfxxc4sf6skg78y86hxbc")))) (build-system cmake-build-system) (arguments `(#:tests? #f ; no tests (apparently) #:configure-flags (list "-DEMBREE_ISPC_SUPPORT=OFF"))) (inputs (list tbb glfw)) (home-page "https://www.embree.org/") (synopsis "High performance ray tracing kernels") (description "Embree is a collection of high-performance ray tracing kernels. Embree is meant to increase performance of photo-realistic rendering applications.") (license license:asl2.0))) (define-public embree-3 (package (inherit embree) (name "embree") (version "3.3.15") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/embree/embree") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1kcvz7g6j56anv9zjyd3gidxl46vipw0gg82lns12m45cd43iwxm")))))) (define-public openvdb (package (name "openvdb") (version "11.0.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/AcademySoftwareFoundation/openvdb/") (commit (string-append "v" version)) (recursive? #t))) (file-name (git-file-name name version)) (sha256 (base32 "0r6q7bl8513ggrvx3n73j1s3f7n5x1rxy5xi471qyrya95gy6c60")))) (build-system cmake-build-system) (arguments `(#:configure-flags (list (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")))) (inputs (list boost c-blosc jemalloc tbb zlib)) (native-inputs (list pkg-config)) (home-page "https://www.openvdb.org/") (synopsis "Sparse volume data structure and tools") (description "OpenVDB is a C++ library comprising a hierarchical data structure and a large suite of tools for the efficient storage and manipulation of sparse volumetric data discretized on three-dimensional grids. It was developed by DreamWorks Animation for use in volumetric applications typically encountered in feature film production.") (license license:mpl2.0))) (define-public blender (package (name "blender") (version "3.6.19") ;4.2.x+ requires Python >= 3.12 (source (origin (method url-fetch) (uri (string-append "https://download.blender.org/source/" "blender-" version ".tar.xz")) (sha256 (base32 "0mx5q3kb3bgx8ni4qpy02gc4kx3cc1zqc5p5vkrdggis3rk3k76h")))) (build-system cmake-build-system) (arguments (list ;; Test files are very large and not included in the release tarball. #:tests? #f #:configure-flags (let ((python-version (version-major+minor (package-version python)))) #~(list "-DWITH_CODEC_FFMPEG=ON" "-DWITH_CODEC_SNDFILE=ON" "-DWITH_CYCLES=ON" "-DWITH_DOC_MANPAGE=ON" "-DWITH_FFTW3=ON" "-DWITH_IMAGE_OPENJPEG=ON" "-DWITH_INPUT_NDOF=ON" "-DWITH_INSTALL_PORTABLE=OFF" "-DWITH_JACK=ON" "-DWITH_MOD_OCEANSIM=ON" "-DWITH_OPENVDB=ON" "-DWITH_OPENSUBDIV=ON" "-DWITH_PYTHON_INSTALL=OFF" "-DWITH_SYSTEM_BULLET=ON" "-DWITH_SYSTEM_EIGEN3=ON" "-DWITH_SYSTEM_FREETYPE=ON" "-DWITH_SYSTEM_GLOG=ON" "-DWITH_SYSTEM_LZO=ON" (string-append "-DPYTHON_LIBRARY=python" #$python-version) (string-append "-DPYTHON_LIBPATH=" (assoc-ref %build-inputs "python") "/lib") (string-append "-DPYTHON_INCLUDE_DIR=" (assoc-ref %build-inputs "python") "/include/python" #$python-version) (string-append "-DPYTHON_VERSION=" #$python-version) (string-append "-DPYTHON_NUMPY_INCLUDE_DIRS=" (assoc-ref %build-inputs "python-numpy") "/lib/python" #$python-version "/site-packages/numpy/core/include/") (string-append "-DPYTHON_NUMPY_PATH=" (assoc-ref %build-inputs "python-numpy") "/lib/python" #$python-version "/site-packages/"))) #:phases #~(modify-phases %standard-phases (add-after 'install 'wrap-bin (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (python-path (getenv "GUIX_PYTHONPATH"))) (wrap-program (string-append out "/bin/blender") `("GUIX_PYTHONPATH" ":" prefix (,python-path))))))))) (inputs (list bash-minimal boost bullet eigen embree ffmpeg-5 fftw freetype-with-brotli glew glog gmp ;needed for boolean operations on meshes imath jack-1 jemalloc libepoxy libjpeg-turbo libpng libsndfile libtiff libx11 libxi libxrender lzo openal opencolorio openexr openimageio openjpeg opensubdiv openvdb pugixml python python-numpy tbb zlib `(,zstd "lib"))) (home-page "https://www.blender.org/") (synopsis "3D graphics creation suite") (description "Blender is a 3D graphics creation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing and motion tracking, even video editing and game creation. The application can be customized via its API for Python scripting.") (license license:gpl2+))) (define-public goxel (package (name "goxel") (version "0.10.8") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/guillaumechereau/goxel") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0qvz566awhp03yp696fn3c80hnky41fpbi4sqg4lx69ibx4zvl9k")))) (build-system gnu-build-system) (arguments '(#:tests? #f #:phases (modify-phases %standard-phases (delete 'configure)) #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "release"))) (native-inputs (list pkg-config)) (inputs `(("gtk3" ,gtk+) ("glfw" ,glfw) ("scons" ,scons))) (home-page "https://goxel.xyz/") (synopsis "Voxel editor") (description "Goxel is a voxel editor that features unlimited scene size, unlimited history buffer, 24-bit RGB colors, layers, procedural rendering, ray tracing, and export to various formats including the format used by Magicavoxel.") (license license:gpl3+))) (define-public assimp (package (name "assimp") (version "5.4.3") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/assimp/assimp") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "097fxq0frb2nl6bp8wz7kjx6vq4i4117wwq9fnxzkiij9xwv3cq9")))) (build-system cmake-build-system) (inputs (list zlib)) (home-page "https://www.assimp.org/") (synopsis "Asset import library") (description "The Open Asset Import Library loads more than 40 3D file formats into one unified data structure. Additionally, assimp features various mesh post processing tools: normals and tangent space generation, triangulation, vertex cache locality optimization, removal of degenerate primitives and duplicate vertices, sorting by primitive type, merging of redundant materials and many more.") (license license:bsd-3))) (define-public mikktspace ;; The latest commit is used as there is no release. (let ((commit "3e895b49d05ea07e4c2133156cfa94369e19e409") (revision "0")) (package (name "mikktspace") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/mmikk/MikkTSpace") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "1rjh9zflx51hdhnfadal87v4hhkrbprkv692hjkg9wkxx0ch39zi")))) (build-system gnu-build-system) (arguments (list #:tests? #f #:phases #~(modify-phases %standard-phases (delete 'configure) (replace 'build (lambda* (#:key make-flags parallel-build? #:allow-other-keys) (invoke #$(cc-for-target) "mikktspace.c" "-O2" "-g" "-fPIC" "-shared" "-o" "libmikktspace.so"))) (replace 'install (lambda _ (install-file "mikktspace.h" (string-append #$output "/include")) (install-file "libmikktspace.so" (string-append #$output "/lib"))))))) (home-page "http://www.mikktspace.com/") (synopsis "Library for a common standard for tangent spaces") (description "This package provides a common standard tangent space library used in baking tools to produce normal maps.") (license license:zlib)))) (define-public openshadinglanguage (package (name "openshadinglanguage") (version "1.13.10.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/AcademySoftwareFoundation/OpenShadingLanguage") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1x97w4infifw33r4ii53q3v1ia0p21lbacd7z01vsz4vq7sy0dxn")))) (build-system cmake-build-system) (arguments (list #:configure-flags #~(list "-DUSE_PARTIO=OFF" ; TODO: not packaged (string-append "-DLLVM_BC_GENERATOR=" #$(this-package-native-input "clang") "/bin/clang++")) #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "ctest" "--exclude-regex" (string-join (list "osl-imageio" ; file does not exist "osl-imageio.opt" ; file does not exist "osl-imageio.opt.rs_bitcode" ; file does not exist "texture-udim" ; file does not exist "texture-udim.opt" ; file does not exist "texture-udim.opt.rs_bitcode" ; file does not exist "example-deformer" ; could not find OSLConfig "python-oslquery") ; no module oslquery "|")))))))) (native-inputs (list bison clang flex llvm pybind11 python-wrapper)) (inputs (list boost imath openexr openimageio pugixml qtbase zlib)) (home-page "https://github.com/AcademySoftwareFoundation/OpenShadingLanguage") (synopsis "Shading language for production GI renderers") (description "Open Shading Language (OSL) is a language for programmable shading in advanced renderers and other applications, ideal for describing materials, lights, displacement, and pattern generation.") (license license:bsd-3))) (define-public cgal (package (name "cgal") (version "5.6.1") (source (origin (method url-fetch) (uri (string-append "https://github.com/CGAL/cgal/releases/download/v" version "/CGAL-" version ".tar.xz")) (sha256 (base32 "0dsqvnyd2ic50pr28gfz34bpnyx3i2csf1rikmc661hywdz5xcfd")))) (build-system cmake-build-system) (arguments `(#:configure-flags ;; Prevent two mostly-duplicate directories. Use Guix's versioned ;; default for licences instead of CGAL's unversioned one. (list (string-append "-DCGAL_INSTALL_DOC_DIR=share/doc/" ,name "-" ,version)) #:tests? #f)) ; no test target (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.") ;; The 'LICENSE' file explains that a subset is available under more ;; permissive licenses. (license license:gpl3+))) (define-public imath (package (name "imath") (version "3.1.3") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/AcademySoftwareFoundation/Imath") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1nyld18mf220ghm1vidnfnn0rdns9z5i4l9s66xgd0kfdgarb31f")))) (build-system cmake-build-system) (arguments ;; XXX: On i686-linux, tests fail due to rounding issues (excess ;; precision), as was discussed and patched long ago: ;; <https://issues.guix.gnu.org/22049>. It seems the relevant fixes ;; didn't make it upstream, so skip tests. (list #:tests? (not (or (target-x86-32?) (%current-target-system))))) (home-page "https://github.com/AcademySoftwareFoundation/Imath") (synopsis "Library of math operations for computer graphics") (description "Imath is a C++ representation of 2D and 3D vectors and matrices and other mathematical objects, functions, and data types common in computer graphics applications, including the \"half\" 16-bit floating-point type.") (license license:bsd-3))) (define-public ilmbase (package (name "ilmbase") (version "2.5.7") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/openexr/openexr") (commit (string-append "v" version)))) (file-name (git-file-name "ilmbase" version)) (sha256 (base32 "1vja0rbilcd1wn184w8nbcmck00n7bfwlddwiaxw8dhj64nx4468")) (patches (search-patches "ilmbase-fix-tests.patch")))) (build-system cmake-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'change-directory (lambda _ (chdir "IlmBase") #t)) #$@(if (target-x86-32?) #~((add-after 'change-directory 'skip-test (lambda _ ;; XXX: This test fails on i686, ;; possibly due to excess precision when ;; comparing floats. Skip it. (substitute* "ImathTest/testFun.cpp" (("assert \\(bit_cast<unsigned>.*" all) (string-append "// " all "\n")))))) #~())))) (home-page "https://www.openexr.com/") (synopsis "Utility C++ libraries for threads, maths, and exceptions") (description "IlmBase provides several utility libraries for C++. Half is a class that encapsulates ILM's 16-bit floating-point format. IlmThread is a thread abstraction. Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions and other useful 2D and 3D math functions. Iex is an exception-handling library.") (license license:bsd-3))) (define-public lib2geom (package (name "lib2geom") (version "1.3") (source (origin (method git-fetch) (uri (git-reference (url "https://gitlab.com/inkscape/lib2geom") (commit version))) (file-name (git-file-name "lib2geom" version)) (sha256 (base32 "1ypcn0yxk9ny7qg8s8h3px2wpimhfgkwk7x1548ky12iqmdjjmcn")))) (build-system cmake-build-system) (arguments (list #:imported-modules `((guix build python-build-system) ,@%cmake-build-system-modules) #:modules '((guix build cmake-build-system) (guix build utils) ((guix build python-build-system) #:prefix python:)) #:configure-flags #~(list "-D2GEOM_BUILD_SHARED=ON" "-D2GEOM_BOOST_PYTHON=ON" ;; Compiling the Cython bindings fail (see: ;; https://gitlab.com/inkscape/lib2geom/issues/21). "-D2GEOM_CYTHON_BINDINGS=OFF") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-python-lib-install-path (lambda* (#:key inputs outputs #:allow-other-keys) (substitute* '("src/cython/CMakeLists.txt" "src/py2geom/CMakeLists.txt") (("PYTHON_LIB_INSTALL \"[^\"]*\"") (format #f "PYTHON_LIB_INSTALL ~s" (python:site-packages inputs outputs)))))) #$@(cond ((target-x86-32?) #~((add-after 'unpack 'skip-faulty-test (lambda _ (substitute* "tests/CMakeLists.txt" ;; This test fails on i686 when comparing floating point ;; values, probably due to excess precision. However, ;; '-fexcess-precision' is not implemented for C++ in ;; GCC 10 so just skip it. (("bezier-test") "") ;; https://gitlab.com/inkscape/lib2geom/-/issues/68 (("ellipse-test") "") ;; XXX: Additional unresolved test failures. (("elliptical-arc-test") "") (("self-intersections-test") "")))))) ;; See https://gitlab.com/inkscape/lib2geom/-/issues/63 ((or (target-aarch64?) (target-riscv64?) (target-ppc64le?)) #~((add-after 'unpack 'fix-aarch64-faulty-test (lambda _ (substitute* "tests/CMakeLists.txt" (("elliptical-arc-test") "")))))) (else #~()))))) (native-inputs (list python-wrapper googletest pkg-config)) (inputs (list cairo python-pycairo double-conversion glib gsl)) (propagated-inputs (list boost)) ;included in 2geom/pathvector.h (home-page "https://gitlab.com/inkscape/lib2geom/") (synopsis "C++ 2D graphics library") (description "2geom is a C++ library of mathematics for paths, curves, and other geometric calculations. Designed for vector graphics, it tackles Bézier curves, conic sections, paths, intersections, transformations, and basic geometries.") ;; Because the library is linked with the GNU Scientific Library ;; (GPLv3+), the combined work must be licensed as GPLv3+ (see: ;; https://gitlab.com/inkscape/inkscape/issues/784). (license license:gpl3+))) (define-public python-booleanoperations (package (name "python-booleanoperations") (version "0.9.0") (source (origin (method url-fetch) (uri (pypi-uri "booleanOperations" version ".zip")) (sha256 (base32 "1f41lb19m8azchl1aqz6j5ycbspb8jsf1cnn42hlydxd68f85ylc")))) (build-system python-build-system) (propagated-inputs (list python-fonttools-minimal python-pyclipper)) (native-inputs (list python-defcon-bootstrap python-fontpens-bootstrap python-setuptools-scm python-pytest python-wheel unzip)) (home-page "https://github.com/typemytype/booleanOperations") (synopsis "Boolean operations on paths") (description "Boolean operations on paths which uses a super fast @url{http://www.angusj.com/delphi/clipper.php, polygon clipper library by Angus Johnson}.") (license license:expat))) (define-public pstoedit (package (name "pstoedit") ;; Do not yet upgrade to 4.0.0, as its include file fails to compile for C ;; project (see: https://github.com/reviczky/pstoedit/issues/2). (version "4.00") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/pstoedit/pstoedit/" version "/pstoedit-" version ".tar.gz")) (sha256 (base32 "1sk2mhrjgnlz4a1650p3qxrv6av6qc66ibmy48ckspx7mfp7snh7")) (patches (search-patches "pstoedit-fix-gcc12.patch" "pstoedit-fix-plainC.patch" "pstoedit-pkglibdir.patch")))) (build-system gnu-build-system) (arguments ;; Avoid keeping extraneous references to libtool exhaustively listed ;; dependencies. (list #:configure-flags #~(list "LDFLAGS=-Wl,--as-needed"))) (native-inputs (list pkg-config)) (inputs (list ghostscript imagemagick plotutils libjpeg-turbo libzip ;; The following inputs are pulled in by libtool, from the ;; imagemagick library files (.la), which records all its ;; transitive dependencies. glib pango)) (home-page "http://www.pstoedit.net/") (synopsis "Converter for PostScript and PDF graphics") (description "The @code{pstoedit} utility allows translating graphics in the PostScript or PDF (Portable Document Format) formats to various other vector formats such as: @itemize @item Tgif (.obj) @item gnuplot @item xfig (.fig) @item Flattened PostScript @item DXF, a CAD (Computed-Aided Design) exchange format @item PIC (for troff/groff) @item MetaPost (for usage with TeX/LaTeX) @item LaTeX2e picture @item GNU Metafile (for use with plotutils/libplot) @item Any format supported by ImageMagick @end itemize") (license license:gpl2+))) (define-public alembic (package (name "alembic") (version "1.8.4") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/alembic/alembic") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "04cvzr87zqx55si4j3dqiidbmfx92ja3mc1dj0v6ddvl0cwj3m7i")))) (build-system cmake-build-system) (arguments `(#:configure-flags (list "-DUSE_HDF5=ON"))) (inputs (list hdf5 imath zlib)) (home-page "https://www.alembic.io/") (synopsis "Framework for storing and sharing scene data") (description "Alembic is a computer graphics interchange framework. It distills complex, animated scenes into a set of baked geometric results.") (license license:bsd-3))) (define-public mangohud (package (name "mangohud") (version "0.7.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/flightlessmango/MangoHud/") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1m4a2dqzqdhk9w1gvzppid7k0fxvplh5hmivvj9sda529s1g24rc")))) (build-system meson-build-system) (arguments (list #:build-type "release" #:configure-flags #~(list "-Duse_system_spdlog=enabled" "-Dwith_xnvctrl=disabled" "-Dappend_libdir_mangohud=false") #:phases #~(modify-phases %standard-phases ;; MangoHud tries to build the imgui library as a meson submodule, ;; so we change the dependency to the imgui input instead. (add-after 'unpack 'unbundle-imgui (lambda _ (substitute* "meson.build" (("dearimgui_sp = .*") "") (("dearimgui_sp.get_variable\\('imgui_dep'\\)") (string-append "declare_dependency(dependencies: " "cpp.find_library('imgui'), include_directories: '" #$(this-package-input "imgui") "/include/imgui')"))))) ;; Likewise, MangoHud bundles a Vulkan headers submodule to use a ;; specific version, which we provide as an input and adjust the ;; build accordingly. (add-after 'unbundle-imgui 'unbundle-vulkan-headers (lambda* (#:key inputs #:allow-other-keys) (substitute* "meson.build" (("vkh_sp = .*") "") (("vkh_sp.get_variable\\('vulkan_api_xml'\\)") (string-append "files('" (search-input-file inputs "registry/vk.xml") "')")) (("dep_vulkan = .*") "")) (substitute* "src/meson.build" (("dep_vulkan,") "")))) (add-after 'unpack 'patch-paths (lambda* (#:key inputs #:allow-other-keys) (substitute* "src/meson.build" (("\\\\\\$LIB") "lib")) (substitute* "src/overlay.cpp" (("glxinfo") (search-input-file inputs "bin/glxinfo"))) (substitute* "src/loaders/loader_x11.cpp" (("libX11.so.6") (search-input-file inputs "lib/libX11.so.6"))) (substitute* "src/pci_ids.cpp" (("/usr/share/hwdata/pci.ids") (search-input-file inputs "share/hwdata/pci.ids"))) (substitute* "src/dbus.cpp" (("libdbus-1.so.3") (search-input-file inputs "lib/libdbus-1.so.3")))))))) (inputs (list dbus glslang hwdata imgui-1.86 libx11 mesa mesa-utils nlohmann-json python-mako spdlog (origin (method git-fetch) (uri (git-reference (url "https://github.com/KhronosGroup/Vulkan-Headers") (commit "v1.2.158"))) (file-name (git-file-name "vulkan" "v1.2.158")) (sha256 (base32 "0jvaqj87792yccpr290djb18pqaisspq9dw6bqim6mrhfgda9v76"))) vulkan-loader)) (native-inputs (list git-minimal/pinned pkg-config python)) (home-page "https://github.com/flightlessmango/MangoHud/") (synopsis "Vulkan and OpenGL overlay for monitoring performance and hardware") (description "MangoHud is a Vulkan and OpenGL overlay for monitoring frames per second (FPS), temperatures, CPU/GPU load and more.") (license license:expat))) (define-public ogre (package (name "ogre") (version "14.3.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/OGRECave/ogre") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0acpwj0kj48jn2vv195cn6951gynz68zwji5sj3m06dj8ciw9r1h")))) (build-system cmake-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'do-not-attempt-building-gtest (lambda _ (substitute* "Tests/CMakeLists.txt" (("NOT EXISTS \\$\\{PROJECT_BINARY_DIR}/googletest-1.11.0") "FALSE")))) (add-before 'configure 'unpack-imgui (lambda _ (copy-recursively #$(this-package-native-input "imgui-source") "../imgui-source"))) (add-before 'configure 'pre-configure ;; CMakeLists.txt forces a CMAKE_INSTALL_RPATH value. As ;; a consequence, we cannot suggest ours in configure flags. Fix ;; it. (lambda _ (substitute* "CMakeLists.txt" (("set\\(CMAKE_INSTALL_RPATH .*") "")))) (add-before 'check 'run-x-server (lambda _ (system "Xvfb &") (setenv "DISPLAY" ":0")))) #:configure-flags #~(let ((runpath (string-join (list (string-append #$output "/lib") (string-append #$output "/lib/OGRE")) ";"))) (list (string-append "-DCMAKE_INSTALL_RPATH=" runpath) "-DIMGUI_DIR=../imgui-source" "-DOGRE_BUILD_DEPENDENCIES=OFF" "-DOGRE_BUILD_RENDERSYSTEM_VULKAN=ON" "-DOGRE_BUILD_TESTS=TRUE" "-DOGRE_INSTALL_DOCS=TRUE" "-DOGRE_INSTALL_SAMPLES=TRUE" "-DOGRE_INSTALL_SAMPLES_SOURCE=TRUE")))) (native-inputs `(("doxygen" ,doxygen) ("imgui-source" ,(package-source imgui)) ("googletest" ,googletest) ("pkg-config" ,pkg-config) ("python" ,python) ("vulkan-headers" ,vulkan-headers) ("xorg-server-for-tests" ,xorg-server-for-tests))) (inputs (list bullet freeimage freetype glslang libxaw libxrandr libxt mesa pugixml sdl2 spirv-tools wayland zlib)) (synopsis "Scene-oriented, flexible 3D engine written in C++") (description "OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilising hardware-accelerated 3D graphics.") (home-page "https://www.ogre3d.org/") (license license:expat))) (define-public ogre-next (package (inherit ogre) (name "ogre-next") (version "3.0.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/OGRECave/ogre-next") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1yrlg3s654xbp95208h9a2b8jcwdk69r6sjvll0aiyvxm4c056cw")))) (arguments (substitute-keyword-arguments (package-arguments ogre) ((#:tests? _ #f) ;; The test suite is currently disabled by the build system ;; (see: https://github.com/OGRECave/ogre-next/issues/466). #f))) (inputs (modify-inputs (package-inputs ogre) (append rapidjson))))) (define-public openexr (package (name "openexr") (version "3.2.4") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/AcademySoftwareFoundation/openexr") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "00s1a05kggk71vfbnsvykyjc2j7y6yyzgl63sy4yiddshz2k2mcr")))) (build-system cmake-build-system) (arguments (list #:configure-flags #~(list #$@(match (%current-system) ;; A test explicitly checks for SSE2 (would fail on ;; i686-linux), so make sure it is enabled for both C ;; and CPP. ((or "x86_64-linux" "i686-linux") '("-DCMAKE_CXX_FLAGS=-mfpmath=sse -msse2" "-DCMAKE_C_FLAGS=-mfpmath=sse -msse2")) (_ '()))) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-test-directory (lambda _ (substitute* (list "src/test/OpenEXRTest/tmpDir.h" "src/test/OpenEXRCoreTest/main.cpp") (("/var/tmp") "/tmp")))) #$@(if (target-64bit?) #~() #~((add-after 'patch-test-directory 'disable-broken-tests (lambda _ ;; Disable tests that fail at least on i686-linux. (substitute* '("src/test/OpenEXRCoreTest/main.cpp" "src/test/OpenEXRTest/main.cpp") (("TEST \\(testCompression, \"basic\"\\);") "") (("TEST\\( testNoCompression, \"core_compression\" \\);") "") (("TEST\\( testRLECompression, \"core_compression\" \\);") "") (("TEST\\( testZIPCompression, \"core_compression\" \\);") "") (("TEST\\( testZIPSCompression, \"core_compression\" \\);") "") (("TEST\\( testB44Compression, \"core_compression\" \\);") "") (("TEST\\( testB44ACompression, \"core_compression\" \\);") "") (("TEST \\(testOptimizedInterleavePatterns, \"basic\"\\);") ""))))))))) (inputs (list imath)) (propagated-inputs ;; Marked as Requires.private in OpenEXR.pc. (list libdeflate)) (home-page "https://www.openexr.com/") (synopsis "High-dynamic-range file format library") (description "OpenEXR provides the specification and reference implementation of the EXR file format. The purpose of EXR format is to accurately and efficiently represent high-dynamic-range scene-linear image data and associated metadata, with strong support for multi-part, multi-channel use cases.") (license license:bsd-3))) (define-public openexr-2 (package (name "openexr") (version (package-version ilmbase)) (source (origin (inherit (package-source ilmbase)) (file-name (git-file-name "openexr" version)))) (build-system cmake-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'change-directory (lambda _ (chdir "OpenEXR") #t)) (add-after 'change-directory 'patch-test-directory (lambda _ (substitute* '("IlmImfFuzzTest/tmpDir.h" "IlmImfTest/tmpDir.h" "IlmImfUtilTest/tmpDir.h") (("/var/tmp") "/tmp")))) (add-after 'change-directory 'increase-test-timeout (lambda _ ;; On some architectures, we need to override the CTest default ;; timeout of 1500 seconds for the OpenEXR.IlmImf test. (substitute* "IlmImfTest/CMakeLists.txt" (("add_test\\(NAME OpenEXR\\.IlmImf.*" all) (string-append all "set_tests_properties(OpenEXR.IlmImf PROPERTIES TIMEOUT 15000)"))) #t)) ,@(if (not (target-64bit?)) `((add-after 'change-directory 'disable-broken-test (lambda _ (substitute* "IlmImfTest/main.cpp" ;; This test fails on i686. Upstream developers suggest ;; that this test is broken on i686 and can be safely ;; disabled: ;; https://github.com/openexr/openexr/issues/67#issuecomment-21169748 ((".*testOptimizedInterleavePatterns.*") "") ;; This one fails similarly on i686. ((".*testCompression.*") ""))))) '())))) (native-inputs (list pkg-config)) (propagated-inputs (list ilmbase ;used in public headers zlib)) ;OpenEXR.pc reads "-lz" (home-page (package-home-page openexr)) (synopsis (package-synopsis openexr)) (description (package-description openexr)) (license (package-license openexr)))) (define-public openimageio (package (name "openimageio") (version "2.5.13.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/AcademySoftwareFoundation/OpenImageIO") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0bqalfcfjjk31a7zv2hyx0jz8jpdhpsmc3sqwmfl4zf431g45hpb")))) (build-system cmake-build-system) (arguments (list #:tests? #f ; half the tests require online data or use redirection #:configure-flags #~(list "-DUSE_EXTERNAL_PUGIXML=1" "-DOIIO_BUILD_TESTS=false") #:phases #~(modify-phases %standard-phases ; Work around a CMake Zlib-detection bug: ; https://issues.guix.gnu.org/72046 ; https://gitlab.kitware.com/cmake/cmake/-/issues/25200 (add-after 'configure 'fix-zlib-version (lambda _ (substitute* "include/imageio_pvt.h" (("#define ZLIB_VERSION \"1\\.3\"") "")))) (add-after 'install 'fix-OpenImageIOConfig (lambda _ (substitute* (string-append #$output "/lib/cmake/OpenImageIO/OpenImageIOConfig.cmake") (("#define ZLIB_VERSION \"1\\.3\"") ""))))))) (native-inputs (list pkg-config)) (inputs (list boost dcmtk fmt freetype giflib imath libglvnd libheif libjpeg-turbo libpng libraw libtiff libwebp opencolorio openexr openjpeg ;; openvdb ; OpenVDB needs OIIO to be built with C++17 or higher pugixml pybind11 python-wrapper robin-map zlib)) (synopsis "C++ library for reading and writing images") (description "OpenImageIO is a library for reading and writing images, and a bunch of related classes, utilities, and applications. There is a particular emphasis on formats and functionality used in professional, large-scale animation and visual effects work for film.") (home-page "https://github.com/AcademySoftwareFoundation/OpenImageIO") (license license:bsd-3))) (define-public openscenegraph (package (name "openscenegraph") (version "3.6.5") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/openscenegraph/OpenSceneGraph") (commit (string-append "OpenSceneGraph-" version)))) (sha256 (base32 "00i14h82qg3xzcyd8p02wrarnmby3aiwmz0z43l50byc9f8i05n1")) (file-name (git-file-name name version)))) (properties `((upstream-name . "OpenSceneGraph") (output-synopsis "pluginlib" "Plugins as shared libraries"))) (build-system cmake-build-system) (outputs (list "out" "pluginlib")) (arguments (list #:tests? #f ; no test target available ;; Without this flag, 'rd' will be added to the name of the ;; library binaries and break linking with other programs. #:build-type "Release" #:configure-flags #~(list (string-append "-DCMAKE_INSTALL_RPATH=" #$output "/lib:" #$output "/lib64")) #:modules `((guix build cmake-build-system) (guix build utils) (ice-9 regex)) #:phases #~(modify-phases %standard-phases (add-after 'install 'copy-plugins (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (pluginlib (assoc-ref outputs "pluginlib"))) (mkdir-p (string-append pluginlib "/lib/pkgconfig")) (with-directory-excursion (string-append out "/lib/osgPlugins-" #$version) (for-each (lambda (lib) (let ((blib (basename lib)) (m (string-match "([^/]*)\\.so$" lib))) (symlink (canonicalize-path lib) (string-append pluginlib "/lib/lib" blib)) (call-with-output-file (string-append pluginlib "/lib/pkgconfig/" (match:substring m 1) ".pc") (lambda (port) (format port "libdir=~a/lib~%" pluginlib) (newline port) (format port "Name: ~a~%" (match:substring m 1)) (format port "Version: ~a~%" #$version) (display "Description: A plugin for openscenegraph\n" port) (display "Requires: openscenegraph\n" port) (format port "Libs: -L${libdir} -l~a~%" (match:substring m 1)))))) (find-files "." "\\.so"))))))))) (native-inputs (list pkg-config unzip)) (inputs `(("giflib" ,giflib) ("libjpeg" ,libjpeg-turbo) ; required for the JPEG texture plugin. ("jasper" ,jasper) ("librsvg" ,(librsvg-for-system)) ("libxrandr" ,libxrandr) ("ffmpeg" ,ffmpeg-4) ("mesa" ,mesa))) (synopsis "High-performance real-time graphics toolkit") (description "The OpenSceneGraph is a high-performance 3D graphics toolkit used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modeling.") (home-page "http://www.openscenegraph.org") ;; The 'LICENSE' file explains that the source is licensed under ;; LGPL 2.1, but with 4 exceptions. This version is called OSGPL. (license license:lgpl2.1))) (define-public gr-framework (package (name "gr-framework") (version "0.69.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/sciapp/gr") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0kllbj4bj3f5w4wzg29ilac66fd0bslqq5srj845ssmzp4ynqglh")) (modules '((guix build utils))) (snippet '(begin (delete-file-recursively "3rdparty"))))) (build-system cmake-build-system) (arguments `(#:tests? #f)) ; no test target (inputs `(("bzip2" ,bzip2) ("cairo" ,cairo) ("fontconfig" ,fontconfig) ("ffmpeg" ,ffmpeg) ("freetype" ,freetype) ("ghostscript" ,ghostscript) ("glfw" ,glfw) ("libjpeg-turbo" ,libjpeg-turbo) ("libpng" ,libpng) ("libtiff" ,libtiff) ("libx11" ,libx11) ("libxft" ,libxft) ("libxt" ,libxt) ("pixman" ,pixman) ("qtbase" ,qtbase-5) ("qhull" ,qhull) ("zlib" ,zlib))) (home-page "https://gr-framework.org/") (synopsis "Graphics library for visualisation applications") (description "GR is a universal framework for cross-platform visualization applications. It offers developers a compact, portable and consistent graphics library for their programs. Applications range from publication quality 2D graphs to the representation of complex 3D scenes. GR is essentially based on an implementation of a @acronym{GKS, Graphical Kernel System}. As a self-contained system it can quickly and easily be integrated into existing applications (i.e. using the @code{ctypes} mechanism in Python or @code{ccall} in Julia).") (license license:expat))) (define-public openmw-openscenegraph ;; OpenMW prefers its own fork of openscenegraph: ;; https://wiki.openmw.org/index.php?title=Development_Environment_Setup#OpenSceneGraph. (let ((commit "68c5c573d47766507bfb191e0c8d213b1997ad20")) (hidden-package (package (inherit openscenegraph) (version (git-version "3.6" "3" commit)) (outputs (list "out")) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/OpenMW/osg/") (commit commit))) (file-name (git-file-name (package-name openscenegraph) version)) (sha256 (base32 "12xgdmymjh4rb7djzniy15lvi45y0x4i0l5swf031r8g4zn72v2n")))) (arguments (substitute-keyword-arguments (package-arguments openscenegraph) ((#:configure-flags flags) ;; As per the above wiki link, the following plugins are enough: #~(append '("-DBUILD_OSG_PLUGINS_BY_DEFAULT=0" "-DBUILD_OSG_PLUGIN_OSG=1" "-DBUILD_OSG_PLUGIN_DAE=1" "-DBUILD_OSG_PLUGIN_DDS=1" "-DBUILD_OSG_PLUGIN_TGA=1" "-DBUILD_OSG_PLUGIN_BMP=1" "-DBUILD_OSG_PLUGIN_JPEG=1" "-DBUILD_OSG_PLUGIN_PNG=1" "-DBUILD_OSG_PLUGIN_FREETYPE=1" "-DBUILD_OSG_DEPRECATED_SERIALIZERS=0") #$flags)) ((#:phases phases) #~(modify-phases #$phases (delete 'copy-plugins))))))))) (define-public povray (package (name "povray") (version "3.7.0.10") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/POV-Ray/povray") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "19bv962clwc6sk53kq8bqf77fh0v46afm2knjbki8yj0m1mnyyd0")) (modules '((guix build utils))) (snippet ;; Delete bundled libraries. '(delete-file-recursively "libraries")))) (build-system gnu-build-system) (native-inputs (list autoconf automake pkg-config)) (inputs (list boost libjpeg-turbo libpng libtiff openexr-2 sdl zlib)) (arguments (list #:configure-flags #~(list "COMPILED_BY=Guix" (string-append "--with-boost-libdir=" #$(this-package-input "boost") "/lib") "--disable-optimiz-arch") #:phases '(modify-phases %standard-phases (add-after 'unpack 'run-prebuild (lambda _ (setenv "HOME" (getcwd))