* [bug#29825] [PATCH] gnu: Add yamagi-quake2.
@ 2017-12-23 19:27 nee
2017-12-23 21:23 ` bug#29825: " Danny Milosavljevic
0 siblings, 1 reply; 2+ messages in thread
From: nee @ 2017-12-23 19:27 UTC (permalink / raw)
To: 29825
[-- Attachment #1: Type: text/plain, Size: 189 bytes --]
It might be a little bit early for Christmas presents, but here is a
quake2 source port for everyone to enjoy ;-)
https://www.quaddicted.com/_media/quake/quake_is_for_everyone_german_.jpg
[-- Attachment #2: 0001-gnu-Add-yamagi-quake2.patch --]
[-- Type: text/x-patch, Size: 3613 bytes --]
From b0d86df750af617e77e5c8dc8b92da0fab7329cf Mon Sep 17 00:00:00 2001
From: nee <nee.git@cock.li>
Date: Sat, 23 Dec 2017 17:51:19 +0100
Subject: [PATCH] gnu: Add yamagi-quake2.
* gnu/packages/games.scm (yamagi-quake2): New variable.
---
gnu/packages/games.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 2b1bddb2f..717cedf5f 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -5235,3 +5235,63 @@ It includes support for 64 bit CPUs, custom music playback, a new sound driver,
some graphical niceities, and numerous bug-fixes and other improvements.")
(home-page "http://quakespasm.sourceforge.net/")
(license license:gpl2+)))
+
+(define-public yamagi-quake2
+ (package
+ (name "yamagi-quake2")
+ (version "7.10")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "0psinbg25mysd58k99s1n34w31w5hj1vppb39gdjb0zqi6sl6cps"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f
+ #:make-flags
+ (list "CC=gcc"
+ ;; link openAL instead of using dlopen at runtime
+ "DLOPEN_OPENAL=\"no\""
+ ;; an optional directory where it will look for quake2 data files
+ ;; in addition to the current working directory
+ "WITH_SYSTEMWIDE=yes"
+ "WITH_SYSTEMDIR=\"/opt/quake2\"")
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (mkdir-p (string-append out "/lib"))
+ (mkdir-p (string-append out "/bin"))
+ ;; The yamagi-quake2 binary must be in the same directory
+ ;; as it's engine libraries, but symlinking it to /bin is okay
+ ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
+ (copy-recursively "release"
+ (string-append out "/lib/yamagi-quake2"))
+ (symlink (string-append out "/lib/yamagi-quake2/quake2")
+ (string-append out "/bin/yamagi-quake2"))
+ (symlink (string-append out "/lib/yamagi-quake2/q2ded")
+ (string-append out "/bin/yamagi-q2ded"))))))))
+ (inputs `(("sdl2" ,sdl2)
+ ("mesa" ,mesa)
+ ("libvorbis" ,libvorbis)
+ ("zlib" ,zlib)
+ ("openal" ,openal)))
+ (native-inputs `(("pkg-config" ,pkg-config)))
+ (synopsis "First person shooter engine based on quake2")
+ (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
+The main focus is an unchanged single player experience like back in 1997,
+thus the gameplay and the graphics are unaltered. However the user may use one
+of the unofficial retexturing packs. In comparison with the official client,
+over 1000 bugs were fixed and an extensive code audit done,
+making Yamagi Quake II one of the most solid Quake II implementations available.")
+ (home-page "https://www.yamagi.org/quake2/")
+ (license (list license:gpl2+ ; game and server
+ (license:non-copyleft ; info-zip
+ "file://LICENSE"
+ "See Info-Zip section.")
+ license:public-domain)))) ; stb
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#29825: [PATCH] gnu: Add yamagi-quake2.
2017-12-23 19:27 [bug#29825] [PATCH] gnu: Add yamagi-quake2 nee
@ 2017-12-23 21:23 ` Danny Milosavljevic
0 siblings, 0 replies; 2+ messages in thread
From: Danny Milosavljevic @ 2017-12-23 21:23 UTC (permalink / raw)
To: nee; +Cc: 29825-done
Pushed yamagi-quake2 as 916bb9470a1689803ec8255b71bf6bde680e56ed to master.
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-23 21:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-23 19:27 [bug#29825] [PATCH] gnu: Add yamagi-quake2 nee
2017-12-23 21:23 ` bug#29825: " Danny Milosavljevic
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).