SHA256
1
0
forked from jengelh/SDL2

osc copypac from project:games package:SDL2 revision:144

OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=146
This commit is contained in:
Jan Engelhardt 2023-01-03 22:39:59 +00:00 committed by Git OBS Bridge
parent cab0c68a4e
commit e2cabecae0
2 changed files with 5 additions and 16 deletions

View File

@ -1,10 +1,3 @@
-------------------------------------------------------------------
Fri Dec 2 23:51:23 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Enable libsamplerate and libdecor components
- Remove unused tslib build requirement
- Link rather than dlopen libraries
-------------------------------------------------------------------
Thu Dec 1 20:38:41 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -33,7 +33,6 @@ Source4: baselibs.conf
Patch1: sdl2-symvers.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libdecor-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(alsa) >= 1.0.11
BuildRequires: pkgconfig(dbus-1)
@ -51,10 +50,9 @@ BuildRequires: pkgconfig(ice)
# KMS/DRM driver needs libdrm and libgbm
BuildRequires: pkgconfig(gbm) >= 11.1.0
BuildRequires: pkgconfig(libdrm) >= 2.4.82
BuildRequires: pkgconfig(libpipewire-0.3)
BuildRequires: pkgconfig(libpulse-simple) >= 0.9
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(tslib)
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(wayland-client) >= 1.18
BuildRequires: pkgconfig(wayland-cursor)
@ -86,6 +84,9 @@ This is the "Simple DirectMedia Layer" library. It provides a generic
API for access to audio, keyboard, mouse, and display framebuffer
across multiple platforms.
SDL2 uses dlopen, so if you experience problems under X11, check
again that libXrandr2 and libXi6 are in fact installed.
%package devel
Summary: SDL2 Library Developer Files
Group: Development/Libraries/X11
@ -112,7 +113,6 @@ perl -i -pe 's{\r\n}{\n}g' *.txt README.md
%build
%global _lto_cflags %_lto_cflags -ffat-lto-objects
# In this instance, we do want --with-pic because of libSDL2main.a.
# --disable-*-shared -> controls dlopen rather than sharedness
%configure --with-pic --disable-alsa-shared --disable-video-directfb \
--enable-video-kmsdrm --enable-video-wayland \
%if 0%{?sle_version}
@ -121,11 +121,7 @@ perl -i -pe 's{\r\n}{\n}g' *.txt README.md
%ifarch ix86
--enable-sse2=no \
%endif
--enable-sse3=no --disable-rpath --disable-3dnow \
--disable-alsa-shared --disable-pipewire-shared \
--disable-pulseaudio-shared --disable-libsamplerate-shared \
--disable-wayland-shared --disable-libdecor-shared \
--disable-x11-shared --disable-kmsdrm-shared
--enable-sse3=no --disable-rpath --disable-3dnow
%make_build
%install