diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2022-10-20 23:35:43 +0200 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2022-10-20 23:35:43 +0200 |
commit | 20fa9f51828736eb5ca1293e587bfbb9f34ada80 (patch) | |
tree | 90f3cfe6b78e3e4b55ea8e5186c3f340e833c505 /games-emulation/dosbox-staging/dosbox-staging-0.79.1.ebuild | |
parent | mail-client/claws-mail: sync live ebuild (diff) | |
download | gentoo-20fa9f51828736eb5ca1293e587bfbb9f34ada80.tar.gz gentoo-20fa9f51828736eb5ca1293e587bfbb9f34ada80.tar.bz2 gentoo-20fa9f51828736eb5ca1293e587bfbb9f34ada80.zip |
games-emulation/dosbox-staging: add 0.79.1
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'games-emulation/dosbox-staging/dosbox-staging-0.79.1.ebuild')
-rw-r--r-- | games-emulation/dosbox-staging/dosbox-staging-0.79.1.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/games-emulation/dosbox-staging/dosbox-staging-0.79.1.ebuild b/games-emulation/dosbox-staging/dosbox-staging-0.79.1.ebuild new file mode 100644 index 000000000000..0a3180cceb83 --- /dev/null +++ b/games-emulation/dosbox-staging/dosbox-staging-0.79.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit meson xdg + +DESCRIPTION="Modernized DOSBox soft-fork" +HOMEPAGE="https://dosbox-staging.github.io/" +SRC_URI="https://github.com/dosbox-staging/dosbox-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="+alsa debug dynrec +fluidsynth mt-32 network opengl slirp test" + +RESTRICT="!test? ( test )" + +RDEPEND="alsa? ( media-libs/alsa-lib ) + debug? ( sys-libs/ncurses:0= ) + fluidsynth? ( + media-sound/fluid-soundfont + media-sound/fluidsynth + ) + mt-32? ( media-libs/munt-mt32emu ) + network? ( media-libs/sdl2-net ) + opengl? ( virtual/opengl ) + slirp? ( net-libs/libslirp ) + media-libs/iir1 + media-libs/libpng:0= + media-libs/libsdl2[joystick,opengl?,video,X] + media-libs/opusfile + media-libs/speexdsp + sys-libs/zlib + !games-emulation/dosbox" +DEPEND="${RDEPEND}" +BDEPEND="test? ( dev-cpp/gtest )" + +DOCS=( AUTHORS README THANKS ) + +src_prepare() { + default + + # We do not have default.sf2, use actual name from fluid-soundfont + sed -e "s/default.sf2/FluidR3_GM.sf2/" \ + -i src/midi/midi_fluidsynth.cpp || die + + # Disable license and docs install (handled by ebuild) + sed -e "/licenses_dir\|doc_dir/d" -i meson.build || die +} + +src_configure() { + local emesonargs=( + $(meson_use alsa use_alsa) + $(meson_use debug) + -Ddynamic_core=$(usex dynrec dynrec dyn-x86) + $(meson_use fluidsynth use_fluidsynth) + $(meson_use mt-32 use_mt32emu) + $(meson_use network use_sdl2_net) + $(meson_use opengl use_opengl) + $(meson_use slirp use_slirp) + $(meson_feature test unit_tests) + ) + meson_src_configure +} |