aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games-rpg/easyrpg-player/Manifest1
-rw-r--r--games-rpg/easyrpg-player/easyrpg-player-0.8.1.1.ebuild92
-rw-r--r--games-rpg/easyrpg-player/easyrpg-player-9999.ebuild92
3 files changed, 185 insertions, 0 deletions
diff --git a/games-rpg/easyrpg-player/Manifest b/games-rpg/easyrpg-player/Manifest
new file mode 100644
index 0000000..d26ae73
--- /dev/null
+++ b/games-rpg/easyrpg-player/Manifest
@@ -0,0 +1 @@
+DIST easyrpg-player-0.8.1.1.tar.gz 6815813 BLAKE2B 47fb2e6279fb9ba7ba546f6e1319f85c240da85eae74d67d2343a910a28d864744ec25eaf53ab20e483608fb98fb0cb3b2b7db26aeaabf5f8392a9094e8710e8 SHA512 081ae4f6ccf995e963139f2a0911a95c3cd3da49cfa65d9960a44eb189d82fffff6ea8295b0c007c9c2abc184bbbb2831e504964f3d90baacb9860bc083c3fd3
diff --git a/games-rpg/easyrpg-player/easyrpg-player-0.8.1.1.ebuild b/games-rpg/easyrpg-player/easyrpg-player-0.8.1.1.ebuild
new file mode 100644
index 0000000..9cf9718
--- /dev/null
+++ b/games-rpg/easyrpg-player/easyrpg-player-0.8.1.1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg-utils
+
+DESCRIPTION="RPG Maker 2000/2003 and EasyRPG games interpreter"
+HOMEPAGE="https://easyrpg.org/"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/EasyRPG/Player.git"
+else
+ SRC_URI="https://github.com/EasyRPG/Player/archive/refs/tags/${PV}.tar.gz -> easyrpg-player-${PV}.tar.gz"
+ S="${WORKDIR}/Player-${PV}"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+
+IUSE="
+fluidsynth
++freetype
++json
+libsamplerate
++midi
++mp3
+opus
+sdl3
++sndfile
++speexdsp
++vorbis
+wildmidi
+xmp
+"
+
+RDEPEND="
+ >=dev-games/liblcf-$(ver_cut 1-3)[ini]
+ >=dev-libs/libfmt-6:=
+ media-libs/libpng
+ x11-libs/pixman
+ fluidsynth? ( media-sound/fluidsynth:= )
+ freetype? (
+ media-libs/freetype:2
+ media-libs/harfbuzz:=
+ )
+ json? ( dev-cpp/nlohmann_json )
+ libsamplerate? ( media-libs/libsamplerate )
+ midi? ( media-libs/alsa-lib )
+ mp3? ( media-sound/mpg123-base )
+ opus? ( media-libs/opusfile )
+ !sdl3? ( >=media-libs/libsdl2-2.0.14[video] )
+ sdl3? ( media-libs/libsdl3 )
+ sndfile? ( media-libs/libsndfile )
+ speexdsp? ( media-libs/speexdsp )
+ vorbis? ( media-libs/libvorbis )
+ wildmidi? ( media-sound/wildmidi )
+ xmp? ( media-libs/libxmp )
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DPLAYER_ENABLE_DRWAV=OFF
+ -DPLAYER_ENABLE_TESTS=ON
+ -DPLAYER_TARGET_PLATFORM="$(usex sdl3 SDL3 SDL2)"
+ -DPLAYER_WITH_FLUIDSYNTH="$(usex fluidsynth)"
+ -DPLAYER_WITH_FREETYPE="$(usex freetype)"
+ -DPLAYER_WITH_HARFBUZZ="$(usex freetype)"
+ -DPLAYER_WITH_LIBSNDFILE="$(usex sndfile)"
+ -DPLAYER_WITH_MPG123="$(usex mp3)"
+ -DPLAYER_WITH_NATIVE_MIDI="$(usex midi)"
+ -DPLAYER_WITH_NLOHMANN_JSON="$(usex json)"
+ -DPLAYER_WITH_OGGVORBIS="$(usex vorbis)"
+ -DPLAYER_WITH_OPUS="$(usex opus)"
+ -DPLAYER_WITH_SAMPLERATE="$(usex libsamplerate)"
+ -DPLAYER_WITH_SPEEXDSP="$(usex speexdsp)"
+ -DPLAYER_WITH_WILDMIDI="$(usex wildmidi)"
+ -DPLAYER_WITH_XMP="$(usex xmp)"
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ cmake_build check
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
diff --git a/games-rpg/easyrpg-player/easyrpg-player-9999.ebuild b/games-rpg/easyrpg-player/easyrpg-player-9999.ebuild
new file mode 100644
index 0000000..9cf9718
--- /dev/null
+++ b/games-rpg/easyrpg-player/easyrpg-player-9999.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg-utils
+
+DESCRIPTION="RPG Maker 2000/2003 and EasyRPG games interpreter"
+HOMEPAGE="https://easyrpg.org/"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/EasyRPG/Player.git"
+else
+ SRC_URI="https://github.com/EasyRPG/Player/archive/refs/tags/${PV}.tar.gz -> easyrpg-player-${PV}.tar.gz"
+ S="${WORKDIR}/Player-${PV}"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+
+IUSE="
+fluidsynth
++freetype
++json
+libsamplerate
++midi
++mp3
+opus
+sdl3
++sndfile
++speexdsp
++vorbis
+wildmidi
+xmp
+"
+
+RDEPEND="
+ >=dev-games/liblcf-$(ver_cut 1-3)[ini]
+ >=dev-libs/libfmt-6:=
+ media-libs/libpng
+ x11-libs/pixman
+ fluidsynth? ( media-sound/fluidsynth:= )
+ freetype? (
+ media-libs/freetype:2
+ media-libs/harfbuzz:=
+ )
+ json? ( dev-cpp/nlohmann_json )
+ libsamplerate? ( media-libs/libsamplerate )
+ midi? ( media-libs/alsa-lib )
+ mp3? ( media-sound/mpg123-base )
+ opus? ( media-libs/opusfile )
+ !sdl3? ( >=media-libs/libsdl2-2.0.14[video] )
+ sdl3? ( media-libs/libsdl3 )
+ sndfile? ( media-libs/libsndfile )
+ speexdsp? ( media-libs/speexdsp )
+ vorbis? ( media-libs/libvorbis )
+ wildmidi? ( media-sound/wildmidi )
+ xmp? ( media-libs/libxmp )
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DPLAYER_ENABLE_DRWAV=OFF
+ -DPLAYER_ENABLE_TESTS=ON
+ -DPLAYER_TARGET_PLATFORM="$(usex sdl3 SDL3 SDL2)"
+ -DPLAYER_WITH_FLUIDSYNTH="$(usex fluidsynth)"
+ -DPLAYER_WITH_FREETYPE="$(usex freetype)"
+ -DPLAYER_WITH_HARFBUZZ="$(usex freetype)"
+ -DPLAYER_WITH_LIBSNDFILE="$(usex sndfile)"
+ -DPLAYER_WITH_MPG123="$(usex mp3)"
+ -DPLAYER_WITH_NATIVE_MIDI="$(usex midi)"
+ -DPLAYER_WITH_NLOHMANN_JSON="$(usex json)"
+ -DPLAYER_WITH_OGGVORBIS="$(usex vorbis)"
+ -DPLAYER_WITH_OPUS="$(usex opus)"
+ -DPLAYER_WITH_SAMPLERATE="$(usex libsamplerate)"
+ -DPLAYER_WITH_SPEEXDSP="$(usex speexdsp)"
+ -DPLAYER_WITH_WILDMIDI="$(usex wildmidi)"
+ -DPLAYER_WITH_XMP="$(usex xmp)"
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ cmake_build check
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}