gnu: crawl: Build without SSE only on some architecures.
This is a follow-up to b89284407f
.
* gnu/packages/games.scm (crawl)[arguments]: Remove custom 'patch-flags
phase, add make-flag on non-x86* architectures to build without SSE.
This commit is contained in:
parent
93a72fa7c9
commit
a5c8460a6d
|
@ -4441,12 +4441,17 @@ (define-public crawl
|
||||||
("python-pyyaml" ,python-pyyaml)
|
("python-pyyaml" ,python-pyyaml)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:make-flags
|
`(#:make-flags
|
||||||
(let* ((sqlite (assoc-ref %build-inputs "sqlite"))
|
(let* ((sqlite (assoc-ref %build-inputs "sqlite"))
|
||||||
(out (assoc-ref %outputs "out")))
|
(out (assoc-ref %outputs "out")))
|
||||||
(list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
|
(list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
|
||||||
(string-append "prefix=" out)
|
(string-append "prefix=" out)
|
||||||
"SAVEDIR=~/.crawl"
|
"SAVEDIR=~/.crawl"
|
||||||
|
;; Don't compile with SSE on systems which don't use it
|
||||||
|
,@(match (%current-system)
|
||||||
|
((or "i686-linux" "x86_64-linux")
|
||||||
|
'())
|
||||||
|
(_ '("NOSSE=TRUE")))
|
||||||
;; don't build any bundled dependencies
|
;; don't build any bundled dependencies
|
||||||
"BUILD_LUA="
|
"BUILD_LUA="
|
||||||
"BUILD_SQLITE="
|
"BUILD_SQLITE="
|
||||||
|
@ -4454,11 +4459,6 @@ (define-public crawl
|
||||||
"-Csource"))
|
"-Csource"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-flags
|
|
||||||
(lambda _
|
|
||||||
(substitute* "source/Makefile"
|
|
||||||
(("-mfpmath=sse -msse2") ""))
|
|
||||||
#t))
|
|
||||||
(add-after 'unpack 'find-SDL-image
|
(add-after 'unpack 'find-SDL-image
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "source/windowmanager-sdl.cc"
|
(substitute* "source/windowmanager-sdl.cc"
|
||||||
|
|
Loading…
Reference in a new issue