mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
gnu: Fix OpenSFX build.
OpenSFX 1.0.1 uses a different build system from the old one, which causes weird errors. * gnu/packages/games.scm (openttd-opensfx)[native-inputs]: Add tar. [#:make-flags]: Drop INSTALL_DIR. Add DIR_NAME and TAR. [#:tests?]: New argument. [#:phases]: Add ‘prebuild’. Replace ‘install’ with a simple copy.
This commit is contained in:
parent
9b41c08f41
commit
0a1df50e9f
1 changed files with 16 additions and 4 deletions
|
@ -4437,11 +4437,15 @@ OpenGFX provides you with...
|
|||
(build-system gnu-build-system)
|
||||
(native-inputs
|
||||
`(("catcodec" ,catcodec)
|
||||
("python" ,python-2)))
|
||||
("python" ,python-2)
|
||||
("tar" ,tar)))
|
||||
(arguments
|
||||
`(#:make-flags
|
||||
(list (string-append "INSTALL_DIR=" %output
|
||||
"/share/games/openttd/baseset/opensfx"))
|
||||
(list (string-append "DIR_NAME=opensfx")
|
||||
(string-append "TAR=" (assoc-ref %build-inputs "tar")
|
||||
"/bin/tar"))
|
||||
;; The check phase only verifies md5sums, see openttd-opengfx.
|
||||
#:tests? #f
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'make-reproducible
|
||||
|
@ -4451,7 +4455,15 @@ OpenGFX provides you with...
|
|||
(substitute* "scripts/Makefile.def"
|
||||
(("-cf") " --mtime=@0 -cf"))
|
||||
#t))
|
||||
(delete 'configure))))
|
||||
(delete 'configure)
|
||||
(add-before 'build 'prebuild
|
||||
(lambda _ (invoke "make" "opensfx.cat")))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(copy-recursively "opensfx"
|
||||
(string-append (assoc-ref outputs "out")
|
||||
"/share/games/openttd/baseset"
|
||||
"/opensfx")))))))
|
||||
(home-page "http://dev.openttdcoop.org/projects/opensfx")
|
||||
(synopsis "Base sounds for OpenTTD")
|
||||
(description "OpenSFX is a set of free base sounds for OpenTTD which make
|
||||
|
|
Loading…
Reference in a new issue