summaryrefslogtreecommitdiff
path: root/games-emulation/mupen64plus-video-glide64mk2
diff options
context:
space:
mode:
Diffstat (limited to 'games-emulation/mupen64plus-video-glide64mk2')
-rw-r--r--games-emulation/mupen64plus-video-glide64mk2/Manifest2
-rw-r--r--games-emulation/mupen64plus-video-glide64mk2/mupen64plus-video-glide64mk2-2.6.0.ebuild95
2 files changed, 97 insertions, 0 deletions
diff --git a/games-emulation/mupen64plus-video-glide64mk2/Manifest b/games-emulation/mupen64plus-video-glide64mk2/Manifest
index 66327bcd4563..839f01f4d2e6 100644
--- a/games-emulation/mupen64plus-video-glide64mk2/Manifest
+++ b/games-emulation/mupen64plus-video-glide64mk2/Manifest
@@ -1,4 +1,6 @@
DIST mupen64plus-video-glide64mk2-2.5.9-boost-1.85.patch 11979 BLAKE2B 5c8b8c839547f5e141a2a2def5b0afc3c69aba84cc7cf65cb447ccc29f91e6e02aa7fb2d30f635f8f7e36e21e4b8cbeffac2301aceb021b09064631dd42b94bd SHA512 239120ce13343bb4d0fe8031db893b873fccebfe60926a41b2d5af94b376ba4ef79292c645d14eba50ef433e33d4fea538a46ded6ef3c2c2017c4efe83d55fa6
DIST mupen64plus-video-glide64mk2-src-2.5.9.tar.gz 498350 BLAKE2B 8378cfc9fe624b3441e290d44d600e30a85393aca5a5a5867fb778a665ea0718ae15ba67ce5b62930cd4feffb7b1ddce88be6434de9791c82a979aa8f022ecd1 SHA512 cc4cce1a1f036cdda0748cf9eb758f21ba08dbe83a2844cf92d3e781102aaa3556934ca01dbae248a2d93c65209932b858988030beaa29395d79df70bf479bd4
+DIST mupen64plus-video-glide64mk2-src-2.6.0.tar.gz 503590 BLAKE2B ec07c4f699aa09a2b104a8aca169c900dc02ab546353d7f0a69e5b6a5af12999c8fd97fe8f6e1d2376e31402352b209a2da905aa54a635a0c728a025270a9d51 SHA512 40bd28e417f55ceefe370db5bb08d84cd588a955def2522a760545fd7e626e5301115b0072e88e5ad2960ede831ae6cb41ece1a65f86e9ce081e6753e60e161e
EBUILD mupen64plus-video-glide64mk2-2.5.9-r2.ebuild 2358 BLAKE2B eb1a2f7614b92159b4d96bc415d8c46f12a82b38fb5fdf568fd237b41dd0f7dd4464e640f03c0f8654a8523ac9f3118abe66ee563a66b4d46c118a50bc1113c9 SHA512 837df8b2e715ac01bc42801448ab3ba77b47d38ec3e42a8e89f83acfdea92cea4f11b39e3b05e58caabec3fc96255f6a96afb7885f601304f66f77952e7cf8c4
+EBUILD mupen64plus-video-glide64mk2-2.6.0.ebuild 2061 BLAKE2B a5ae7c630e04da2577be39307674285500284db2c5ac7d52b89e35c045bcc2c6426b497b4416d65951476a7e29b8dd6272c7403cda71953349d07cbb130e86b3 SHA512 2ddb1b63957ce8a721bf227d4e5a2a3255cfbf89a4daabf5d7d4f16481acbdee68d1ebad6af736ac3b50496f92de2783dc7aafd62a261754b7da78efba1300f0
MISC metadata.xml 464 BLAKE2B a7d00e92b0189adda8e6099554f6ee905fd8908df934fa6c61d59d32db5a414aa2ab466bfcae36e805e06370c6644a25307ceb154b02c3308e92661abd76c631 SHA512 c9dba0b8a42f245269c2e0dc6ff6c5640e3cee9bba19ffd0f2b949625e668fd77963a91a11765e4dc7fb30ca0b819dcf07cfe3d802444e9b89dbd3d19cd975e8
diff --git a/games-emulation/mupen64plus-video-glide64mk2/mupen64plus-video-glide64mk2-2.6.0.ebuild b/games-emulation/mupen64plus-video-glide64mk2/mupen64plus-video-glide64mk2-2.6.0.ebuild
new file mode 100644
index 000000000000..fb1e335c07ec
--- /dev/null
+++ b/games-emulation/mupen64plus-video-glide64mk2/mupen64plus-video-glide64mk2-2.6.0.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_P=${PN}-src-${PV}
+DESCRIPTION="A fork of Mupen64 Nintendo 64 emulator, glide64mk2 video plugin"
+HOMEPAGE="https://www.mupen64plus.org/"
+SRC_URI="
+ https://github.com/mupen64plus/${PN}/releases/download/${PV}/${MY_P}.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+# TODO: 3dfx licenses
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gles2-only hires cpu_flags_x86_sse"
+
+DEPEND="
+ >=games-emulation/mupen64plus-core-2.5:0=[gles2-only=]
+ media-libs/libpng:0=
+ media-libs/libsdl2:0=[video]
+ sys-libs/zlib:0=
+ virtual/opengl:0=
+ gles2-only? ( media-libs/libsdl2:0[gles2] )
+ hires? ( dev-libs/boost:= )
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+
+ # avoid implicitly appending CPU flags
+ sed -i -e 's:-mmmx::g' -e 's:-msse::g' projects/unix/Makefile || die
+}
+
+src_compile() {
+ MAKEARGS=(
+ # Note: please keep this in sync in all of mupen64plus-* packages
+
+ -C projects/unix
+
+ # this basically means: GNU userspace
+ UNAME=Linux
+
+ # verbose output
+ V=1
+
+ CROSS_COMPILE="${CHOST}-"
+ CC="$(tc-getCC)"
+ CXX="$(tc-getCXX)"
+ PKG_CONFIG="$(tc-getPKG_CONFIG)"
+ # usual CFLAGS, CXXFLAGS and LDFLAGS are respected
+ # so we can leave OPTFLAGS empty
+ OPTFLAGS=
+
+ # paths, some of them are used at compile time
+ PREFIX=/usr
+ LIBDIR=/usr/$(get_libdir)
+
+ # disable unwanted magic
+ LDCONFIG=:
+ INSTALL_STRIP_FLAG=
+
+ # Package-specific stuff
+
+ # CROSS_COMPILE causes it to look for ${CHOST}-sdl2-config...
+ SDL_CFLAGS="$($(tc-getPKG_CONFIG) --cflags sdl2)"
+ SDL_LDLIBS="$($(tc-getPKG_CONFIG) --libs sdl2)"
+
+ NOSSE=$(usex cpu_flags_x86_sse 0 1)
+ HIRES=$(usex hires 1 0)
+ USE_FRAMESKIPPER=1
+ USE_GLES=$(usex gles2-only 1 0)
+ # use bundled lib
+ # https://bugs.gentoo.org/654470
+ TXCDXTN=0
+ )
+
+ use amd64 && MAKEARGS+=( HOST_CPU=x86_64 )
+ use x86 && MAKEARGS+=( HOST_CPU=i386 )
+
+ emake "${MAKEARGS[@]}" all
+}
+
+src_install() {
+ emake "${MAKEARGS[@]}" DESTDIR="${D}" install
+ dodoc RELEASE
+}