diff options
-rw-r--r-- | SDL2.spec | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |