gnu: freegish: Update to 0-3.caf58a2f9.

* gnu/packages/games.scm (freegish): Update to 0-3.caf58a2f9.
[inputs]: Replace sdl-union with sdl2.  Remove zlib.
[arguments]: Adjust configure-flags, remove unneeded phases.

Change-Id: I43883bd3de985dc337e244a810214ea5ae6aabd1
This commit is contained in:
宋文武 2024-03-10 16:29:36 +08:00
parent f119408f2f
commit 473cdecd89
No known key found for this signature in database
GPG key ID: D415BF253B515976

View file

@ -6731,8 +6731,8 @@ (define-public megaglest
(license license:gpl2+))) (license license:gpl2+)))
(define-public freegish (define-public freegish
(let ((commit "21977ee5fc2008231b35160df00efe954c508b16") (let ((commit "caf58a2f990a939230bab82226e29cd79732f366")
(revision "2")) (revision "3"))
(package (package
(name "freegish") (name "freegish")
(version (string-append "0-" revision "." (string-take commit 9))) (version (string-append "0-" revision "." (string-take commit 9)))
@ -6744,7 +6744,7 @@ (define-public freegish
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1qh0gcnbyxyzmb13jifwba4xrzj94m4w9whdvl0gnds6ricmwply")) "0980ad8xg0bzm6507bq9sbgw03i7jj33g0f955g0q8jvpb22r65v"))
(modules '((guix build utils))) (modules '((guix build utils)))
;; The audio files in the "music" directory are licensed under ;; The audio files in the "music" directory are licensed under
;; CC-BY-NC, so we delete them. ;; CC-BY-NC, so we delete them.
@ -6756,25 +6756,14 @@ (define-public freegish
(arguments (arguments
`(#:tests? #f ; no tests included `(#:tests? #f ; no tests included
#:configure-flags #:configure-flags
(list "-DCMAKE_INSTALL_FHS=ON") (list "-DINSTALL_FHS=ON")))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'set-DATAPATH
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "CMakeLists.txt"
(("^option\\(INSTALL_FHS" line)
(string-append "add_definitions(-DDATAPATH=\""
(assoc-ref outputs "out") "/share/freegish\")\n"
line)))
#t)))))
(inputs (inputs
(list (sdl-union (list sdl sdl-mixer)) (list sdl2
openal openal
libvorbis libvorbis
libogg libogg
mesa mesa
libpng libpng))
zlib))
(home-page "https://github.com/freegish/freegish") (home-page "https://github.com/freegish/freegish")
(synopsis "Side-scrolling physics platformer with a ball of tar") (synopsis "Side-scrolling physics platformer with a ball of tar")
(description "In FreeGish you control Gish, a ball of tar who lives (description "In FreeGish you control Gish, a ball of tar who lives