1
0
Fork 0

first commit

This commit is contained in:
root 2024-11-23 01:15:11 +02:00
commit 528f89a79b
90 changed files with 13567 additions and 0 deletions

View file

@ -0,0 +1,2 @@
DIST dosbox-x-v2024.03.01.tar.gz 119593920 BLAKE2B 42c994247e55c1b2d67ed9e1bf90e99ddf9a08476b18ab802757becc0ee6959231d3665e39cfaef02a6b1c234e3faff10597d396d8d30ce01d8123b5107327bc SHA512 0eb835da3fdfd7f1c6160aa1a32a7eff7c38f46184f7cee088e0fb8edf09327f058fd45e7995955a7f335c704ddd69c1627731899a01687563990bb06f4d9cd1
DIST dosbox-x-v2024.07.01.tar.gz 119702042 BLAKE2B 1c046a54b5a94deef6413592c48be08542c6d9c6d5b437880a354eb9df137fafb5da57d5f99e4bdcd83eea99a7a3550117c8ed66adcbca38aea484b116321068 SHA512 e6a0478be160b115ab09ffe13d7574d604fc7778105171da3591bd4239903cb5766118e0b05d158a89344bbbd1383885aa4fd724dce4601595438634724b2f24

View file

@ -0,0 +1,85 @@
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Cross-platform DOS emulation package."
HOMEPAGE="https://dosbox-x.com/"
SRC_URI="https://github.com/joncampbell123/dosbox-x/archive/refs/tags/${PN}-v${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE="X +core-inline debug dynrec ffmpeg +fluidsynth +freetype +fpu hardened midi mt-32 opengl printer +screenshots slirp unaligned +xbrz"
REQUIRED_USE="hardened? ( !dynrec )"
DEPEND="debug? ( sys-libs/ncurses:0= )
ffmpeg? ( media-video/ffmpeg )
freetype? ( media-libs/freetype )
fluidsynth? (
media-sound/fluid-soundfont
media-sound/fluidsynth
)
mt-32? ( media-libs/munt-mt32emu )
screenshots? ( media-libs/libpng:0= )
X? (
x11-libs/libX11
x11-libs/libXext
x11-libs/libXrandr
x11-libs/libxkbfile
)
media-libs/alsa-lib
opengl? ( media-libs/libglvnd[X?] )
media-libs/libsdl2[X?]
media-libs/sdl2-net
net-libs/libpcap
sys-libs/zlib"
RDEPEND="${DEPEND}"
BDEPEND="dev-lang/nasm"
PATCHES=(
"${FILESDIR}/${PN}-fix-rpath.patch"
"${FILESDIR}/${PN}-invert-1624f04.patch"
)
S="${WORKDIR}/${PN}-${PN}-v${PV}"
src_prepare() {
default
eautoreconf
}
src_configure() {
local fpu_arg='--disable-fpu-x86 --disable-fpu-x64'
if use fpu; then
if use x86; then
fpu_arg=--enable-fpu-x86
elif use amd64; then
fpu_arg=--enable-fpu-x64
fi
fi
ac_cv_lib_X11_main=$(usex X yes no) \
econf \
"$(use_enable !hardened dynamic-core)" \
"$(use_enable !hardened dynamic-x86)" \
"$(use_enable X x11)" \
"$(use_enable core-inline)" \
"$(use_enable debug)" \
"$(use_enable dynrec)" \
"$(use_enable ffmpeg avcodec)" \
"$(use_enable fluidsynth libfluidsynth)" \
"$(use_enable fpu "${fpu_arg}")" \
"$(use_enable freetype)" \
"$(use_enable midi alsa-midi)" \
"$(use_enable mt-32 mt32)" \
"$(use_enable opengl)" \
"$(use_enable printer)" \
"$(use_enable screenshots)" \
"$(use_enable slirp libslirp)" \
"$(use_enable unaligned unaligned-memory)" \
"$(use_enable xbrz)" \
--disable-optimize \
--enable-sdl2
}

View file

@ -0,0 +1,85 @@
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Cross-platform DOS emulation package."
HOMEPAGE="https://dosbox-x.com/"
SRC_URI="https://github.com/joncampbell123/dosbox-x/archive/refs/tags/${PN}-v${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE="X +core-inline debug dynrec ffmpeg +fluidsynth +freetype +fpu hardened midi mt-32 opengl printer +screenshots slirp unaligned +xbrz"
REQUIRED_USE="hardened? ( !dynrec )"
DEPEND="debug? ( sys-libs/ncurses:0= )
ffmpeg? ( media-video/ffmpeg )
freetype? ( media-libs/freetype )
fluidsynth? (
media-sound/fluid-soundfont
media-sound/fluidsynth
)
mt-32? ( media-libs/munt-mt32emu )
screenshots? ( media-libs/libpng:0= )
X? (
x11-libs/libX11
x11-libs/libXext
x11-libs/libXrandr
x11-libs/libxkbfile
)
media-libs/alsa-lib
opengl? ( media-libs/libglvnd[X?] )
media-libs/libsdl2[X?]
media-libs/sdl2-net
net-libs/libpcap
sys-libs/zlib"
RDEPEND="${DEPEND}"
BDEPEND="dev-lang/nasm"
PATCHES=(
"${FILESDIR}/${PN}-fix-rpath.patch"
"${FILESDIR}/${PN}-invert-1624f04.patch"
)
S="${WORKDIR}/${PN}-${PN}-v${PV}"
src_prepare() {
default
eautoreconf
}
src_configure() {
local fpu_arg='--disable-fpu-x86 --disable-fpu-x64'
if use fpu; then
if use x86; then
fpu_arg=--enable-fpu-x86
elif use amd64; then
fpu_arg=--enable-fpu-x64
fi
fi
ac_cv_lib_X11_main=$(usex X yes no) \
econf \
"$(use_enable !hardened dynamic-core)" \
"$(use_enable !hardened dynamic-x86)" \
"$(use_enable X x11)" \
"$(use_enable core-inline)" \
"$(use_enable debug)" \
"$(use_enable dynrec)" \
"$(use_enable ffmpeg avcodec)" \
"$(use_enable fluidsynth libfluidsynth)" \
"$(use_enable fpu "${fpu_arg}")" \
"$(use_enable freetype)" \
"$(use_enable midi alsa-midi)" \
"$(use_enable mt-32 mt32)" \
"$(use_enable opengl)" \
"$(use_enable printer)" \
"$(use_enable screenshots)" \
"$(use_enable slirp libslirp)" \
"$(use_enable unaligned unaligned-memory)" \
"$(use_enable xbrz)" \
--disable-optimize \
--enable-sdl2
}

View file

@ -0,0 +1,12 @@
diff --git a/configure.ac b/configure.ac
index 8e98dc4e9..a21cb36f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -422,6 +422,7 @@ if test -n "$SDL2_LIBS"; then
CPPFLAGS="$CPPFLAGS $SDL2_CFLAGS"
else
if test -n "$SDL_LIBS"; then
+ SDL_LIBS="$(echo "$SDL_LIBS" | sed -e 's/-Wl,-rpath,[[^ ]]\+ //')"
LIBS="$LIBS $SDL_LIBS"
CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
else

View file

@ -0,0 +1,30 @@
--- b/src/output/output_opengl.cpp
+++ a/src/output/output_opengl.cpp
@@ -199,11 +199,7 @@
#if DOSBOXMENU_TYPE == DOSBOXMENU_SDLDRAW
/* scale the menu bar if the window is large enough */
+ {
- /* SDL drawn menus cannot coexist with 3Dfx emulation. In fact, there is a serious
- * bug in SDL1 builds that rapidly expands the vertical size of the menu every frame. */
- if (Voodoo_OGL_GetWidth() != 0 && Voodoo_OGL_GetHeight() != 0 && Voodoo_OGL_Active() && sdl.desktop.prevent_fullscreen) {
- }
- else {
int cw = fixedWidth, ch = fixedHeight;
int scale = 1;
@@ -259,12 +255,8 @@
#if DOSBOXMENU_TYPE == DOSBOXMENU_SDLDRAW
if (mainMenu.isVisible() && !sdl.desktop.fullscreen)
{
+ windowHeight += mainMenu.menuBox.h;
+ sdl.clip.y += mainMenu.menuBox.h;
- if (Voodoo_OGL_GetWidth() != 0 && Voodoo_OGL_GetHeight() != 0 && Voodoo_OGL_Active() && sdl.desktop.prevent_fullscreen) {
- }
- else {
- windowHeight += mainMenu.menuBox.h;
- sdl.clip.y += mainMenu.menuBox.h;
- }
}
#endif

View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>audvare@gmail.com</email>
<name>Andrew Udvare</name>
</maintainer>
<upstream>
<remote-id type="github">joncampbell123/dosbox-x</remote-id>
</upstream>
<use>
<flag name="core-inline">Enable memory-increasing inlines for better performance but requiring more build time</flag>
<flag name="dynrec">Use recompiling cpu core instead of dynamic x86/x64 specific cpu core</flag>
<flag name="fluidsynth">Use media-sound/fluidsynth for MIDI emulation</flag>
<flag name="fpu">Enable FPU emulation</flag>
<flag name="freetype">Enable FreeType support</flag>
<flag name="midi">Enable MIDI support (with ALSA)</flag>
<flag name="mt-32">Use media-libs/munt-mt32emu for MT-32 emulation</flag>
<flag name="printer">Enable printer emulation</flag>
<flag name="screenshots">Screenshots and movie recording</flag>
<flag name="slirp">Enable libslirp support</flag>
<flag name="unaligned">Enable unaligned memory access</flag>
<flag name="xbrz">Enable support for xBRZ pixel scaler</flag>
</use>
</pkgmetadata>