[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: gnu: Add scummc.
From: |
guix-commits |
Subject: |
06/07: gnu: Add scummc. |
Date: |
Sat, 2 Sep 2023 01:11:58 -0400 (EDT) |
lilyp pushed a commit to branch master
in repository guix.
commit 2dbe920dcb3ce2ffb3061e60936aaeb5f141c310
Author: AwesomeAdam54321 <adam.faiz@disroot.org>
AuthorDate: Sat Jul 22 15:34:55 2023 +0800
gnu: Add scummc.
* gnu/packages/game-development.scm (scummc): New variable.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
---
gnu/packages/game-development.scm | 55 +++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/gnu/packages/game-development.scm
b/gnu/packages/game-development.scm
index 5771b7530f..c25dadb39e 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -65,6 +65,7 @@
#: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 compression)
@@ -705,6 +706,60 @@ development of visual novels, written on top of
Guile-SDL2. It is still
experimental.")
(license license:lgpl3+)))
+(define-public scummc
+ (package
+ (name "scummc")
+ (version "0.2.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/AlbanBedel/scummc")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1yyq05kfmvgx5aa68kg1l5a4lpsky7hzxxcdvv2xbgf0jljdcl3k"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ (substitute* "configure"
+ (("\\|alpha" all)
+ (string-append all "|arm|aarch64|powerpc64le")))
+ (substitute* "examples/example.mak"
+ (("scost.*\n$") "scost\n")
+ (("bmp \\$\\(.*\n$") "bmp\n")
+ (("/%.scc.*\n$") "/%.scc\n")
+ (("voc \\$\\(.*\n$") "voc\n"))
+ (substitute* "Makefile.target"
+ (("distrib-data:.*\n") "distrib-data:\n")
+ (("cp.*/bin" all)
+ (string-append all " || true")))))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:test-target "test"
+ #:tests? #f ; The only tests verify that game checksums match
+ #:make-flags
+ #~(list "SHOW_WARNINGS=no")
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'configure ; ScummC uses a non-standard configure
+ (lambda* (#:key configure-flags #:allow-other-keys)
+ (apply invoke "./configure" configure-flags)))
+ (replace 'install ; install target is referred to as distrib
+ (lambda _
+ (invoke "make" "distrib"
+ (string-append "DISTRIB=" #$output)))))))
+ (inputs
+ (list freetype gtk+-2 sdl))
+ (native-inputs
+ (list bison doxygen libxslt pkg-config))
+ (synopsis "SCUMM Compiler")
+ (description
+ "ScummC is a set of tools allowing to create SCUMM games from scratch.
+It is capable of creating games for SCUMM version 6 and partially version 7.")
+ (home-page "https://github.com/AlbanBedel/scummc")
+ (license license:gpl2+)))
+
(define-public sfml
(package
(name "sfml")
- branch master updated (c72bc0bb71 -> 9179775b05), guix-commits, 2023/09/02
- 01/07: gnu: Add go-github-com-flopp-go-findfont., guix-commits, 2023/09/02
- 05/07: gnu: font-openmoji: Update to 14.0.0-1.93f059d., guix-commits, 2023/09/02
- 02/07: gnu: Add go-github-com-phpdave11-gofpdi., guix-commits, 2023/09/02
- 03/07: gnu: Add go-github-com-signintech-gopdf., guix-commits, 2023/09/02
- 04/07: gnu: Add go-github-com-wraparound-wrap., guix-commits, 2023/09/02
- 06/07: gnu: Add scummc.,
guix-commits <=
- 07/07: gnu: Add openquest., guix-commits, 2023/09/02