From afb025b84abf1e9a2dd84eba6e5e1e559f9bd68e Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 7 Jun 2023 10:06:12 +0000 Subject: automatic import of SDL2 --- SDL2.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SDL2.spec b/SDL2.spec index a55fb99..74b6ee6 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -56,6 +56,8 @@ sed -i -e 's/\r//g' TODO.txt README.md WhatsNew.txt BUGS.txt LICENSE.txt CREDITS # Deal with whitespaces export LDFLAGS="%{shrink:%{build_ldflags}}" +mkdir %{_target_platform} +pushd %{_target_platform} %cmake -DSDL_DLOPEN=ON \ -DSDL_VIDEO_KMSDRM=ON \ -DSDL_ARTS=OFF \ @@ -71,12 +73,12 @@ export LDFLAGS="%{shrink:%{build_ldflags}}" -DSDL_SSE3=OFF \ -DSDL_RPATH=OFF \ -DSDL_STATIC=ON \ - -DSDL_STATIC_PIC=ON - -make %{?_smp_mflags} + -DSDL_STATIC_PIC=ON .. +popd +%make_build -C %{_target_platform} %install -%make_install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} mv %{buildroot}%{_includedir}/SDL2/SDL_config.h %{buildroot}%{_includedir}/SDL2/SDL_config-%{_arch}.h install -pm 0644 %{SOURCE1} %{buildroot}%{_includedir}/SDL2/SDL_config.h -- cgit v1.2.3