From 2000caed600d4b2cd8a2155e26addedad3ee4b7e Mon Sep 17 00:00:00 2001 From: panchenbo Date: Mon, 24 Apr 2023 11:14:01 +0800 Subject: [PATCH] add loongarch64 and sw_64 support (cherry picked from commit baa2678aef208977ce1a4360ed678fb2c7dc608c) --- SDL2.spec | 12 +++++++++++- SDL_config.h | 5 +++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/SDL2.spec b/SDL2.spec index b388f08..c4bf580 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -1,6 +1,6 @@ Name: SDL2 Version: 2.0.12 -Release: 5 +Release: 7 Summary: Cross-platform multimedia library License: zlib and MIT URL: http://www.libsdl.org/ @@ -19,7 +19,11 @@ BuildRequires: mesa-libGLU-devel mesa-libEGL-devel libglvnd-devel BuildRequires: libXext-devel libX11-devel libXi-devel libXrandr-devel BuildRequires: libXrender-devel libXScrnSaver-devel libusb-devel BuildRequires: libXinerama-devel libXcursor-devel systemd-devel +%ifarch loongarch64 +BuildRequires: pkgconfig(libpulse-simple) +%else BuildRequires: pkgconfig(libpulse-simple) pkgconfig(jack) +%endif BuildRequires: pkgconfig(dbus-1) pkgconfig(ibus-1.0) BuildRequires: pkgconfig(wayland-client) pkgconfig(wayland-egl) BuildRequires: pkgconfig(wayland-cursor) pkgconfig(wayland-protocols) @@ -94,6 +98,12 @@ rm -vf %{buildroot}%{_libdir}/*.la %{_libdir}/lib*.a %changelog +* Mon Apr 24 2023 panchenbo - 2.0.12-7 +- add sw_64 support + +* Thu Mar 02 2023 Wenlong Zhang - 2.0.12-6 +- add loongarch support + * Tue Jan 10 2023 jiangpeng - 2.0.12-5 - fix CVE-2022-4743 diff --git a/SDL_config.h b/SDL_config.h index 7862549..70a0600 100644 --- a/SDL_config.h +++ b/SDL_config.h @@ -60,6 +60,8 @@ #include "SDL_config-arm.h" #elif defined(__alpha__) #include "SDL_config-alpha.h" +#elif defined(__sw_64__) +#include "SDL_config-sw_64.h" #elif defined(__sparc__) && defined (__arch64__) #include "SDL_config-sparc64.h" #elif defined(__sparc__) @@ -76,6 +78,9 @@ #include "SDL_config-mips.h" #elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64 #include "SDL_config-riscv64.h" +#elif defined(__loongarch64) +#include "SDL_config-loongarch64.h" + #else #error "The SDL2-devel package is not usable with the architecture." #endif -- Gitee