diff options
author | 2020-12-04 15:29:49 +0100 | |
---|---|---|
committer | 2020-12-04 15:30:06 +0100 | |
commit | 55f43470369cb639b280de81d56b9e4b00d3bd0a (patch) | |
tree | ef86f7403031e6b438b720aebe7a1164ae11593d /games-emulation/dosbox-staging/dosbox-staging-0.76.0.ebuild | |
parent | gnome-base/dconf: Add ~riscv keyword (diff) | |
download | gentoo-55f43470369cb639b280de81d56b9e4b00d3bd0a.tar.gz gentoo-55f43470369cb639b280de81d56b9e4b00d3bd0a.tar.bz2 gentoo-55f43470369cb639b280de81d56b9e4b00d3bd0a.zip |
games-emulation/dosbox-staging: 0.76.0 bump
Add support for fluidsynth MIDI with USE flag
Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'games-emulation/dosbox-staging/dosbox-staging-0.76.0.ebuild')
-rw-r--r-- | games-emulation/dosbox-staging/dosbox-staging-0.76.0.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/games-emulation/dosbox-staging/dosbox-staging-0.76.0.ebuild b/games-emulation/dosbox-staging/dosbox-staging-0.76.0.ebuild new file mode 100644 index 000000000000..7e127ad865ea --- /dev/null +++ b/games-emulation/dosbox-staging/dosbox-staging-0.76.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools desktop flag-o-matic 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 ~x86" +IUSE="+alsa debug dynrec +fluidsynth network opengl opus" + +RDEPEND="alsa? ( media-libs/alsa-lib ) + debug? ( sys-libs/ncurses:0= ) + fluidsynth? ( + media-sound/fluid-soundfont + media-sound/fluidsynth + ) + network? ( media-libs/sdl2-net ) + opengl? ( virtual/opengl ) + opus? ( media-libs/opusfile ) + media-libs/libpng:0= + media-libs/libsdl2[joystick,opengl?,video,X] + sys-libs/zlib + !games-emulation/dosbox" +DEPEND="${RDEPEND}" +BDEPEND="" + +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 + + eautoreconf +} + +src_configure() { + use debug || append-cppflags -DNDEBUG + econf \ + $(use_enable alsa alsa-midi) \ + $(use_enable debug) \ + $(use_enable !dynrec dynamic-x86) \ + $(use_enable dynrec) \ + $(use_enable fluidsynth) \ + $(use_enable network) \ + $(use_enable opengl) \ + $(use_enable opus opus-cdda) +} + +src_install() { + default + doicon -s scalable contrib/icons/${PN}.svg + domenu contrib/linux/dosbox-staging.desktop +} |