commit:     8af1dd81ec2759b87884e243c1f51bfcaf5a1f3d
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  4 14:53:24 2025 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Oct  4 14:53:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8af1dd81

app-emulation/86Box: add 5.1

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-emulation/86Box/86Box-5.1.ebuild | 82 ++++++++++++++++++++++++++++++++++++
 app-emulation/86Box/Manifest         |  1 +
 2 files changed, 83 insertions(+)

diff --git a/app-emulation/86Box/86Box-5.1.ebuild 
b/app-emulation/86Box/86Box-5.1.ebuild
new file mode 100644
index 000000000000..ab3b66a0118c
--- /dev/null
+++ b/app-emulation/86Box/86Box-5.1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="Emulator of x86-based machines based on PCem"
+HOMEPAGE="https://github.com/86Box/86Box";
+SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="discord experimental +fluidsynth +munt new-dynarec +openal +qt6 +threads 
vde vnc"
+
+DEPEND="
+       app-emulation/faudio
+       dev-libs/libevdev
+       dev-libs/libserialport
+       media-libs/freetype:2=
+       media-libs/libpng:=
+       media-libs/libsdl2
+       media-libs/libsndfile
+       media-libs/openal
+       media-libs/rtmidi
+       net-libs/libslirp
+       sys-libs/zlib
+       fluidsynth? ( media-sound/fluidsynth:= )
+       munt? ( media-libs/munt-mt32emu )
+       openal? ( media-libs/openal )
+       qt6? (
+               dev-libs/wayland
+               dev-qt/qtbase:6=[gui,network,opengl,widgets]
+               x11-libs/libX11
+               x11-libs/libXi
+               x11-libs/libxkbcommon
+       )
+       vnc? ( net-libs/libvncserver )
+"
+RDEPEND="${DEPEND}
+       qt6? ( dev-qt/qttranslations:6 )
+       vde? ( net-misc/vde )
+"
+BDEPEND="
+       virtual/pkgconfig
+       qt6? ( kde-frameworks/extra-cmake-modules )
+"
+
+src_configure() {
+       # LTO needs to be filtered
+       # See https://bugs.gentoo.org/854507
+       filter-lto
+       append-flags -fno-strict-aliasing
+
+       local mycmakeargs=(
+               -DCPPTHREADS="$(usex threads)"
+               -DDEV_BRANCH="$(usex experimental)"
+               -DDISCORD="$(usex discord)"
+               -DDYNAREC="ON"
+               -DFLUIDSYNTH="$(usex fluidsynth)"
+               -DHAS_VDE="$(usex vde 
"${EPREFIX}/usr/$(get_libdir)/libvdeplug.so" "HAS_VDE-NOTFOUND")"
+               -DMINITRACE="OFF"
+               -DMUNT="$(usex munt)"
+               -DMUNT_EXTERNAL="$(usex munt)"
+               -DNEW_DYNAREC="$(usex new-dynarec)"
+               -DOPENAL="$(usex openal)"
+               -DPREFER_STATIC="OFF"
+               -DQT="$(usex qt6)"
+               -DRELEASE="ON"
+               -DRTMIDI="ON"
+               $(usex qt6 '-DUSE_QT6=ON' '')
+               -DVNC="$(usex vnc)"
+       )
+
+       cmake_src_configure
+}
+
+pkg_postinst() {
+       elog "In order to use 86Box, you will need some roms for various 
emulated systems."
+       elog "See https://github.com/86Box/roms for more information."
+}

diff --git a/app-emulation/86Box/Manifest b/app-emulation/86Box/Manifest
index c60d4fbfff37..e3a7a5963a23 100644
--- a/app-emulation/86Box/Manifest
+++ b/app-emulation/86Box/Manifest
@@ -1,2 +1,3 @@
 DIST 86Box-4.2.1.tar.gz 5320110 BLAKE2B 
cf3379dffcd93f9c317c02b91ba5772a54abcc0e67ca588b22e07d5b221d40db4c0a54dcdd30cd1e2dd46a808393a9e09db917fe9445cbfb56ff9675d4eb35d9
 SHA512 
ed8e90f68318d163c39202479d654859d4d74b6fdffd47cfcba6b0393965265615aa008b02cfd04ac8cafc2f38cead53ed5d6071cabd4b96eba91ec805c5a2df
 DIST 86Box-5.0.tar.gz 13880473 BLAKE2B 
53d6c67eb0750cf3b52f845373317bf42d0c9143f953158025d6ee389778871581abd3bfe3e3fb0e418f56a5b7e7e4ad8ed261dce0b8b3d53060ef4450c6324f
 SHA512 
e2ce22b856e995d3248a10e304ae091162747d79be821d9b74c7bd2b1f8a03061b07ff29dfa026650f28129538917b7548721e110a9a2fe387915c79684340cc
+DIST 86Box-5.1.tar.gz 13904013 BLAKE2B 
ef703622b18b465d66586a7f684a3a0f38d40e5179cd14b9bf8f2d39bafc36a8145e84bd6306b08eecdca03603ee2bc4d356f0bf501668667e496650949c5dd9
 SHA512 
5c68a21621da58a37a5e9f8199b2cabf0b3483303a44a53221c746f76a80d248d26b56499b771bd18670a16c3942ed6f3f92db95211a37677bda19becb75f70b

Reply via email to