ppsspp: update to 1.20.4.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
--- ppsspp-1.20.4/Core/HW/MediaEngine.cpp.orig 2026-08-09 18:24:38.786651050 +0200
|
||||
+++ ppsspp-1.20.4/Core/HW/MediaEngine.cpp 2026-08-09 18:25:00.738827543 +0200
|
||||
@@ -429,11 +429,12 @@
|
||||
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57, 33, 100)
|
||||
stream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
stream->codecpar->codec_id = AV_CODEC_ID_H264;
|
||||
+#else
|
||||
+ stream->request_probe = 0;
|
||||
#endif
|
||||
#if LIBAVFORMAT_VERSION_MAJOR >= 59
|
||||
avpriv_stream_set_need_parsing(stream, AVSTREAM_PARSE_FULL);
|
||||
#else
|
||||
- stream->request_probe = 0;
|
||||
stream->need_parsing = AVSTREAM_PARSE_FULL;
|
||||
#endif
|
||||
// We could set the width here, but we don't need to.
|
||||
@@ -1,33 +0,0 @@
|
||||
--- a/Core/HW/MediaEngine.cpp 2024-11-04 17:16:10.000000000 +0100
|
||||
+++ - 2024-12-26 20:30:02.355062203 +0100
|
||||
@@ -52,6 +52,11 @@
|
||||
#include "libavutil/imgutils.h"
|
||||
#include "libswscale/swscale.h"
|
||||
|
||||
+#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(59, 23, 100)
|
||||
+ // private libavformat api (see demux.h in ffmpeg src tree)
|
||||
+ void avpriv_stream_set_need_parsing(AVStream *st, enum AVStreamParseType type);
|
||||
+#endif
|
||||
+
|
||||
}
|
||||
#endif // USE_FFMPEG
|
||||
|
||||
@@ -426,12 +426,17 @@ bool MediaEngine::addVideoStream(int streamNum, int streamId) {
|
||||
streamId = PSMF_VIDEO_STREAM_ID | streamNum;
|
||||
|
||||
stream->id = 0x00000100 | streamId;
|
||||
+#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(59, 23, 100)
|
||||
+ avpriv_stream_set_need_parsing(stream, AVSTREAM_PARSE_FULL);
|
||||
+#else
|
||||
+ stream->need_parsing = AVSTREAM_PARSE_FULL;
|
||||
+#endif
|
||||
+
|
||||
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57, 33, 100)
|
||||
stream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
stream->codecpar->codec_id = AV_CODEC_ID_H264;
|
||||
#else
|
||||
stream->request_probe = 0;
|
||||
- stream->need_parsing = AVSTREAM_PARSE_FULL;
|
||||
#endif
|
||||
// We could set the width here, but we don't need to.
|
||||
if (streamNum >= m_expectedVideoStreams) {
|
||||
@@ -1,11 +0,0 @@
|
||||
--- ppsspp-1.17.1/Core/RetroAchievements.cpp 2024-02-04 14:08:02.000000000 +0100
|
||||
+++ - 2024-02-12 00:07:54.268096492 +0100
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "ext/rcheevos/include/rc_hash.h"
|
||||
#include "ext/rcheevos/src/rhash/md5.h"
|
||||
|
||||
-#include "ext/rapidjson/include/rapidjson/document.h"
|
||||
+#include <rapidjson/document.h>
|
||||
|
||||
#include "Common/Log.h"
|
||||
#include "Common/File/Path.h"
|
||||
@@ -1,11 +0,0 @@
|
||||
--- ppsspp-1.19.3/CMakeLists.txt 2025-07-15 12:08:35.000000000 +0200
|
||||
+++ - 2025-12-28 16:46:59.277413410 +0100
|
||||
@@ -2855,7 +2855,7 @@
|
||||
add_test(math_util PPSSPPUnitTest MathUtil)
|
||||
add_test(parsers PPSSPPUnitTest Parsers)
|
||||
add_test(jit PPSSPPUnitTest Jit)
|
||||
- add_test(matrix_transpose PPSSPPUnitTest MatrixTranspose)
|
||||
+ add_test(matrix_transpose PPSSPPUnitTest VFPUMatrixTranspose)
|
||||
add_test(parse_lbn PPSSPPUnitTest ParseLBN)
|
||||
add_test(quick_texhash PPSSPPUnitTest QuickTexHash)
|
||||
add_test(clz PPSSPPUnitTest CLZ)
|
||||
+8
-22
@@ -2,24 +2,24 @@
|
||||
# !! any change to ffmpeg should be tested with apropiate games,
|
||||
# major ffmpeg updates have a high likelyhood of breaking video playback
|
||||
pkgname=ppsspp
|
||||
version=1.19.3
|
||||
version=1.20.4
|
||||
revision=1
|
||||
build_style=cmake
|
||||
configure_args="-DHEADLESS=1 -DUSE_SYSTEM_FFMPEG=1 -DUNITTEST=ON
|
||||
-DUSING_QT_UI=$(vopt_if qt ON OFF) -DUSE_SYSTEM_ZSTD=ON
|
||||
-DARMIPS_USE_STD_FILESYSTEM=ON"
|
||||
hostmakedepends="pkg-config python3 $(vopt_if qt qt5-host-tools)"
|
||||
-DUSING_QT_UI=OFF -DUSE_SYSTEM_ZSTD=ON
|
||||
-DARMIPS_USE_STD_FILESYSTEM=ON -DUSE_SYSTEM_RAPIDJSON=ON
|
||||
-DUSE_SYSTEM_FREETYPE=ON -DUSE_SYSTEM_SNAPPY=ON -DUSE_SYSTEM_LIBZIP=ON"
|
||||
hostmakedepends="pkg-config python3"
|
||||
makedepends="zlib-devel glew-devel ffmpeg-devel libzip-devel
|
||||
snappy-devel rapidjson libpng-devel libzstd-devel
|
||||
$(vopt_if sdl2 'SDL2_ttf-devel SDL2-devel') wayland-devel
|
||||
$(vopt_if qt 'qt5-devel qt5-multimedia-devel')"
|
||||
SDL2_ttf-devel SDL2-devel wayland-devel"
|
||||
depends="desktop-file-utils"
|
||||
short_desc="Fast and portable PSP emulator"
|
||||
maintainer="John <me@johnnynator.dev>"
|
||||
license="GPL-2.0-or-later"
|
||||
homepage="https://www.ppsspp.org/"
|
||||
distfiles="https://github.com/hrydgard/ppsspp/releases/download/v${version}/ppsspp-${version}.tar.xz"
|
||||
checksum=054401fa7fffbd99b7fd80e98a2951d6f0c3de83cb4b54719899c98bfad99614
|
||||
checksum=4de21db3105d9d81a465a8a7e78c68ee3c0e0bf6597d1c1d530f7555f3ad8b31
|
||||
|
||||
# ppsspp always tries to compile x86 unittest
|
||||
# https://gist.github.com/Johnnynator/e18d59274451cff890b7235009d2e93d
|
||||
@@ -30,9 +30,6 @@ case $XBPS_TARGET_MACHINE in
|
||||
*) configure_args+=" -DUNITTEST=OFF";;
|
||||
esac
|
||||
|
||||
build_options="qt sdl2"
|
||||
build_options_default="sdl2"
|
||||
|
||||
post_patch() {
|
||||
# disable git versioning
|
||||
vsed -e 's|find_package(Git)|# &|' -i git-version.cmake
|
||||
@@ -45,17 +42,6 @@ post_configure() {
|
||||
EOF
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vinstall icons/icon.svg 644 usr/share/pixmaps ppsspp.svg
|
||||
post_install() {
|
||||
vbin build/PPSSPPHeadless ppsspp-headless
|
||||
vmkdir usr/share/ppsspp
|
||||
vcopy build/assets usr/share/ppsspp/
|
||||
|
||||
if [ $build_option_sdl2 ]; then
|
||||
vbin build/PPSSPPSDL
|
||||
vinstall SDL/PPSSPPSDL.desktop 644 usr/share/applications
|
||||
elif [ $build_option_qt ] ;then
|
||||
vbin build/PPSSPPQt
|
||||
vinstall Qt/PPSSPPQt.desktop 644 usr/share/applications
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user