gnu: simgear: Remove bundled expat.

* gnu/packages/games.scm (simgear)[source]: Add snippet to remove
bundled expat.
[arguments]: Add configure-flag to use system expat.
This commit is contained in:
Efraim Flashner 2021-11-03 22:27:21 +02:00
parent ea173bd874
commit d3abd5cd8b
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -9269,10 +9269,18 @@ (define simgear
(version-major+minor version) "/"
"simgear-" version ".tar.bz2"))
(sha256
(base32 "0g2g3n3sb6kdimvcrn9kvlhyyrp5c6lx20fgzz8l609v5aygr3dv"))))
(base32 "0g2g3n3sb6kdimvcrn9kvlhyyrp5c6lx20fgzz8l609v5aygr3dv"))
(modules '((guix build utils)))
(snippet
'(begin
;; There are some bundled libraries.
(for-each delete-file-recursively
'("3rdparty/expat/"))
#t))))
(build-system cmake-build-system)
(arguments
`(#:phases
`(#:configure-flags (list "-DSYSTEM_EXPAT=ON")
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)