gnu: abbaye: Use 'sdl-union'.
* gnu/packages/games.scm (abbaye)[inputs]: Use 'sdl-union'. [arguments]: Adjust 'set-sdl-paths' phase accordingly.
This commit is contained in:
parent
17fa842b79
commit
6159943851
|
@ -163,17 +163,10 @@ scriptable with Guile.")
|
||||||
(guix build utils))
|
(guix build utils))
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(add-after 'set-paths 'set-sdl-paths
|
(add-after 'set-paths 'set-sdl-paths
|
||||||
(lambda* (#:key inputs outputs (search-paths '())
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
#:allow-other-keys)
|
(setenv "CPATH"
|
||||||
(define input-directories
|
(string-append (assoc-ref inputs "sdl-union")
|
||||||
(match inputs
|
"/include/SDL"))))
|
||||||
(((_ . dir) ...)
|
|
||||||
dir)))
|
|
||||||
;; This package does not use pkg-config, so modify CPATH
|
|
||||||
;; variable to point to include/SDL for SDL header files.
|
|
||||||
(set-path-environment-variable "CPATH"
|
|
||||||
'("include/SDL")
|
|
||||||
input-directories)))
|
|
||||||
(add-after 'patch-source-shebangs 'patch-makefile
|
(add-after 'patch-source-shebangs 'patch-makefile
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Replace /usr with package output directory.
|
;; Replace /usr with package output directory.
|
||||||
|
@ -192,11 +185,7 @@ scriptable with Guile.")
|
||||||
(delete 'configure))
|
(delete 'configure))
|
||||||
#:tests? #f)) ;; No check target.
|
#:tests? #f)) ;; No check target.
|
||||||
(native-inputs `(("pkg-config" ,pkg-config)))
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
||||||
(inputs `(("sdl" ,sdl)
|
(inputs `(("sdl-union" ,(sdl-union))))
|
||||||
("sdl-gfx" ,sdl-gfx)
|
|
||||||
("sdl-image" ,sdl-image)
|
|
||||||
("sdl-mixer" ,sdl-mixer)
|
|
||||||
("sdl-ttf" ,sdl-ttf)))
|
|
||||||
(home-page "http://code.google.com/p/abbaye-for-linux/")
|
(home-page "http://code.google.com/p/abbaye-for-linux/")
|
||||||
(synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
|
(synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
|
||||||
(description "L'Abbaye des Morts is a 2D platform game set in 13th century
|
(description "L'Abbaye des Morts is a 2D platform game set in 13th century
|
||||||
|
|
Loading…
Reference in New Issue