summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-07 10:06:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-07 10:06:12 +0000
commitafb025b84abf1e9a2dd84eba6e5e1e559f9bd68e (patch)
tree4fe6f15f58243532ee8f5987aa1578bcceac4e68
parent3efe7d1ef766856bc61ed898d1548ab794830890 (diff)
automatic import of SDL2openeuler20.03
-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