Merge pull request #242625 from OPNA2608/update/easyrpg
easyrpg-player: update, enable on Darwin
This commit is contained in:
commit
355d069f35
|
@ -1,19 +1,39 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, expat, icu }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, autoreconfHook
|
||||||
|
, pkg-config
|
||||||
|
, expat
|
||||||
|
, icu
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "liblcf";
|
pname = "liblcf";
|
||||||
version = "0.7.0";
|
version = "0.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "EasyRPG";
|
owner = "EasyRPG";
|
||||||
repo = "liblcf";
|
repo = "liblcf";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-69cYZ8hJ92gK39gueaEoUM0K7BDWIQ/0NvcQ/6e3Sg8=";
|
hash = "sha256-jJGIsNw7wplTL5FBWGL8osb9255o9ZaWgl77R+RLDMM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
dtrictDeps = true;
|
||||||
propagatedBuildInputs = [ expat icu ];
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
autoreconfHook
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
expat
|
||||||
|
icu
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
enableParallelChecking = true;
|
||||||
|
|
||||||
|
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Library to handle RPG Maker 2000/2003 and EasyRPG projects";
|
description = "Library to handle RPG Maker 2000/2003 and EasyRPG projects";
|
||||||
|
|
|
@ -1,23 +1,71 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, doxygen ? null, pkg-config
|
{ lib
|
||||||
, freetype ? null, fmt, glib, harfbuzz ? null
|
, stdenv
|
||||||
, liblcf, libpng, libsndfile ? null, libvorbis ? null, libxmp ? null
|
, fetchFromGitHub
|
||||||
, libXcursor, libXext, libXi, libXinerama, libXrandr, libXScrnSaver, libXxf86vm
|
, fetchpatch
|
||||||
, mpg123 ? null, opusfile ? null, pcre, pixman, SDL2, speexdsp ? null, wildmidi ? null, zlib
|
, cmake
|
||||||
|
, doxygen
|
||||||
|
, pkg-config
|
||||||
|
, freetype
|
||||||
|
, fmt
|
||||||
|
, glib
|
||||||
|
, harfbuzz
|
||||||
|
, liblcf
|
||||||
|
, libpng
|
||||||
|
, libsndfile
|
||||||
|
, libvorbis
|
||||||
|
, libxmp
|
||||||
|
, libXcursor
|
||||||
|
, libXext
|
||||||
|
, libXi
|
||||||
|
, libXinerama
|
||||||
|
, libXrandr
|
||||||
|
, libXScrnSaver
|
||||||
|
, libXxf86vm
|
||||||
|
, mpg123
|
||||||
|
, opusfile
|
||||||
|
, pcre
|
||||||
|
, pixman
|
||||||
|
, SDL2
|
||||||
|
, speexdsp
|
||||||
|
, wildmidi
|
||||||
|
, zlib
|
||||||
, libdecor
|
, libdecor
|
||||||
|
, alsa-lib
|
||||||
|
, asciidoctor
|
||||||
|
, Foundation
|
||||||
|
, AudioUnit
|
||||||
|
, AudioToolbox
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "easyrpg-player";
|
pname = "easyrpg-player";
|
||||||
version = "0.7.0";
|
version = "0.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "EasyRPG";
|
owner = "EasyRPG";
|
||||||
repo = "Player";
|
repo = "Player";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "049bj3jg3ldi3n11nx8xvh6pll68g7dcxz51q6z1gyyfxxws1qpj";
|
hash = "sha256-t0sa9ONVVfsiTy+us06vU2bMa4QmmQeYxU395g0WS6w=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake doxygen pkg-config ];
|
patches = [
|
||||||
|
# Fixed compatibility with fmt > 9
|
||||||
|
# Remove when version > 0.8
|
||||||
|
(fetchpatch {
|
||||||
|
name = "0001-Fix-building-with-fmtlib-10.patch";
|
||||||
|
url = "https://github.com/EasyRPG/Player/commit/ab6286f6d01bada649ea52d1f0881dde7db7e0cf.patch";
|
||||||
|
hash = "sha256-GdSdVFEG1OJCdf2ZIzTP+hSrz+ddhTMBvOPjvYQHy54=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
asciidoctor
|
||||||
|
cmake
|
||||||
|
doxygen
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
fmt
|
fmt
|
||||||
|
@ -29,6 +77,15 @@ stdenv.mkDerivation rec {
|
||||||
libsndfile
|
libsndfile
|
||||||
libvorbis
|
libvorbis
|
||||||
libxmp
|
libxmp
|
||||||
|
mpg123
|
||||||
|
opusfile
|
||||||
|
pcre
|
||||||
|
pixman
|
||||||
|
SDL2
|
||||||
|
speexdsp
|
||||||
|
zlib
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
|
alsa-lib
|
||||||
libXcursor
|
libXcursor
|
||||||
libXext
|
libXext
|
||||||
libXi
|
libXi
|
||||||
|
@ -36,22 +93,43 @@ stdenv.mkDerivation rec {
|
||||||
libXrandr
|
libXrandr
|
||||||
libXScrnSaver
|
libXScrnSaver
|
||||||
libXxf86vm
|
libXxf86vm
|
||||||
mpg123
|
|
||||||
opusfile
|
|
||||||
pcre
|
|
||||||
pixman
|
|
||||||
SDL2
|
|
||||||
speexdsp
|
|
||||||
wildmidi
|
|
||||||
zlib
|
|
||||||
libdecor
|
libdecor
|
||||||
|
wildmidi # until packaged on Darwin
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
|
Foundation
|
||||||
|
AudioUnit
|
||||||
|
AudioToolbox
|
||||||
];
|
];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DPLAYER_ENABLE_TESTS=${lib.boolToString doCheck}"
|
||||||
|
];
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"all"
|
||||||
|
"man"
|
||||||
|
];
|
||||||
|
|
||||||
|
buildFlags = lib.optionals doCheck [
|
||||||
|
"test_runner_player"
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
|
mkdir $out/bin
|
||||||
|
mv Package $out/Applications
|
||||||
|
ln -s $out/{Applications/EasyRPG\ Player.app/Contents/MacOS,bin}/EasyRPG\ Player
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
||||||
|
|
||||||
|
enableParallelChecking = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "RPG Maker 2000/2003 and EasyRPG games interpreter";
|
description = "RPG Maker 2000/2003 and EasyRPG games interpreter";
|
||||||
homepage = "https://easyrpg.org/";
|
homepage = "https://easyrpg.org/";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = with maintainers; [ yana ];
|
maintainers = with maintainers; [ yana ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.all;
|
||||||
|
mainProgram = lib.optionalString stdenv.hostPlatform.isDarwin "EasyRPG Player";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -37126,7 +37126,9 @@ with pkgs;
|
||||||
d1x-rebirth-full
|
d1x-rebirth-full
|
||||||
d2x-rebirth-full;
|
d2x-rebirth-full;
|
||||||
|
|
||||||
easyrpg-player = callPackage ../games/easyrpg-player { };
|
easyrpg-player = callPackage ../games/easyrpg-player {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Foundation AudioUnit AudioToolbox;
|
||||||
|
};
|
||||||
|
|
||||||
eboard = callPackage ../games/eboard { };
|
eboard = callPackage ../games/eboard { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue