summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SDL2.spec10
1 files 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