mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
Update done using: ``` git grep -l sys-libs/zlib sys-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g git grep -l virtual/zlib-ng sys-* | xargs sed -i -e s@virtual/zlib-ng@sys-libs/zlib-ng@g git diff --name-only | xargs copybump git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error ``` Plus reverts in sys-libs/minizip-ng, sys-libs/zlib-ng and profiles. Signed-off-by: Michał Górny <mgorny@gentoo.org>
108 lines
2.2 KiB
Bash
108 lines
2.2 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{11..13} )
|
|
|
|
inherit ffmpeg-compat flag-o-matic python-any-r1 xdg cmake
|
|
|
|
DESCRIPTION="A PSP emulator written in C++"
|
|
HOMEPAGE="https://www.ppsspp.org/
|
|
https://github.com/hrydgard/ppsspp/"
|
|
|
|
if [[ "${PV}" == *9999* ]] ; then
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/hrydgard/${PN}.git"
|
|
else
|
|
SRC_URI="https://github.com/hrydgard/${PN}/releases/download/v${PV}/${P}.tar.xz"
|
|
|
|
KEYWORDS="amd64"
|
|
fi
|
|
|
|
LICENSE="Apache-2.0 BSD BSD-2 GPL-2 JSON MIT"
|
|
SLOT="0"
|
|
IUSE="discord qt5 test wayland"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
>=media-libs/sdl2-ttf-2.24.0
|
|
app-arch/snappy:=
|
|
app-arch/zstd:=
|
|
dev-libs/libzip:=
|
|
media-libs/glew:=
|
|
media-libs/libpng:=
|
|
media-libs/libsdl2[joystick]
|
|
media-video/ffmpeg-compat:6=
|
|
virtual/zlib:=
|
|
virtual/opengl
|
|
qt5? (
|
|
dev-qt/qtcore:5
|
|
dev-qt/qtgui:5[-gles2-only]
|
|
dev-qt/qtmultimedia:5[-gles2-only]
|
|
dev-qt/qtopengl:5[-gles2-only]
|
|
dev-qt/qtwidgets:5[-gles2-only]
|
|
)
|
|
!qt5? (
|
|
media-libs/libsdl2[X,opengl,sound,video,wayland?]
|
|
)
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
"
|
|
BDEPEND="
|
|
${PYTHON_DEPS}
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${PN}-1.17.1-SpvBuilder-cstdint.patch"
|
|
"${FILESDIR}/${PN}-1.17.1-cmake-cxx.patch"
|
|
)
|
|
|
|
pkg_setup() {
|
|
python-any-r1_pkg_setup
|
|
}
|
|
|
|
src_prepare() {
|
|
find . -type f \
|
|
\( -iname "*CMakeLists.txt*" -or -iname "*-config.cmake" \) \
|
|
-exec \
|
|
sed -e "/^cmake_minimum_required/I s|(.*)|(VERSION 3.20)|g" -i {} \; \
|
|
|| die
|
|
|
|
cmake_src_prepare
|
|
}
|
|
|
|
src_configure() {
|
|
# bug https://bugs.gentoo.org/926079
|
|
filter-lto
|
|
|
|
local -a mycmakeargs=(
|
|
-DBUILD_SHARED_LIBS="OFF"
|
|
-DCMAKE_SKIP_RPATH="ON"
|
|
-DHEADLESS="OFF"
|
|
-DUSE_CCACHE="OFF"
|
|
-DUSE_SYSTEM_FFMPEG="ON"
|
|
-DUSE_SYSTEM_LIBZIP="ON"
|
|
-DUSE_SYSTEM_SNAPPY="ON"
|
|
-DUSE_SYSTEM_ZSTD="ON"
|
|
-DUSE_DISCORD="$(usex discord)"
|
|
-DUSE_WAYLAND_WSI="$(usex wayland)"
|
|
-DUSING_QT_UI="$(usex qt5)"
|
|
-DUNITTEST="$(usex test)"
|
|
)
|
|
|
|
# TODO: fix with >=ffmpeg-7 then drop compat (bug #948816).
|
|
# Unfortunately not using pkg-config and needs both flags and dir.
|
|
ffmpeg_compat_setup 6
|
|
ffmpeg_compat_add_flags
|
|
mycmakeargs+=( -DFFMPEG_DIR="${SYSROOT}$(ffmpeg_compat_get_prefix 6)" )
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_test() {
|
|
cmake_src_test -E "glslang-testsuite|matrix_transpose"
|
|
}
|