forked from jengelh/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:
parent
502f7e56b1
commit
cab0c68a4e
@ -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>
|
Thu Dec 1 20:38:41 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
14
SDL2.spec
14
SDL2.spec
@ -33,6 +33,7 @@ Source4: baselibs.conf
|
|||||||
Patch1: sdl2-symvers.patch
|
Patch1: sdl2-symvers.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libdecor-devel
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: pkgconfig(alsa) >= 1.0.11
|
BuildRequires: pkgconfig(alsa) >= 1.0.11
|
||||||
BuildRequires: pkgconfig(dbus-1)
|
BuildRequires: pkgconfig(dbus-1)
|
||||||
@ -50,9 +51,10 @@ BuildRequires: pkgconfig(ice)
|
|||||||
# KMS/DRM driver needs libdrm and libgbm
|
# KMS/DRM driver needs libdrm and libgbm
|
||||||
BuildRequires: pkgconfig(gbm) >= 11.1.0
|
BuildRequires: pkgconfig(gbm) >= 11.1.0
|
||||||
BuildRequires: pkgconfig(libdrm) >= 2.4.82
|
BuildRequires: pkgconfig(libdrm) >= 2.4.82
|
||||||
|
BuildRequires: pkgconfig(libpipewire-0.3)
|
||||||
BuildRequires: pkgconfig(libpulse-simple) >= 0.9
|
BuildRequires: pkgconfig(libpulse-simple) >= 0.9
|
||||||
BuildRequires: pkgconfig(libudev)
|
BuildRequires: pkgconfig(libudev)
|
||||||
BuildRequires: pkgconfig(tslib)
|
BuildRequires: pkgconfig(samplerate)
|
||||||
BuildRequires: pkgconfig(udev)
|
BuildRequires: pkgconfig(udev)
|
||||||
BuildRequires: pkgconfig(wayland-client) >= 1.18
|
BuildRequires: pkgconfig(wayland-client) >= 1.18
|
||||||
BuildRequires: pkgconfig(wayland-cursor)
|
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
|
API for access to audio, keyboard, mouse, and display framebuffer
|
||||||
across multiple platforms.
|
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
|
%package devel
|
||||||
Summary: SDL2 Library Developer Files
|
Summary: SDL2 Library Developer Files
|
||||||
Group: Development/Libraries/X11
|
Group: Development/Libraries/X11
|
||||||
@ -113,6 +112,7 @@ perl -i -pe 's{\r\n}{\n}g' *.txt README.md
|
|||||||
%build
|
%build
|
||||||
%global _lto_cflags %_lto_cflags -ffat-lto-objects
|
%global _lto_cflags %_lto_cflags -ffat-lto-objects
|
||||||
# In this instance, we do want --with-pic because of libSDL2main.a.
|
# 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 \
|
%configure --with-pic --disable-alsa-shared --disable-video-directfb \
|
||||||
--enable-video-kmsdrm --enable-video-wayland \
|
--enable-video-kmsdrm --enable-video-wayland \
|
||||||
%if 0%{?sle_version}
|
%if 0%{?sle_version}
|
||||||
@ -121,7 +121,11 @@ perl -i -pe 's{\r\n}{\n}g' *.txt README.md
|
|||||||
%ifarch ix86
|
%ifarch ix86
|
||||||
--enable-sse2=no \
|
--enable-sse2=no \
|
||||||
%endif
|
%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
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user