From: ROCKTAKEY <rocktakey@gmail.com>
To: 75443@debbugs.gnu.org
Cc: ROCKTAKEY <rocktakey@gmail.com>, ROCKTAKEY <rocktakey@gmail.com>
Subject: [bug#75443] [PATCH 3/3] gnu: Add Siv3D.
Date: Thu, 9 Jan 2025 03:11:16 +0900 [thread overview]
Message-ID: <a63e59266d6616b65a64f7574589abf176306a18.1736357207.git.rocktakey@gmail.com> (raw)
In-Reply-To: <cb30af49420be6085f0d091952712ec8b38122a4.1736357207.git.rocktakey@gmail.com>
Change-Id: I4564e9d04e1f4a9d7d28c1e39a4acdab0d41d25b
---
gnu/packages/graphics.scm | 79 +++++++++++++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index c950b8a2ae..6b8c88b12e 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -38,6 +38,7 @@
;;; Copyright © 2023 Eric Bavier <bavier@posteo.net>
;;; Copyright © 2023, 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;; Copyright © 2024 Ivan Vilata-i-Balaguer <ivan@selidor.net>
+;;; Copyright © 2025 ROCKTAKEY <rocktakey@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -69,6 +70,7 @@ (define-module (gnu packages graphics)
#:use-module (gnu packages compression)
#:use-module (gnu packages cpp)
#:use-module (gnu packages crypto)
+ #:use-module (gnu packages curl)
#:use-module (gnu packages datastructures)
#:use-module (gnu packages documentation)
#:use-module (gnu packages flex)
@@ -3154,3 +3156,80 @@ (define-public gpaint
It features cut-and-paste for irregular regions or polygons.")
(home-page "https://www.gnu.org/software/gpaint/")
(license license:gpl3+)))
+
+(define-public siv3d
+ (package
+ (name "siv3d")
+ (version "0.6.15")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Siv3D/OpenSiv3D")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1wigbpijv6f58i1dinv2mnffgcxnm0nw85q6pgc1ywhz9kd4qspv"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'configure 'set-cwd
+ (lambda* (#:key inputs propagated-inputs outputs
+ #:allow-other-keys)
+ (chdir "Linux")
+ (format #t "input: ~a" inputs)
+ (format #t "propagated-input: ~a" propagated-inputs)))
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "../Linux/App"
+ (let ((configure-flags (list
+ "-DBUILD_TESTING:BOOL=ON"
+ (string-append
+ "-DSiv3D_DIR="
+ (assoc-ref outputs "out")
+ "/lib/cmake/Siv3D")))
+ (configure (assoc-ref %standard-phases
+ 'configure))
+ (build (assoc-ref %standard-phases
+ 'build))
+ (check (assoc-ref %standard-phases
+ 'check)))
+ ;; #:outputs is needed for -DCMAKE_INSTALL_PREFIX
+ (configure #:inputs inputs
+ #:outputs '(("out" . "/tmp"))
+ #:configure-flags configure-flags)
+ (build #:inputs inputs)
+ ;; Home directory is used to create cache.
+ (setenv "HOME" "/tmp")
+ (check)))))))))
+ (propagated-inputs (list alsa-lib
+ ;; Due to incompatibility with Boost.Geometry
+ boost-for-siv3d
+ curl
+ ffmpeg
+ gtk+
+ ;; Due to GifQuantizeBuffer
+ giflib-for-siv3d
+ glu
+ harfbuzz
+ mpg123
+ opencv
+ opus
+ opusfile
+ soundtouch
+ libtiff
+ libjpeg-turbo
+ libvorbis
+ libwebp
+ libxft
+ util-linux
+ xorg-server))
+ (native-inputs (list pkg-config))
+ (home-page "https://siv3d.github.io/")
+ (synopsis "C++20 framework for creative coding")
+ (description "Siv3D (OpenSiv3D) is a C++20 framework for creative coding
+(2D/3D games, media art, visualizers, and simulators).")
+ (license license:expat)))
--
2.47.1
prev parent reply other threads:[~2025-01-08 18:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-08 17:40 [bug#75441] [PATCH 1/3] gnu: Add boost-1.74.0 ROCKTAKEY
2025-01-08 17:56 ` Takeda Yuki
2025-01-08 18:07 ` [bug#75441] [PATCH 2/3] gnu: Add giflib-5.1.4 ROCKTAKEY
2025-01-08 18:14 ` bug#75441: [PATCH 1/3] gnu: Add boost-1.74.0 ROCKTAKEY
2025-01-08 18:11 ` ROCKTAKEY [this message]
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=a63e59266d6616b65a64f7574589abf176306a18.1736357207.git.rocktakey@gmail.com \
--to=rocktakey@gmail.com \
--cc=75443@debbugs.gnu.org \
/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).