gnu: nestopia-ue: Update to 1.48.
* gnu/packages/emulators.scm (nestopia-ue): Update to 1.48. [source]: Simplify snippet; 3rd-party zlib is no longer bundled. [build-system]: Switch to cmake-build-system. [inputs]: Remove glu and mesa. Add libepoxy. [arguments]: Remove #:make-flags. Re-enable 'configure' phase. Remove 'remove-xdg-desktop-menu-call' and 'remove-gdkwayland-include' phases. Add 'wrap-program' phase.
This commit is contained in:
parent
cbb10936f5
commit
9d39c300cf
|
@ -993,7 +993,7 @@ towards a working Mupen64Plus for casual users.")
|
||||||
(define-public nestopia-ue
|
(define-public nestopia-ue
|
||||||
(package
|
(package
|
||||||
(name "nestopia-ue")
|
(name "nestopia-ue")
|
||||||
(version "1.47")
|
(version "1.48")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
|
@ -1002,42 +1002,34 @@ towards a working Mupen64Plus for casual users.")
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1dzrrjmvyqks64q5l5pfly80jb6qcsbj5b3dm40fijd5xnpbapci"))
|
"184y05z4k4a4m4022niy625kan0rklh8gcxyynxli1fss2sjjrpv"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
;; We don't need libretro for the GNU/Linux build.
|
;; We don't need libretro for the GNU/Linux build.
|
||||||
(delete-file-recursively "libretro")
|
(delete-file-recursively "libretro")))))
|
||||||
;; Use system zlib.
|
(build-system cmake-build-system)
|
||||||
(delete-file-recursively "source/zlib")
|
|
||||||
(substitute* "source/core/NstZlib.cpp"
|
|
||||||
(("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
|
|
||||||
(build-system gnu-build-system)
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("ao" ,ao)
|
`(("ao" ,ao)
|
||||||
("glu" ,glu)
|
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("libarchive" ,libarchive)
|
("libarchive" ,libarchive)
|
||||||
("mesa" ,mesa)
|
("libepoxy" ,libepoxy)
|
||||||
("sdl2" ,sdl2)
|
("sdl2" ,sdl2)
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
;; The Nestopia build system consists solely of a Makefile.
|
;; This fixes the file chooser crash that happens with GTK 3.
|
||||||
(delete 'configure)
|
(add-after 'install 'wrap-program
|
||||||
(add-before 'build 'remove-xdg-desktop-menu-call
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(lambda _
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(substitute* "Makefile"
|
(nestopia (string-append out "/bin/nestopia"))
|
||||||
(("xdg-desktop-menu install .*") ""))))
|
(gtk (assoc-ref inputs "gtk+"))
|
||||||
(add-before 'build 'remove-gdkwayland-include
|
(gtk-share (string-append gtk "/share")))
|
||||||
(lambda _
|
(wrap-program nestopia
|
||||||
(substitute* "source/unix/gtkui/gtkui.h"
|
`("XDG_DATA_DIRS" ":" prefix (,gtk-share)))))))
|
||||||
(("#include <gdk/gdkwayland\\.h>") "")))))
|
|
||||||
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
|
||||||
(list "CC=gcc" "CXX=g++" (string-append "PREFIX=" out)))
|
|
||||||
;; There are no tests.
|
;; There are no tests.
|
||||||
#:tests? #f))
|
#:tests? #f))
|
||||||
(home-page "http://0ldsk00l.ca/nestopia/")
|
(home-page "http://0ldsk00l.ca/nestopia/")
|
||||||
|
|
Loading…
Reference in New Issue