From 4667217092ae9a058a5b370295c6b913671819a4 Mon Sep 17 00:00:00 2001 From: Leo Prikler Date: Sat, 3 Apr 2021 00:45:51 +0200 Subject: [PATCH] gnu: Add megazeux. * gnu/packages/game-development.scm (megazeux): New variable. --- 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 ea879568f5..f9b015be11 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -1496,6 +1496,61 @@ robust and compatible with many systems and operating systems.") (home-page "https://github.com/wgois/OIS") (license license:zlib))) +(define-public megazeux + (package + (name "megazeux") + (version "2.92f") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AliceLR/megazeux/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0rlw2ijx5gvk09gwpl7p8vnvff6mfw3c4nbiyvw0mccbjf1zfajn")) + (modules '((guix build utils))))) + (build-system gnu-build-system) + (outputs '("out" "debug")) + (arguments + `(#:test-target "test" + #:configure-flags + (list "--platform" "unix" + "--prefix" (assoc-ref %outputs "out") + "--sysconfdir" (string-append (assoc-ref %outputs "out") "/etc")) + #:make-flags + (list (string-append "CC=" ,(cc-for-target))) + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys) + (apply invoke "./config.sh" configure-flags))) + (add-before 'check 'setup-tests + (lambda _ + ;; Fake a terminal for the test cases. + (setenv "TERM" "xterm-256color") + ;; Also run an X server, because why not? + (setenv "DISPLAY" ":1") + (system "Xvfb :1 &") + #t)) + ))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("ncurses" ,ncurses) ; for tput + ("procps" ,procps) + ("xorg-server" ,xorg-server-for-tests))) + (inputs + `(("libpng" ,libpng) + ("libogg" ,libogg) + ("libvorbis" ,libvorbis) + ("sdl2" ,sdl2))) + (home-page "https://www.digitalmzx.com/") + (synopsis "Game Creation System") + (description "MegaZeux is a game creation system (GCS) created by game +developer Alexis Janson in 1994. Originally a DOS program, in 2005 a +multi-platform port was released by Exophase.") + (license license:gpl2+))) + (define-public mygui (package (name "mygui") -- 2.31.1