>From d2900a92b271c5e81093bd9704aa82dbb6b0f523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Fri, 3 Jan 2020 01:29:04 +0100 Subject: [PATCH 2/2] gnu: Add sameboy. * gnu/packages/emulators.scm (sameboy): New variable. --- gnu/packages/emulators.scm | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 63c1332c2f..fbfb1cf712 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -457,6 +457,54 @@ and Game Boy Color games.") ;; BSD-3. (license (list license:mpl2.0 license:lgpl2.1+ license:bsd-3)))) +(define-public sameboy + (package + (name "sameboy") + (version "v0.12.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/LIJI32/SameBoy.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0m5rv2x8qck1kr43xq186pp4kaiay7gd1x775n9qrljcd7z4x6fs")))) + (build-system gnu-build-system) + (native-inputs + `(("rgbds" ,rgbds) + ("gcc" ,gcc-9) + ("pkg-config" ,pkg-config))) + (inputs + `(("sdl2" ,sdl2))) + (arguments + `(#:tests? #f ; There are no tests + #:make-flags `("CC=gcc" "CONF=release" + ,(string-append "DATA_DIR=" + (assoc-ref %outputs "out") + "/share/sameboy/")) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (data (string-append out "/share/sameboy/"))) + (with-directory-excursion "build/bin/SDL" + (install-file "sameboy" bin) + (delete-file "sameboy") + (copy-recursively "." data)))))))) + (home-page "https://sameboy.github.io/") + (synopsis "Extremely accurate Game Boy, Game Boy Color and Super Game Boy emulator") + (description "SameBoy is a user friendly Game Boy, Game Boy Color +and Super Game Boy emulator. SameBoy is extremely accurate and includes a wide +range of powerful debugging features, making it ideal for both casual players +and developers. In addition to accuracy and developer capabilities, SameBoy +has all the features one would expect from an emulator---from save states to +scaling filters.") + (license license:expat))) + (define-public mupen64plus-core (package (name "mupen64plus-core") -- 2.24.1