gnu: packages: 0ad: Tweak the build options.

Use the -C make option, rather than changing directory before the build
phase. Add config=release to the make flags as this might improve performance,
and verbose=1 as this might make the build process clearer.

Also remove --minimal-flags, as I don't quite understand what this does, but
using it seems to remove lots of flags that would be used by default.

* gnu/packages/games.scm (0ad)[arguments]: Add #:make-flags, remove the
  --minimal-flags argument from the configure phase, remove the 'chdir phase,
  and change the chdir argument in the install phase.
This commit is contained in:
Christopher Baines 2017-12-31 13:59:12 +00:00
parent 091191c3dc
commit 809b884260
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 3 additions and 7 deletions

View File

@ -4922,7 +4922,8 @@ fight against their plot and save his fellow rabbits from slavery.")
("python-2" ,python-2)))
(build-system gnu-build-system)
(arguments
`(#:phases
`(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'delete-bundles
(lambda _
@ -4949,17 +4950,12 @@ fight against their plot and save his fellow rabbits from slavery.")
(zero? (system* "./update-workspaces.sh"
(string-append "--libdir=" lib)
(string-append "--datadir=" data)
"--minimal-flags"
;; TODO: "--with-system-nvtt"
"--with-system-mozjs38"))))))
(add-before 'build 'chdir
(lambda _
(chdir "build/workspaces/gcc")
#t))
(delete 'check)
(replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys)
(chdir "../../../binaries")
(chdir "binaries")
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
(lib (string-append out "/lib"))