[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/13: gnu: xonotic: Normalise building Darkplaces.
From: |
guix-commits |
Subject: |
08/13: gnu: xonotic: Normalise building Darkplaces. |
Date: |
Sat, 13 Aug 2022 15:28:55 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 22f865b7e643ec2b1fc4f0238127cc881ef41e49
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Aug 7 02:00:00 2022 +0200
gnu: xonotic: Normalise building Darkplaces.
* gnu/packages/games.scm (xonotic)[arguments]: Build Darkplaces in a single
pass.
Honour MAKE-FLAGS, PARALLEL-BUILD?, and CC-FOR-TARGET.
---
gnu/packages/games.scm | 43 +++++++++++++++++--------------------------
1 file changed, 17 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 487f6571a6..6b5ab89dcd 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -7812,34 +7812,25 @@ quotation from a collection of quotes.")
"--disable-rijndael")
#:phases
#~(modify-phases %standard-phases
- (add-before 'configure 'make-darkplaces
- (lambda* (#:key outputs #:allow-other-keys)
+ (add-before 'configure 'build-darkplaces
+ (lambda* (#:key make-flags parallel-build? outputs
+ #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(share (string-append out "/share/xonotic/")))
- (invoke "make" "-C" "source/darkplaces"
- (string-append "DP_FS_BASEDIR="
- share)
- "DP_LINK_TO_LIBJPEG=1"
- "DP_SOUND_API=ALSA"
- "CC=gcc"
- "-f" "makefile"
- "cl-release")
- (invoke "make" "-C" "source/darkplaces"
- (string-append "DP_FS_BASEDIR="
- share)
- "DP_LINK_TO_LIBJPEG=1"
- "DP_SOUND_API=ALSA"
- "CC=gcc"
- "-f" "makefile"
- "sdl-release")
- (invoke "make" "-C" "source/darkplaces"
- (string-append "DP_FS_BASEDIR="
- share)
- "DP_LINK_TO_LIBJPEG=1"
- "DP_SOUND_API=ALSA"
- "CC=gcc"
- "-f" "makefile"
- "sv-release"))))
+ (apply invoke "make"
+ "-C" "source/darkplaces"
+ "-f" "makefile"
+ "-j" (if parallel-build?
+ (number->string (parallel-job-count))
+ "1")
+ (string-append "CC=" #$(cc-for-target))
+ (string-append "DP_FS_BASEDIR=" share)
+ "DP_LINK_TO_LIBJPEG=1"
+ "DP_SOUND_API=ALSA"
+ "cl-release"
+ "sdl-release"
+ "sv-release"
+ make-flags))))
(add-before 'configure 'bootstrap
(lambda _
(chdir "source/d0_blind_id")
- branch master updated (82ea33d295 -> a8bd13c399), guix-commits, 2022/08/13
- 02/13: gnu: xonotic-data: Update to 0.8.5., guix-commits, 2022/08/13
- 03/13: gnu: xonotic-data: Remove input labels., guix-commits, 2022/08/13
- 05/13: gnu: xonotic-data: Use G-expressions., guix-commits, 2022/08/13
- 06/13: gnu: xonotic-data: Don't copy 1.2-GiB file to build directory., guix-commits, 2022/08/13
- 01/13: gnu: xonotic: Update to 0.8.5., guix-commits, 2022/08/13
- 04/13: gnu: xonotic: Remove input labels., guix-commits, 2022/08/13
- 08/13: gnu: xonotic: Normalise building Darkplaces.,
guix-commits <=
- 07/13: gnu: xonotic: Use G-expressions., guix-commits, 2022/08/13
- 10/13: gnu: xonotic: Further explore the concept of iteration., guix-commits, 2022/08/13
- 11/13: gnu: git: Update to 2.37.2., guix-commits, 2022/08/13
- 12/13: gnu: cups-pk-helper: Update to 0.2.7., guix-commits, 2022/08/13
- 13/13: gnu: cups-pk-helper: Make references non-native., guix-commits, 2022/08/13
- 09/13: gnu: xonotic: Rename misleading 'bootstrap phase., guix-commits, 2022/08/13