me
/
guix
Archived
1
0
Fork 0

gnu: freedroidrpg: Update to 1.0rc2.

* gnu/packages/games.scm (freedroidrpg): Update to 1.0rc2.
[source]: Handle rc suffix in version number.
[configure-flags]: Use gexps.
[inputs]: Use new style.  Add glew.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Felix Gruber 2022-01-04 22:23:14 +00:00 committed by Maxim Cournoyer
parent 7f672327c0
commit 1259d320fc
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 33 additions and 29 deletions

View File

@ -1353,44 +1353,48 @@ effects and music to make a completely free game.")
(define-public freedroidrpg (define-public freedroidrpg
(package (package
(name "freedroidrpg") (name "freedroidrpg")
(version "0.16.1") (version "1.0rc2")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "http://ftp.osuosl.org/pub/freedroid/" (uri (let ((major+minor
"freedroidRPG-" (version-major+minor version) "/" (version-major+minor
"freedroidRPG-" version ".tar.gz")) (string-replace-substring version "rc" "."))))
(string-append "http://ftp.osuosl.org/pub/freedroid/"
"freedroidRPG-" major+minor "/"
"freedroidRPG-" version ".tar.gz")))
(sha256 (sha256
(base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2")))) (base32 "10jknaad2ph9j5bs4jxvpnl8rq5yjlq0nasv98f4mki2hh8yiczy"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:configure-flags (list
(list #:configure-flags
(string-append "CFLAGS=" #~(list
"-fcommon " ; XXX needed to build with GCC 10 (string-append "CFLAGS=-fcommon "
"-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL " "-I" #$(this-package-input "sdl-gfx") "/include/SDL "
"-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL " "-I" #$(this-package-input "sdl-image") "/include/SDL "
"-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL") "-I" #$(this-package-input "sdl-mixer") "/include/SDL")
"--enable-opengl") "--enable-opengl")
;; FIXME: the test suite fails with the following error output: ;; FIXME: the test suite fails with the following error output:
;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \ ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
#:tests? #f)) #:tests? #f))
(native-inputs (native-inputs
(list pkg-config)) (list pkg-config))
(inputs (inputs
`(("glu" ,glu) (list glew
("libjpeg" ,libjpeg-turbo) glu
("libogg" ,libogg) libjpeg-turbo
("libpng" ,libpng) libogg
("libvorbis" ,libvorbis) libpng
("mesa" ,mesa) libvorbis
("python" ,python-wrapper) mesa
("sdl" ,sdl) python-wrapper
("sdl-gfx" ,sdl-gfx) sdl
("sdl-image" ,sdl-image) sdl-gfx
("sdl-mixer" ,sdl-mixer) sdl-image
("zlib" ,zlib))) sdl-mixer
zlib))
(home-page "https://www.freedroid.org/") (home-page "https://www.freedroid.org/")
(synopsis "Isometric role-playing game against killer robots") (synopsis "Isometric role-playing game against killer robots")
(description (description