Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37403784
en ru br
Репозитории ALT

Группа :: Эмуляторы
Пакет: ppsspp

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: ppsspp
Version: 1.16.3
Release: alt1

Summary: PlayStation Portable Emulator
License: GPL-2.0-or-later
Group: Emulators

Url: https://www.%name.org
Packager: Nazarov Denis <nenderus at altlinux.org>

ExcludeArch: ppc64le

# Source-url: https://github.com/hrydgard/%name/releases/download/v%version/%name-%version.tar.xz

Source: %name-%version.tar

Patch0: %name-alt-ffmpeg.patch
Patch1: %name-alt-git.patch

Requires: %name-common = %EVR

BuildRequires(pre): bzlib-devel
BuildRequires(pre): fontconfig-devel
BuildRequires(pre): libexpat-devel
BuildRequires(pre): libffi-devel
BuildRequires(pre): libpcre2-devel
BuildRequires(pre): libpng-devel
BuildRequires(pre): libbrotli-devel
BuildRequires(pre): zlib-devel

BuildRequires: /proc
BuildRequires: cmake
BuildRequires: libGLEW-devel
BuildRequires: libSDL2_ttf-devel
BuildRequires: libavdevice-devel
BuildRequires: libavfilter-devel
BuildRequires: libminiupnpc-devel
BuildRequires: libpostproc-devel
BuildRequires: libsnappy-devel
BuildRequires: libswresample-devel
BuildRequires: libswscale-devel
BuildRequires: libwayland-cursor-devel
BuildRequires: libwayland-egl-devel
BuildRequires: libwayland-server-devel
BuildRequires: libzip-devel
BuildRequires: libzstd-devel
BuildRequires: qt5-multimedia-devel

%description
PPSSPP is a PSP emulator written in C++, and translates PSP CPU instructions directly into optimized x86, x64 and ARM machine code, using JIT recompilers (dynarecs).

%package common
Summary: PPSSPP assets
Group: Emulators
BuildArch: noarch

%description common
Required assets for PPSSPP GUI and assorted configuration files

%package headless
Summary: PlayStation Portable Emulator (headless)
Group: Emulators
Requires: %name-common = %EVR

%description headless
PPSSPP is a PSP emulator written in C++, and translates PSP CPU instructions directly into optimized x86, x64 and ARM machine code, using JIT recompilers (dynarecs).
This build headless only.

%package qt
Summary: PlayStation Portable Emulator (Qt frontend)
Group: Emulators
Requires: %name-common = %EVR

%description qt
PPSSPP is a PSP emulator written in C++, and translates PSP CPU instructions directly into optimized x86, x64 and ARM machine code, using JIT recompilers (dynarecs).
This build using the Qt frontend.

%prep
%setup

%patch0 -p1
%patch1 -p1

%build

export CPLUS_INCLUDE_PATH=%_includedir/libzip

# Build SDL and headless versions


%define _cmake__builddir %_target_platform

%cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DUSE_SYSTEM_SNAPPY:BOOL=TRUE \
-DUSE_SYSTEM_LIBZIP:BOOL=TRUE \
-DUSE_SYSTEM_FFMPEG:BOOL=TRUE \
-DUSE_SYSTEM_ZSTD:BOOL=TRUE \
-DUSE_SYSTEM_MINIUPNPC:BOOL=TRUE \
-DHEADLESS:BOOL=TRUE \
-DLIBZIP_INCLUDE_DIR=%_includedir \
%ifarch %arm
-DUSING_GLES2:BOOL=TRUE \
%else
-DOpenGL_GL_PREFERENCE:STRING=GLVND \
%endif
-Wno-dev

%cmake_build

# Build Qt version


%define _cmake__builddir %_target_platform-qt

%cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DUSE_SYSTEM_SNAPPY:BOOL=TRUE \
-DUSE_SYSTEM_LIBZIP:BOOL=TRUE \
-DUSE_SYSTEM_FFMPEG:BOOL=TRUE \
-DUSE_SYSTEM_ZSTD:BOOL=TRUE \
-DUSE_SYSTEM_MINIUPNPC:BOOL=TRUE \
-DUSING_QT_UI:BOOL=TRUE \
-DLIBZIP_INCLUDE_DIR=%_includedir \
%ifarch %arm
-DUSING_GLES2:BOOL=TRUE \
%else
-DOpenGL_GL_PREFERENCE:STRING=GLVND \
%endif
-Wno-dev

%cmake_build

%install
%define _cmake__builddir %_target_platform
%cmake_install
%__install -Dp -m0755 %_target_platform/PPSSPPHeadless %buildroot%_bindir/

%define _cmake__builddir %_target_platform-qt
%cmake_install

%files
%_bindir/PPSSPPSDL
%_desktopdir/PPSSPPSDL.desktop

%files common
%doc LICENSE.TXT README.md
%_datadir/%name
%_datadir/mime/packages/%name.xml
%_iconsdir/hicolor/*/apps/%name.png
%_iconsdir/hicolor/scalable/apps/%name.svg

%files headless
%_bindir/PPSSPPHeadless

%files qt
%_bindir/PPSSPPQt
%_desktopdir/PPSSPPQt.desktop

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin