SHA256
1
0
forked from pool/SDL2

- Enable libsamplerate and libdecor components

- Remove unused tslib build requirement
- Link rather than dlopen libraries

OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=145
This commit is contained in:
Jan Engelhardt 2022-12-02 23:54:25 +00:00 committed by Git OBS Bridge
parent 502f7e56b1
commit cab0c68a4e
2 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
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,6 +33,7 @@ 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)
@ -50,9 +51,10 @@ 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(tslib)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(wayland-client) >= 1.18
BuildRequires: pkgconfig(wayland-cursor)
@ -84,9 +86,6 @@ 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
@ -113,6 +112,7 @@ 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,7 +121,11 @@ perl -i -pe 's{\r\n}{\n}g' *.txt README.md
%ifarch ix86
--enable-sse2=no \
%endif
--enable-sse3=no --disable-rpath --disable-3dnow
--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
%make_build
%install