1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools desktop flag-o-matic
11 ESVN_REPO_URI="https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk"
16 MY_P=${PN}-code-${MY_PV}-${PN}-trunk
17 SRC_URI="https://sourceforge.net/code-snapshots/svn/d/do/dosbox/code-0/${MY_P}.zip"
18 BDEPEND="app-arch/unzip"
23 SRC_URI="mirror://sourceforge/dosbox/${MY_P}.tar.gz"
27 DESCRIPTION="DOS emulator"
28 HOMEPAGE="https://www.dosbox.com/"
31 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
32 IUSE="alsa +core-inline debug hardened opengl X"
34 RDEPEND="alsa? ( media-libs/alsa-lib )
35 opengl? ( virtual/glu virtual/opengl )
36 debug? ( sys-libs/ncurses:0= )
37 X? ( x11-libs/libX11 )
39 media-libs/libsdl[joystick,opengl?,video,X?]
46 S="${WORKDIR}/${MY_P}"
49 "${FILESDIR}"/${PN}-0.74-ncurses.patch
58 ac_cv_lib_X11_main=$(usex X yes no) \
60 $(use_enable alsa alsa-midi) \
61 $(use_enable core-inline) \
62 $(use_enable !hardened dynamic-core) \
63 $(use_enable !hardened dynamic-x86) \
70 make_desktop_entry dosbox DOSBox /usr/share/pixmaps/dosbox.ico