diff options
Diffstat (limited to 'gnu/packages/easyrpg.scm')
-rw-r--r-- | gnu/packages/easyrpg.scm | 68 |
1 files changed, 48 insertions, 20 deletions
diff --git a/gnu/packages/easyrpg.scm b/gnu/packages/easyrpg.scm index 43e2438df5..2d227f8956 100644 --- a/gnu/packages/easyrpg.scm +++ b/gnu/packages/easyrpg.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org> +;;; Copyright © 2018, 2025 宋文武 <iyzsong@envs.net> ;;; Copyright © 2019–2021 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2024 gemmaro <gemmaro.dev@gmail.com> @@ -20,9 +20,12 @@ ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. (define-module (gnu packages easyrpg) + #:use-module (guix gexp) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (gnu packages audio) #:use-module (gnu packages compression) @@ -30,6 +33,7 @@ #:use-module (gnu packages gtk) #:use-module (gnu packages icu4c) #:use-module (gnu packages image) + #:use-module (gnu packages linux) #:use-module (gnu packages mp3) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pretty-print) @@ -42,7 +46,7 @@ (define-public liblcf (package (name "liblcf") - (version "0.8") + (version "0.8.1") (source (origin (method url-fetch) (uri (string-append @@ -50,34 +54,26 @@ "/liblcf-" version ".tar.gz")) (sha256 (base32 - "0kskflh2izc8q5p5x0rfxw8xa3591xfkmqf74rj72ff34xri4nj1")))) + "1b68yhs14b4ql1wfbm0jzklyqyi3b2wm3pm9zhx0ij2a98c8cnli")))) (build-system gnu-build-system) (native-inputs (list pkg-config)) (propagated-inputs ;; Required by 'liblcf.pc'. - (list expat icu4c)) + (list expat icu4c libinih)) (home-page "https://easyrpg.org/") (synopsis "Library to handle RPG Maker 2000 and 2003 game data") (description "@code{liblcf} is a library to handle RPG Maker 2000 and 2003 game data. It can read and write LCF and XML files.") - ;; It includes a copy of Boost Preprocessor Cat and Stringize (boost-1.0): - ;; src/boost/preprocessor/config.hpp - ;; src/boost/preprocessor/cat.hpp - ;; src/boost/preprocessor/stringize.hpp - ;; and a copy of inih (bsd-3): - ;; src/ini.h - ;; src/ini.cpp - ;; src/inireader.h - ;; src/inireader.cpp - ;; TODO: Unbundle them. + ;; It includes a copy of span-lite (boost-1.0): + ;; src/lcf/third_party/span.h (license license:expat))) (define-public easyrpg-player (package (name "easyrpg-player") - (version "0.8") + (version "0.8.1.1") (source (origin (method url-fetch) (uri (string-append @@ -85,7 +81,7 @@ It can read and write LCF and XML files.") "/easyrpg-player-" version ".tar.gz")) (sha256 (base32 - "1brx2iix9d5i2lyjjcs03pq1xgl1gyh0yas8avazahgd9sn47696")))) + "0aa60568cvhxf93065wn2r6js7xh81vhsl2nw3bhs5g3l1smq28z")))) (build-system gnu-build-system) (arguments '(#:configure-flags @@ -107,7 +103,6 @@ It can read and write LCF and XML files.") mpg123 opusfile pixman - sdl2-mixer sdl2 speexdsp wildmidi @@ -121,7 +116,40 @@ data.") ;; It bundles FMMidi YM2608 FM synthesizer emulator (bsd-3): ;; src/midisynth.h ;; src/midisynth.cpp - ;; and PicoJSON JSON parser/serializer (bsd-2): - ;; src/picojson.h - ;; TODO: Unbundle them. + ;; and WAV audio loader and writer (public-domain): + ;; src/external/dr_wav.h (license license:gpl3+))) + +(define-public libretro-easyrpg + (let ((libretro-common + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libretro/libretro-common") + (commit "668749ae38a9e85744d1c15a652a1e8db8ab9e82"))) + (file-name "libretro-common-checkout") + (sha256 + (base32 + "007hd1ys3ikyjx4zigkxl2h0172p7d9p9vj09739yqfkvxkwlbl2"))))) + (package + (inherit easyrpg-player) + (name "libretro-easyrpg") + (source (origin + (inherit (package-source easyrpg-player)) + (modules '((guix build utils))) + (snippet + #~(begin + (copy-recursively #$libretro-common + "builds/libretro/libretro-common"))))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f ;no tests + #:configure-flags #~'("-DPLAYER_TARGET_PLATFORM=libretro") + #:phases + #~(modify-phases %standard-phases + (replace 'install + (lambda _ + (install-file + "easyrpg_libretro.so" + (string-append #$output "/lib/libretro/"))))))) + (synopsis "Libretro core to play RPG Maker 2000 and 2003 games")))) |