summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/games.scm65
1 files changed, 26 insertions, 39 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 3d65b753914..b1752962619 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -1356,51 +1356,14 @@ high a score as possible.")
1356 "LOCALIZE=1" "LANGUAGES=all") 1356 "LOCALIZE=1" "LANGUAGES=all")
1357 #:phases 1357 #:phases
1358 #~(modify-phases %standard-phases 1358 #~(modify-phases %standard-phases
1359 (delete 'configure) 1359 (delete 'configure))
1360 ;; Apparently we can't do make on both tiles and a console version at
1361 ;; the same time anymore, so we have to either "make clean" between
1362 ;; builds or do some other hackery. See:
1363 ;; https://github.com/CleverRaven/Cataclysm-DDA/issues/42598#issuecomment-667702746
1364 (add-after 'install 'make-clean-pre-tiles
1365 (lambda* (#:key make-flags outputs #:allow-other-keys)
1366 ;; During cleaning, "zstd.a" file is now removed but no recreated
1367 ;; during the next make run and is found missing later in the
1368 ;; build process. Avoid cleaning that file.
1369 ;;
1370 ;; This basically reverts upstream commit
1371 ;; f61d9d2114a6b5997f399c84872dab1f1f2310b9
1372 ;; (<https://github.com/CleverRaven/Cataclysm-DDA/pull/84922>).
1373 (substitute* "Makefile"
1374 ((" zstd\\.a") ""))
1375 ;; Change prefix directory and enable tile graphics and sound.
1376 (invoke "make" "clean")))
1377 (add-after 'make-clean-pre-tiles 'build-tiles
1378 (lambda* (#:key make-flags outputs #:allow-other-keys)
1379 ;; Change prefix directory and enable tile graphics and sound.
1380 (apply invoke "make" "TILES=1" "SOUND=1"
1381 (string-append "PREFIX=" #$output:tiles)
1382 (cdr make-flags))))
1383 (add-after 'build-tiles 'install-tiles
1384 (lambda* (#:key make-flags outputs #:allow-other-keys)
1385 (apply invoke "make" "install" "TILES=1" "SOUND=1"
1386 (string-append "PREFIX=" #$output:tiles)
1387 (cdr make-flags)))))
1388 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native 1360 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
1389 ;; input in order to support tests. 1361 ;; input in order to support tests.
1390 #:tests? #f)) 1362 #:tests? #f))
1391 (outputs '("out"
1392 "tiles")) ;for tile graphics and sound support
1393 (native-inputs 1363 (native-inputs
1394 (list astyle gcc-13 gettext-minimal pkg-config)) 1364 (list astyle gcc-13 gettext-minimal pkg-config))
1395 (inputs 1365 (inputs
1396 (list freetype 1366 (list freetype ncurses))
1397 libogg
1398 libvorbis
1399 ncurses
1400 sdl2
1401 sdl2-image
1402 sdl2-ttf
1403 sdl2-mixer))
1404 (home-page "https://cataclysmdda.org/") 1367 (home-page "https://cataclysmdda.org/")
1405 (synopsis "Survival horror roguelike video game") 1368 (synopsis "Survival horror roguelike video game")
1406 (description 1369 (description
@@ -1414,6 +1377,30 @@ things far stranger and deadlier, and against the others like yourself, that
1414want what you have.") 1377want what you have.")
1415 (license license:cc-by-sa3.0))) 1378 (license license:cc-by-sa3.0)))
1416 1379
1380(define-public cataclysm-dda-tiles
1381 (package
1382 (inherit cataclysm-dda)
1383 (name "cataclysm-dda-tiles")
1384 (arguments
1385 (substitute-keyword-arguments arguments
1386 ((#:make-flags flags)
1387 #~(cons* "TILES=1" "SOUND=1" #$flags))))
1388 (inputs
1389 (modify-inputs inputs
1390 (delete "ncurses")
1391 (append libogg
1392 libvorbis
1393 sdl2
1394 sdl2-image
1395 sdl2-mixer
1396 sdl2-ttf)))
1397 (synopsis
1398 (string-append (package-synopsis cataclysm-dda)
1399 ", with graphics and sound"))
1400 (description
1401 (string-append (package-description cataclysm-dda)
1402 "\n\nThis package includes graphical tiles and sound."))))
1403
1417(define-public cockatrice 1404(define-public cockatrice
1418 (let ((release-date "2026-05-23")) 1405 (let ((release-date "2026-05-23"))
1419 (package 1406 (package