[packages/lensfun] explicitly enable sse/sse2 on supported archs only

atler atler at pld-linux.org
Wed Dec 9 19:01:37 CET 2020


commit 29c63bda0cf6aed650577a72eb4610fca3dbc310
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Dec 9 19:00:44 2020 +0100

    explicitly enable sse/sse2 on supported archs only

 lensfun.spec | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
---
diff --git a/lensfun.spec b/lensfun.spec
index daa4f3e..97453cf 100644
--- a/lensfun.spec
+++ b/lensfun.spec
@@ -1,3 +1,15 @@
+#
+# Conditional build:
+%bcond_with	sse		# SSE instructions
+%bcond_with	sse2		# SSE2 instructions
+
+%ifarch pentium3 pentium4 %{x8664} x32
+%define	with_sse	1
+%endif
+%ifarch pentium4 %{x8664} x32
+%define	with_sse2	1
+%endif
+
 Summary:	Camera lens database with image correction support
 Summary(pl.UTF-8):	Baza danych obiektywów z funkcją korekcji zdjęć
 Name:		lensfun
@@ -73,6 +85,8 @@ cd build
 %cmake .. \
 	-DBUILD_AUXFUN:BOOL=ON \
 	-DBUILD_DOC:BOOL=ON \
+	%{cmake_on_off sse BUILD_FOR_SSE} \
+	%{cmake_on_off sse2 BUILD_FOR_SSE2} \
 	-DBUILD_TESTS:BOOL=OFF \
 	-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lensfun.git/commitdiff/29c63bda0cf6aed650577a72eb4610fca3dbc310



More information about the pld-cvs-commit mailing list