diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2020-08-21 15:17:45 +0200 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2020-08-21 15:19:54 +0200 |
commit | b543b99a457e15cff0389a7954fa9641cb5eac10 (patch) | |
tree | df0fd5f00cab893895838b6891c2013a9cc9466f /games-emulation/dosbox-staging | |
parent | sys-kernel/gentoo-sources: Linux patch 5.7.17 (diff) | |
download | gentoo-b543b99a457e15cff0389a7954fa9641cb5eac10.tar.gz gentoo-b543b99a457e15cff0389a7954fa9641cb5eac10.tar.bz2 gentoo-b543b99a457e15cff0389a7954fa9641cb5eac10.zip |
games-emulation/dosbox-staging: fix sdl2-net dep
Also add a USE-flag for it
Closes: https://bugs.gentoo.org/738360
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'games-emulation/dosbox-staging')
-rw-r--r-- | games-emulation/dosbox-staging/dosbox-staging-0.75.1-r1.ebuild | 50 | ||||
-rw-r--r-- | games-emulation/dosbox-staging/metadata.xml | 1 |
2 files changed, 51 insertions, 0 deletions
diff --git a/games-emulation/dosbox-staging/dosbox-staging-0.75.1-r1.ebuild b/games-emulation/dosbox-staging/dosbox-staging-0.75.1-r1.ebuild new file mode 100644 index 000000000000..dbebde3b22e9 --- /dev/null +++ b/games-emulation/dosbox-staging/dosbox-staging-0.75.1-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools desktop + +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 network opengl opus" + +RDEPEND="alsa? ( media-libs/alsa-lib ) + debug? ( sys-libs/ncurses:0= ) + 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="" + +PATCHES=( "${FILESDIR}"/${P}-pthread.patch ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + $(use_enable alsa alsa-midi) \ + $(use_enable debug) \ + $(use_enable !dynrec dynamic-x86) \ + $(use_enable dynrec) \ + $(use_enable network) \ + $(use_enable opengl) \ + $(use_enable opus opus-cdda) +} + +src_install() { + default + doicon contrib/icons/${PN}.svg + make_desktop_entry dosbox DOSBox-staging ${PN} +} diff --git a/games-emulation/dosbox-staging/metadata.xml b/games-emulation/dosbox-staging/metadata.xml index ea78ea742a79..91406d636bc1 100644 --- a/games-emulation/dosbox-staging/metadata.xml +++ b/games-emulation/dosbox-staging/metadata.xml @@ -7,6 +7,7 @@ </maintainer> <use> <flag name="dynrec">Use recompiling cpu core instead of dynamic x86/x64 specific cpu core</flag> + <flag name="network">Enable networking features (modem, ipx)</flag> <flag name="opus">Support compressed audio tracks (.opus) used with CDROM images</flag> </use> <upstream> |