mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-emulation/mame: 0.289 + SDL 3 + ASIO dependency
Closes: https://bugs.gentoo.org/980082 Signed-off-by: Sebastian Pipping <sping@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST mame-0.288.gh.tar.gz 212563943 BLAKE2B ef7a4d25c5da0a48f155add7d7118bc20fac090dc7a293c70ff781f5f009b2798aaff0782fb2225918aff45a645591835be66291b609c718a530c212c3468e10 SHA512 1241c413eaf7cb1c7336bedfafb8a4b269214e32dba00e9bdf5dc61bb47be3b966f3c656d8efe6b99c2d2ef81e4ae94965d2b59c5d75da1b0d97f36342baec2f
|
||||
DIST mame-0.289.gh.tar.gz 213237316 BLAKE2B 67f9eebac4692c088149e996c2d453c123357c8fd4b521c766fc5de776c08b37d7ff019bc84b6bdc9c2d29dd2623e2624a2b2d742e6f77d4ebe42cc6b20808c3 SHA512 d113b8a9b00bd00744e254f57d6d255ea085e46e6067ca83520556cc1b691f9be0ed5a2cbe91915c7167e49b0319127cfc626edcc9290b1d0aca54225f6e5a4e
|
||||
|
||||
100
games-emulation/mame/mame-0.289.ebuild
Normal file
100
games-emulation/mame/mame-0.289.ebuild
Normal file
@@ -0,0 +1,100 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
|
||||
inherit toolchain-funcs python-any-r1
|
||||
|
||||
MY_P=${PN}${PV/./}
|
||||
DESCRIPTION="Multiple Arcade Machine Emulator"
|
||||
HOMEPAGE="https://github.com/mamedev/mame"
|
||||
SRC_URI="https://github.com/mamedev/mame/archive/refs/tags/${MY_P}.tar.gz -> ${P}.gh.tar.gz"
|
||||
S="${WORKDIR}"/${PN}-${MY_P}
|
||||
|
||||
LICENSE="BSD BSD-2 CC0-1.0 GPL-2+ LGPL-2.1+ MIT public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/zstd
|
||||
dev-libs/expat
|
||||
dev-libs/libutf8proc:=
|
||||
dev-libs/pugixml
|
||||
dev-qt/qtbase:6=
|
||||
media-libs/flac:=
|
||||
media-libs/fontconfig
|
||||
media-libs/libglvnd
|
||||
media-libs/libjpeg-turbo:=
|
||||
media-libs/libpulse
|
||||
media-libs/libsdl3
|
||||
media-libs/portaudio
|
||||
media-libs/portmidi
|
||||
media-libs/sdl3-ttf
|
||||
media-video/pipewire
|
||||
sys-devel/gcc:*[cxx]
|
||||
virtual/zlib:=
|
||||
x11-libs/libX11
|
||||
x11-libs/libXi
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
dev-cpp/asio
|
||||
"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm -R 3rdparty/{asio,expat,flac,glm,libjpeg,portaudio,portmidi,pugixml,rapidjson,utf8proc,zlib,zstd}/ || die
|
||||
rm docs/man/ldplayer.1 # so that we can glob-install later
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
args=(
|
||||
ARCH= # to fix GENie compilation
|
||||
|
||||
OSD=sdl3
|
||||
|
||||
OVERRIDE_AR="$(tc-getAR)"
|
||||
OVERRIDE_CC="$(tc-getCC)"
|
||||
OVERRIDE_CXX="$(tc-getCXX)"
|
||||
OVERRIDE_LD="$(tc-getLD)"
|
||||
|
||||
PYTHON_EXECUTABLE=python3
|
||||
|
||||
TOOLS=1
|
||||
|
||||
USE_SYSTEM_LIB_ASIO=1
|
||||
USE_SYSTEM_LIB_EXPAT=1
|
||||
USE_SYSTEM_LIB_FLAC=1
|
||||
USE_SYSTEM_LIB_GLM=1
|
||||
USE_SYSTEM_LIB_JPEG=1
|
||||
USE_SYSTEM_LIB_LUA=0 # to fix sol2 compilation
|
||||
USE_SYSTEM_LIB_PORTAUDIO=1
|
||||
USE_SYSTEM_LIB_PORTMIDI=1
|
||||
USE_SYSTEM_LIB_PUGIXML=1
|
||||
USE_SYSTEM_LIB_RAPIDJSON=1
|
||||
USE_SYSTEM_LIB_SQLITE3=0 # to fix mame compilation
|
||||
USE_SYSTEM_LIB_UTF8PROC=1
|
||||
USE_SYSTEM_LIB_ZLIB=1
|
||||
USE_SYSTEM_LIB_ZSTD=1
|
||||
|
||||
VERBOSE=1
|
||||
)
|
||||
emake "${args[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/games/mame/
|
||||
doins -r artwork/ bgfx/ ctrlr/ hash/ keymaps/ language/ plugins/ samples/
|
||||
|
||||
insinto /usr/share/games/mame/fonts
|
||||
doins uismall.bdf
|
||||
|
||||
doman docs/man/*.{1,6}
|
||||
|
||||
dobin mame castool chdman floptool imgtool jedutil ldresample ldverify nltool nlwav romcmp unidasm
|
||||
}
|
||||
Reference in New Issue
Block a user