sdl2: Restore SDL2main for virtualbox

Signed-off-by: Reilly Brogan <reilly@reillybrogan.com>
This commit is contained in:
Reilly Brogan 2024-12-17 19:38:42 -06:00
parent 20e1fa2513
commit c3574e073a
No known key found for this signature in database
GPG key ID: F58C404158883626
3 changed files with 16 additions and 9 deletions

View file

@ -26,6 +26,7 @@ static_libs:
- qt6-declarative
- rocm-llvm
- rust
- sdl2
- shadow
- sysprof
- vlc

View file

@ -1,6 +1,6 @@
name : sdl2
version : 2.30.10
release : 53
release : 54
source :
- https://www.libsdl.org/release/SDL2-2.30.10.tar.gz : f59adf36a0fcf4c94198e7d3d776c1b3824211ab7aeebeb31fe19836661196aa
homepage : https://libsdl.org/
@ -36,6 +36,7 @@ optimize :
patterns :
- devel : /usr/bin
setup : |
# Virtualbox depends on libSDL2Main.a, don't delete that
%cmake_ninja \
-DCMAKE_INSTALL_LIBDIR=%libdir% \
-DSDL_STATIC=OFF \
@ -53,8 +54,7 @@ setup : |
-DSDL_PULSEAUDIO_SHARED=OFF \
-DSDL_WAYLAND_LIBDECOR_SHARED=OFF \
-DSDL_WAYLAND_SHARED=OFF \
-DSDL_X11_SHARED=OFF \
-DSDL2_DISABLE_SDL2MAIN=ON
-DSDL_X11_SHARED=OFF
build : |
%ninja_build
install : |

View file

@ -32,7 +32,7 @@
</Description>
<PartOf>emul32</PartOf>
<RuntimeDependencies>
<Dependency release="53">sdl2</Dependency>
<Dependency release="54">sdl2</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/libSDL2-2.0.so.0</Path>
@ -46,17 +46,20 @@
</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
<Dependency release="53">sdl2-devel</Dependency>
<Dependency release="53">sdl2-32bit</Dependency>
<Dependency release="54">sdl2-devel</Dependency>
<Dependency release="54">sdl2-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/cmake/SDL2/SDL2Config.cmake</Path>
<Path fileType="library">/usr/lib32/cmake/SDL2/SDL2ConfigVersion.cmake</Path>
<Path fileType="library">/usr/lib32/cmake/SDL2/SDL2Targets-relwithdebinfo.cmake</Path>
<Path fileType="library">/usr/lib32/cmake/SDL2/SDL2Targets.cmake</Path>
<Path fileType="library">/usr/lib32/cmake/SDL2/SDL2mainTargets-relwithdebinfo.cmake</Path>
<Path fileType="library">/usr/lib32/cmake/SDL2/SDL2mainTargets.cmake</Path>
<Path fileType="library">/usr/lib32/cmake/SDL2/sdlfind.cmake</Path>
<Path fileType="library">/usr/lib32/libSDL2-2.0.so</Path>
<Path fileType="library">/usr/lib32/libSDL2.so</Path>
<Path fileType="library">/usr/lib32/libSDL2main.a</Path>
<Path fileType="data">/usr/lib32/pkgconfig/sdl2.pc</Path>
</Files>
</Package>
@ -67,7 +70,7 @@
</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
<Dependency release="53">sdl2</Dependency>
<Dependency release="54">sdl2</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/sdl2-config</Path>
@ -154,16 +157,19 @@
<Path fileType="library">/usr/lib64/cmake/SDL2/SDL2ConfigVersion.cmake</Path>
<Path fileType="library">/usr/lib64/cmake/SDL2/SDL2Targets-relwithdebinfo.cmake</Path>
<Path fileType="library">/usr/lib64/cmake/SDL2/SDL2Targets.cmake</Path>
<Path fileType="library">/usr/lib64/cmake/SDL2/SDL2mainTargets-relwithdebinfo.cmake</Path>
<Path fileType="library">/usr/lib64/cmake/SDL2/SDL2mainTargets.cmake</Path>
<Path fileType="library">/usr/lib64/cmake/SDL2/sdlfind.cmake</Path>
<Path fileType="library">/usr/lib64/libSDL2-2.0.so</Path>
<Path fileType="library">/usr/lib64/libSDL2.so</Path>
<Path fileType="library">/usr/lib64/libSDL2main.a</Path>
<Path fileType="data">/usr/lib64/pkgconfig/sdl2.pc</Path>
<Path fileType="data">/usr/share/aclocal/sdl2.m4</Path>
</Files>
</Package>
<History>
<Update release="53">
<Date>2024-12-07</Date>
<Update release="54">
<Date>2024-12-18</Date>
<Version>2.30.10</Version>
<Comment>Packaging update</Comment>
<Name>Reilly Brogan</Name>