unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 75032@debbugs.gnu.org
Cc: vicvbcun <guix@ikherbers.com>
Subject: [bug#75032] [PATCH 10/13] gnu: Add tachyon.
Date: Sun, 22 Dec 2024 17:26:54 +0000	[thread overview]
Message-ID: <00ea4f795d06bb82c31feec0d4ee8d31a606a287.1734887844.git.monego@posteo.net> (raw)
In-Reply-To: <cover.1734887844.git.monego@posteo.net>

From: vicvbcun <guix@ikherbers.com>

* gnu/packages/graphics.scm (tachyon): New variable.

Change-Id: I57780c08c6b496e40459789d693b9b24fb4a9da8
Co-authored by: Vinicius Monego <monego@posteo.net>

Change-Id: I5914afad8d293787b9898a229084e6c79fbe8911
---
 gnu/packages/graphics.scm | 59 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index f17511dc94..a0c22bfa35 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -789,6 +789,65 @@ (define-public openshadinglanguage
 materials, lights, displacement, and pattern generation.")
     (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
   (package
     (name "cgal")
-- 
2.39.5





  parent reply	other threads:[~2024-12-22 17:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-22 17:25 [bug#75032] [PATCH 00/13] Add more SageMath packages Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 01/13] gnu: Add sagemath-data-conway-polynomials Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 02/13] gnu: Add sagemath-data-polytopes-db Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 03/13] gnu: Add sagemath-data-graphs Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 04/13] gnu: Add sagemath-data-combinatorial-designs Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 05/13] gnu: Add python-pytz-deprecation-shim Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 06/13] gnu: Add python-lrcalc Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 07/13] gnu: Add sympow Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 08/13] gnu: Add gfan Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 09/13] gnu: Add palp Vinicius Monego
2024-12-22 17:26 ` Vinicius Monego [this message]
2024-12-22 17:26 ` [bug#75032] [PATCH 11/13] gnu: pari-gp: Use G-Expressions Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 12/13] gnu: pari-gp: Install galdata Vinicius Monego
2024-12-22 17:26 ` [bug#75032] [PATCH 13/13] gnu: Add python-sphinx-inline-tabs Vinicius Monego

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=00ea4f795d06bb82c31feec0d4ee8d31a606a287.1734887844.git.monego@posteo.net \
    --to=monego@posteo.net \
    --cc=75032@debbugs.gnu.org \
    --cc=guix@ikherbers.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).