public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: games-emulation/RetroArch/
Date: Thu, 27 Feb 2025 11:53:00 +0000 (UTC)	[thread overview]
Message-ID: <1740582711.2ebdb2812dcef0f40ec8f019024ad31cd065b525.davidroman@gentoo> (raw)

commit:     2ebdb2812dcef0f40ec8f019024ad31cd065b525
Author:     Stefan Cristian B. <stefan.cristian+git <AT> rogentos <DOT> ro>
AuthorDate: Wed Feb 26 15:11:40 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Feb 26 15:11:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2ebdb281

games-emulation/RetroArch: stable version bump 1.20.0

* Fixed some dependencies
* Added pipewire USE support + deps

Signed-off-by: Stefan Cristian B. <stefan.cristian+git <AT> rogentos.ro>

 games-emulation/RetroArch/Manifest                |   1 +
 games-emulation/RetroArch/RetroArch-1.20.0.ebuild | 189 ++++++++++++++++++++++
 2 files changed, 190 insertions(+)

diff --git a/games-emulation/RetroArch/Manifest b/games-emulation/RetroArch/Manifest
index 685f94c5d..d2aa3f94d 100644
--- a/games-emulation/RetroArch/Manifest
+++ b/games-emulation/RetroArch/Manifest
@@ -1 +1,2 @@
 DIST RetroArch-1.19.1.tar.gz 63298569 BLAKE2B 66acbd32117704f543d3dfe94906d89b4500d51b56f57d1d236ce65e4e78c0c17a830b7c1dd4683f940423cfa88c65956a57bd5fa47591713a5c4d987c928161 SHA512 35e44ffc776cbc7f58fa76c686d3c3693d125fccf482c8f3b66378058b8400ada37ebf2549e9bd362e46c3bfb586971a217cc3142dcf7a7468c95ec78638ee23
+DIST RetroArch-1.20.0.tar.gz 65438985 BLAKE2B 15dddec3057db2c710e08d4892ea8088f1ee53fe17b2125f6c9528dd80d6a852a140e06eeb3b6f1ddd4ef86da84798235394fcfc5157e998185b584ffb77f603 SHA512 9d286ab6c4bfa479aa792f3c970c5c0ea598a78f027ad78c4272524dd4217322f78454e40ec326a857339a2fe1152c8fa9713a1a936818c0915c6dcb3b2f0a25

diff --git a/games-emulation/RetroArch/RetroArch-1.20.0.ebuild b/games-emulation/RetroArch/RetroArch-1.20.0.ebuild
new file mode 100644
index 000000000..bcb6004ab
--- /dev/null
+++ b/games-emulation/RetroArch/RetroArch-1.20.0.ebuild
@@ -0,0 +1,189 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs xdg
+
+DESCRIPTION="RetroArch is a frontend for emulators, game engines and media players"
+HOMEPAGE="https://www.retroarch.com"
+
+SRC_URI="https://github.com/libretro/RetroArch/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="7zip alsa cg cpu_flags_arm_neon cpu_flags_arm_vfp cpu_flags_x86_sse2 cheevos debug dispmanx +egl filters ffmpeg gles2 gles3 hid jack kms libass libusb materialui network openal +opengl osmesa oss +ozone pipewire pulseaudio +rgui sdl +truetype +threads udev v4l2 videocore vulkan wayland X xinerama xmb xv zlib"
+
+REQUIRED_USE="
+	|| ( opengl sdl vulkan dispmanx )
+	|| ( materialui ozone rgui xmb )
+	alsa? ( threads )
+	arm? ( gles2? ( egl ) )
+	!arm? (
+		egl? ( opengl )
+		gles2? ( opengl )
+	)
+	cg? ( opengl )
+	dispmanx? ( videocore arm )
+	gles2? ( !cg )
+	gles3? ( gles2 )
+	kms? ( egl )
+	libass? ( ffmpeg )
+	libusb? ( hid )
+	videocore? ( arm )
+	vulkan? ( amd64 )
+	wayland? ( egl )
+	xinerama? ( X )
+	xv? ( X )
+"
+RDEPEND="
+	app-arch/xz-utils
+	x11-libs/libxkbcommon
+	x11-libs/libXScrnSaver
+	alsa? ( media-libs/alsa-lib )
+	cg? ( media-gfx/nvidia-cg-toolkit:0= )
+	arm? ( dispmanx? ( || ( media-libs/raspberrypi-userland:0 media-libs/raspberrypi-userland-bin:0 ) ) )
+	ffmpeg? ( >=media-video/ffmpeg-2.1.3:0= )
+	jack? ( virtual/jack:= )
+	libass? ( media-libs/libass:0= )
+	libusb? ( virtual/libusb:1= )
+	openal? ( media-libs/openal )
+	opengl? ( media-libs/libglvnd )
+	osmesa? ( media-libs/mesa:0=[osmesa?] )
+	pulseaudio? ( media-libs/libpulse )
+	pipewire? ( media-video/pipewire:= )
+	sdl? ( media-libs/libsdl2[joystick] )
+	truetype? (
+		media-libs/fontconfig
+		media-libs/freetype:2
+	)
+	udev? ( virtual/udev
+		X? ( x11-drivers/xf86-input-evdev:0= )
+	)
+	v4l2? ( media-libs/libv4l:0= )
+	wayland? (
+		dev-libs/wayland
+		dev-libs/wayland-protocols
+	)
+	X? (
+		x11-libs/libX11
+		x11-libs/libXext
+		x11-libs/libXrandr
+		x11-libs/libXxf86vm
+		x11-libs/libxcb:=
+	)
+	xinerama? ( x11-libs/libXinerama:0= )
+	xv? ( x11-libs/libXv )
+	zlib? ( sys-libs/zlib:0= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	virtual/pkgconfig
+	wayland? ( dev-util/wayland-scanner )
+"
+
+src_configure() {
+	if use cg; then
+		append-ldflags -L"${EPREFIX}/"opt/nvidia-cg-toolkit/$(get_libdir)
+		append-cflags  -I"${EPREFIX}/"opt/nvidia-cg-toolkit/include
+	fi
+
+	# Absolute path of the directory containing Retroarch shared libraries.
+	export RETROARCH_LIB_DIR="${EPREFIX}/usr/$(get_libdir)/retroarch"
+
+	if use filters; then
+		# Replace stock defaults with Gentoo-specific defaults.
+		sed -i retroarch.cfg \
+			-e 's:# \(video_filter_dir =\):\1 "/'${RETROARCH_LIB_DIR}'/filters/video/":' \
+			-e 's:# \(audio_filter_dir =\):\1 "/'${RETROARCH_LIB_DIR}'/filters/audio/":' \
+			|| die '"sed" failed.'
+	fi
+
+	# Note that OpenVG support is hard-disabled. (See ${RDEPEND} above.)
+	CC="$(tc-getCC)" CXX="$(tc-getCXX)" ./configure \
+		--prefix="${EPREFIX}/usr" \
+		--docdir="${EPREFIX}/usr/share/doc/${PF}" \
+		--enable-dynamic \
+		--disable-builtinzlib \
+		--disable-qt \
+		--disable-sdl \
+		--disable-vg \
+		$(use_enable 7zip) \
+		$(use_enable alsa) \
+		$(use_enable cheevos) \
+		$(use_enable cg) \
+		$(use_enable cpu_flags_arm_neon neon) \
+		$(use_enable cpu_flags_arm_vfp floathard) \
+		$(use_enable cpu_flags_x86_sse2 sse) \
+		$(use_enable dispmanx) \
+		$(use_enable egl) \
+		$(use_enable ffmpeg) \
+		$(use_enable gles2 opengles) \
+		$(use_enable gles3 opengles3) \
+		$(use_enable hid) \
+		$(use_enable jack) \
+		$(use_enable kms) \
+		$(use_enable libass ssa) \
+		$(use_enable libusb) \
+		$(use_enable materialui) \
+		$(use_enable network networking) \
+		$(use_enable openal al) \
+		$(use_enable opengl) \
+		$(use_enable osmesa) \
+		$(use_enable oss) \
+		$(use_enable ozone) \
+		$(use_enable pulseaudio pulse) \
+		$(use_enable rgui) \
+		$(use_enable sdl sdl2) \
+		$(use_enable threads) \
+		$(use_enable truetype freetype) \
+		$(use_enable udev) \
+		$(use_enable v4l2) \
+		$(use_enable videocore) \
+		$(use_enable vulkan) \
+		$(use_enable wayland) \
+		$(use_enable X x11) \
+		$(use_enable xinerama) \
+		$(use_enable xmb) \
+		$(use_enable xv xvideo) \
+		$(use_enable zlib) \
+		|| die
+}
+
+src_compile() {
+	emake V=1 $(usex debug "DEBUG=1" "")
+	if use filters; then
+		emake CC="$(tc-getCC)" $(usex debug "build=debug" "build=release") -C gfx/video_filters/
+		emake CC="$(tc-getCC)" $(usex debug "build=debug" "build=release") -C libretro-common/audio/dsp_filters/
+	fi
+}
+
+src_install() {
+	# Install core files and directories.
+	emake DESTDIR="${D}" install
+
+	# Install documentation.
+	dodoc README.md
+
+	if use filters; then
+		# Install video filters.
+		insinto ${RETROARCH_LIB_DIR}/filters/video/
+		doins "${S}"/gfx/video_filters/*.so
+		doins "${S}"/gfx/video_filters/*.filt
+
+		# Install audio filters.
+		insinto ${RETROARCH_LIB_DIR}/filters/audio/
+		doins "${S}"/libretro-common/audio/dsp_filters/*.dsp
+	fi
+}
+
+pkg_postinst() {
+	if use oss; then
+		ewarn ""
+		ewarn "OSS support is enabled, however it is not installed as a dependency."
+		ewarn "Make sure you have OSS installed in your system."
+		ewarn ""
+	fi
+}


             reply	other threads:[~2025-02-27 11:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-27 11:53 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-27 11:53 [gentoo-commits] repo/proj/guru:master commit in: games-emulation/RetroArch/ David Roman
2025-02-27 11:53 David Roman
2025-02-27 11:53 David Roman
2024-09-21  8:47 David Roman
2024-09-21  8:47 David Roman
2024-09-14  0:43 David Roman
2024-01-15 15:46 David Roman
2024-01-15 15:46 David Roman
2023-06-17  7:03 Viorel Munteanu
2023-06-17  7:03 Viorel Munteanu
2023-06-15  9:33 Florian Schmaus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1740582711.2ebdb2812dcef0f40ec8f019024ad31cd065b525.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox