mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add tachyon.
* gnu/packages/graphics.scm (tachyon): New variable. Change-Id: I57780c08c6b496e40459789d693b9b24fb4a9da8 Co-authored by: Vinicius Monego <monego@posteo.net> Change-Id: I5914afad8d293787b9898a229084e6c79fbe8911 Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
This commit is contained in:
parent
3edd17ea51
commit
806d23693a
1 changed files with 59 additions and 0 deletions
|
@ -789,6 +789,65 @@ shading in advanced renderers and other applications, ideal for describing
|
||||||
materials, lights, displacement, and pattern generation.")
|
materials, lights, displacement, and pattern generation.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
(define-public tachyon
|
||||||
|
(package
|
||||||
|
(name "tachyon")
|
||||||
|
(version "0.99.5")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append
|
||||||
|
"http://jedi.ks.uiuc.edu/~johns/raytracer/files/"
|
||||||
|
version "/tachyon-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1xd6h5d4v6dsnm6w46bdcr15fwkcz44p8dncymfry50i4c83q809"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:tests? #f ; no tests
|
||||||
|
#:make-flags #~(list "linux-thr")
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(add-after 'unpack 'prepare-src
|
||||||
|
(lambda _
|
||||||
|
(substitute* "unix/Make-arch"
|
||||||
|
(("CC = cc")
|
||||||
|
(string-append "CC = " #$(cc-for-target))))
|
||||||
|
(chdir "unix")))
|
||||||
|
(add-before 'build 'enable-png-jpeg-support
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* "Make-config"
|
||||||
|
(("USEJPEG=")
|
||||||
|
"USEJPEG = -DUSEJPEG")
|
||||||
|
(("JPEGLIB=")
|
||||||
|
"JPEGLIB = -ljpeg")
|
||||||
|
(("USEPNG=")
|
||||||
|
"USEPNG = -DUSEPNG")
|
||||||
|
(("PNGLIB=")
|
||||||
|
"PNGLIB = -lpng -lz"))))
|
||||||
|
(add-before 'build 'fix-paths
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* "Make-config"
|
||||||
|
(("SHELL=/bin/sh")
|
||||||
|
(string-append "SHELL=" (which "sh"))))))
|
||||||
|
(replace 'install
|
||||||
|
(lambda _
|
||||||
|
(install-file "../compile/linux-thr/tachyon"
|
||||||
|
(string-append #$output "/bin"))
|
||||||
|
(install-file "../compile/linux-thr/libtachyon.a"
|
||||||
|
(string-append #$output "/lib")))))))
|
||||||
|
(inputs (list libjpeg-turbo libpng))
|
||||||
|
;; The server does not seem to be reliably accessible
|
||||||
|
(home-page "http://jedi.ks.uiuc.edu/~johns/raytracer/")
|
||||||
|
(synopsis "Multithreaded ray tracing software")
|
||||||
|
(description
|
||||||
|
"This package contains the Tachyon raytracer. It supports the typical
|
||||||
|
ray tracer features, most of the common geometric primitives, shading and
|
||||||
|
texturing modes, etc. It also supports less common features such as HDR image
|
||||||
|
output, ambient occlusion lighting, and support for various triangle mesh and
|
||||||
|
volumetric texture formats beneficial for molecular visualization.")
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public cgal
|
(define-public cgal
|
||||||
(package
|
(package
|
||||||
(name "cgal")
|
(name "cgal")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue