mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: sfml: Update to 3.0.1.
* gnu/packages/game-development.scm (sfml): Update to 3.0.1. [source]: Fetch from git. Refine snippet. [#:tests?]: New argument. [#:configure-flags]: Remove SFML_INSTALL_PKGCONFIG_FILES and SFML_OS_PKGCONFIG_DIR flags. Add BUILD_SHARED_LIBS and CMAKE_CXX_FLAGS flag. [native-inputs]: Add miniaudio and minimp3. [inputs]: Remove labels and sort. Add libxcursor, libxi and vulkan-headers. (sfml-2): New variable. (csfml): Update to 2.6.1. [inputs]: Replace sfml with sfml-2. * gnu/packages/emulators.scm (dolphin-emu) [inputs]: Replace sfml with sfml-2. * gnu/packages/games.scm (extremetuxracer, mars, schiffbruch) (marble-marcher): Likewise. Change-Id: Id61c4ba51798cfc28cc158a9d7fc6308ae4e6f41
This commit is contained in:
parent
f954f7680e
commit
5259f89b07
3 changed files with 79 additions and 46 deletions
|
@ -519,7 +519,7 @@ It aims to support Nintendo DSi and 3DS as well.")
|
||||||
pulseaudio
|
pulseaudio
|
||||||
qtbase-5
|
qtbase-5
|
||||||
sdl2
|
sdl2
|
||||||
sfml
|
sfml-2
|
||||||
soil
|
soil
|
||||||
soundtouch-1/integer-samples
|
soundtouch-1/integer-samples
|
||||||
vulkan-loader
|
vulkan-loader
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
;;; Copyright © 2023, 2024 John Kehayias <john.kehayias@protonmail.com>
|
;;; Copyright © 2023, 2024 John Kehayias <john.kehayias@protonmail.com>
|
||||||
;;; Copyright © 2022-2023, 2025 Adam Faiz <adam.faiz@disroot.org>
|
;;; Copyright © 2022-2023, 2025 Adam Faiz <adam.faiz@disroot.org>
|
||||||
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
|
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
|
||||||
;;; Copyright © 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2024-2025 Maxim Cournoyer <maxim@guixotic.coop>
|
||||||
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
|
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
|
||||||
;;; Copyright © 2025 宋文武 <iyzsong@envs.net>
|
;;; Copyright © 2025 宋文武 <iyzsong@envs.net>
|
||||||
;;; Copyright © 2025 Arnaud Lechevallier <arnaud.lechevallier@free.fr>
|
;;; Copyright © 2025 Arnaud Lechevallier <arnaud.lechevallier@free.fr>
|
||||||
|
@ -82,6 +82,7 @@
|
||||||
#:use-module (gnu packages build-tools)
|
#:use-module (gnu packages build-tools)
|
||||||
#:use-module (gnu packages c)
|
#:use-module (gnu packages c)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
|
#:use-module (gnu packages cpp)
|
||||||
#:use-module (gnu packages check)
|
#:use-module (gnu packages check)
|
||||||
#:use-module (gnu packages curl)
|
#:use-module (gnu packages curl)
|
||||||
#:use-module (gnu packages documentation)
|
#:use-module (gnu packages documentation)
|
||||||
|
@ -1072,8 +1073,9 @@ It is capable of creating games for SCUMM version 6 and partially version 7.")
|
||||||
(define-public sfml
|
(define-public sfml
|
||||||
(package
|
(package
|
||||||
(name "sfml")
|
(name "sfml")
|
||||||
(version "2.5.1")
|
(version "3.0.1")
|
||||||
(source (origin
|
(source
|
||||||
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
;; Do not fetch the archives from
|
;; Do not fetch the archives from
|
||||||
;; http://mirror0.sfml-dev.org/files/ because files there seem
|
;; http://mirror0.sfml-dev.org/files/ because files there seem
|
||||||
|
@ -1084,32 +1086,46 @@ It is capable of creating games for SCUMM version 6 and partially version 7.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0abr8ri2ssfy9ylpgjrr43m6rhrjy03wbj9bn509zqymifvq5pay"))
|
"12f1d45995qf5sazjmmfdydllcd6alhqs1s4xwv3jiq1fw66hcy9"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)
|
||||||
|
(ice-9 ftw)
|
||||||
|
(srfi srfi-26)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
;; Ensure system libraries are used.
|
;; XXX: 'delete-all-but' is copied from the turbovnc package.
|
||||||
(delete-file-recursively "extlibs")
|
(define (delete-all-but directory . preserve)
|
||||||
#t))))
|
(with-directory-excursion directory
|
||||||
|
(let* ((pred (negate (cut member <> (cons* "." ".." preserve))))
|
||||||
|
(items (scandir "." pred)))
|
||||||
|
(for-each (cut delete-file-recursively <>) items))))
|
||||||
|
(delete-all-but "extlibs/headers"
|
||||||
|
"glad"))))) ;pre-generated headers
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:configure-flags
|
(list #:tests? #f ;attempts to fetch catch2 from the internet
|
||||||
(list "-DSFML_INSTALL_PKGCONFIG_FILES=TRUE"
|
#:configure-flags
|
||||||
"-DSFML_OS_PKGCONFIG_DIR=lib/pkgconfig")
|
#~(list "-DBUILD_SHARED_LIBS=ON"
|
||||||
#:tests? #f)) ; no tests
|
(string-append "-DCMAKE_CXX_FLAGS=-I"
|
||||||
|
(search-input-directory %build-inputs
|
||||||
|
"include/vulkan")))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config))
|
(list miniaudio ;header-only library
|
||||||
|
minimp3 ;header-only library
|
||||||
|
pkg-config))
|
||||||
(inputs
|
(inputs
|
||||||
`(("mesa" ,mesa)
|
(list eudev
|
||||||
("glew" ,glew)
|
glew
|
||||||
("libx11" ,libx11)
|
libjpeg-turbo
|
||||||
("xcb-util-image" ,xcb-util-image)
|
libsndfile
|
||||||
("libxrandr" ,libxrandr)
|
libx11
|
||||||
("eudev" ,eudev)
|
libxcursor
|
||||||
("libjpeg" ,libjpeg-turbo)
|
libxi
|
||||||
("libsndfile" ,libsndfile)
|
libxrandr
|
||||||
("stb-image" ,stb-image)
|
mesa
|
||||||
("stb-image-write" ,stb-image-write)))
|
stb-image
|
||||||
|
stb-image-write
|
||||||
|
vulkan-headers
|
||||||
|
xcb-util-image))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
;; In Requires.private of pkg-config files.
|
;; In Requires.private of pkg-config files.
|
||||||
(list flac freetype libvorbis openal))
|
(list flac freetype libvorbis openal))
|
||||||
|
@ -1121,10 +1137,29 @@ to ease the development of games and multimedia applications. It is composed
|
||||||
of five modules: system, window, graphics, audio and network.")
|
of five modules: system, window, graphics, audio and network.")
|
||||||
(license license:zlib)))
|
(license license:zlib)))
|
||||||
|
|
||||||
|
(define-public sfml-2
|
||||||
|
(package
|
||||||
|
(inherit sfml)
|
||||||
|
(name "sfml")
|
||||||
|
(version "2.6.2")
|
||||||
|
(source (origin
|
||||||
|
(inherit (package-source sfml))
|
||||||
|
(method git-fetch)
|
||||||
|
;; Do not fetch the archives from
|
||||||
|
;; http://mirror0.sfml-dev.org/files/ because files there seem
|
||||||
|
;; to be changed in place.
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/SFML/SFML")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"04qjfp23db0ga4lckil9jqigmjr3253p190r568kpaksrrf5bhcv"))))))
|
||||||
|
|
||||||
(define-public csfml
|
(define-public csfml
|
||||||
(package
|
(package
|
||||||
(name "csfml")
|
(name "csfml")
|
||||||
(version "2.5.1")
|
(version "2.6.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
|
@ -1133,13 +1168,13 @@ of five modules: system, window, graphics, audio and network.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1wj1p798myyavld2xdhvvflb5h4nf1vgxxzs6nh5qad44vj9b3kb"))))
|
"19xxlan0yy9f92bmzkzqg3hjc18g6ds4mhg0rrs62qg9434p8aqh"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:configure-flags #~(list "-DCSFML_BUILD_DOC=TRUE")
|
(list #:configure-flags #~(list "-DCSFML_BUILD_DOC=TRUE")
|
||||||
#:tests? #f)) ;no tests
|
#:tests? #f)) ;no tests
|
||||||
(native-inputs (list doxygen))
|
(native-inputs (list doxygen))
|
||||||
(inputs (list sfml))
|
(inputs (list sfml-2))
|
||||||
(synopsis "C bindings for the SFML multimedia library")
|
(synopsis "C bindings for the SFML multimedia library")
|
||||||
(description
|
(description
|
||||||
"CSFML is the official C binding to the SFML libraries. SFML provides a
|
"CSFML is the official C binding to the SFML libraries. SFML provides a
|
||||||
|
|
|
@ -4444,9 +4444,7 @@ for common mesh file formats, and collision detection.")
|
||||||
(license license:zlib)))
|
(license license:zlib)))
|
||||||
|
|
||||||
(define-public mars
|
(define-public mars
|
||||||
;; The latest release on SourceForge relies on an unreleased version of SFML
|
;; No official release since 2013: use the latest commit.
|
||||||
;; with a different API, so we take the latest version from the official
|
|
||||||
;; repository on Github.
|
|
||||||
(let ((commit "84664cda094efe6e49d9b1550e4f4f98c33eefa2")
|
(let ((commit "84664cda094efe6e49d9b1550e4f4f98c33eefa2")
|
||||||
(revision "2"))
|
(revision "2"))
|
||||||
(package
|
(package
|
||||||
|
@ -4476,7 +4474,7 @@ for common mesh file formats, and collision detection.")
|
||||||
(assoc-ref outputs "out")
|
(assoc-ref outputs "out")
|
||||||
"/share/games/marsshooter/\";"))))))))
|
"/share/games/marsshooter/\";"))))))))
|
||||||
(inputs
|
(inputs
|
||||||
(list mesa fribidi taglib sfml))
|
(list mesa fribidi taglib sfml-2))
|
||||||
(home-page "https://mars-game.sourceforge.net/")
|
(home-page "https://mars-game.sourceforge.net/")
|
||||||
(synopsis "2D space shooter")
|
(synopsis "2D space shooter")
|
||||||
(description
|
(description
|
||||||
|
@ -4796,7 +4794,7 @@ Protocol).")
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config))
|
(list pkg-config))
|
||||||
(inputs
|
(inputs
|
||||||
(list glu sfml))
|
(list glu sfml-2))
|
||||||
(synopsis "High-speed arctic racing game based on Tux Racer")
|
(synopsis "High-speed arctic racing game based on Tux Racer")
|
||||||
;; Snarfed straight from Debian.
|
;; Snarfed straight from Debian.
|
||||||
(description "Extreme Tux Racer, or etracer as it is called for short, is
|
(description "Extreme Tux Racer, or etracer as it is called for short, is
|
||||||
|
@ -11018,7 +11016,7 @@ current computer, the world, and eventually the universe itself.")
|
||||||
(install-file "MarbleMarcher" bin))
|
(install-file "MarbleMarcher" bin))
|
||||||
#t)))))
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
(list eigen mesa sfml))
|
(list eigen mesa sfml-2))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config))
|
(list pkg-config))
|
||||||
(home-page "https://codeparade.itch.io/marblemarcher")
|
(home-page "https://codeparade.itch.io/marblemarcher")
|
||||||
|
@ -12801,7 +12799,7 @@ to start over several times to find the most satisfactory ending.")
|
||||||
`(#:tests? #f ; no tests
|
`(#:tests? #f ; no tests
|
||||||
#:build-type "Release"))
|
#:build-type "Release"))
|
||||||
(inputs
|
(inputs
|
||||||
(list sfml))
|
(list sfml-2))
|
||||||
(home-page "https://github.com/sandsmark/Schiffbruch/")
|
(home-page "https://github.com/sandsmark/Schiffbruch/")
|
||||||
(synopsis "Pixelart survival game")
|
(synopsis "Pixelart survival game")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue