mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 22:16:32 +01:00
gnu: nestopia-ue: Use system zlib.
* gnu/packages/games.scm (nestopia-ue): Remove bundled zlib, patch files to include system zlib.h, and add zlib as input.
This commit is contained in:
parent
c869eed1a7
commit
9ff7827a21
1 changed files with 9 additions and 3 deletions
|
@ -1228,9 +1228,14 @@ (define-public nestopia-ue
|
||||||
(base32
|
(base32
|
||||||
"07h49xwvg61dx20rk5p4r3ax2ar5y0ppvm60cqwqljyi9rdfbh7p"))
|
"07h49xwvg61dx20rk5p4r3ax2ar5y0ppvm60cqwqljyi9rdfbh7p"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
;; We don't need libretro for the GNU/Linux build.
|
|
||||||
(snippet
|
(snippet
|
||||||
'(delete-file-recursively "libretro"))))
|
'(begin
|
||||||
|
;; We don't need libretro for the GNU/Linux build.
|
||||||
|
(delete-file-recursively "libretro")
|
||||||
|
;; Use system zlib.
|
||||||
|
(delete-file-recursively "source/zlib")
|
||||||
|
(substitute* "source/core/NstZlib.cpp"
|
||||||
|
(("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("pkg-config" ,pkg-config)))
|
||||||
|
@ -1240,7 +1245,8 @@ (define-public nestopia-ue
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("libarchive" ,libarchive)
|
("libarchive" ,libarchive)
|
||||||
("mesa" ,mesa)
|
("mesa" ,mesa)
|
||||||
("sdl2" ,sdl2)))
|
("sdl2" ,sdl2)
|
||||||
|
("zlib" ,zlib)))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
|
Loading…
Reference in a new issue