]> git.pld-linux.org Git - packages/lensfun.git/commitdiff
explicitly enable sse/sse2 on supported archs only
authorJan Palus <atler@pld-linux.org>
Wed, 9 Dec 2020 18:00:44 +0000 (19:00 +0100)
committerJan Palus <atler@pld-linux.org>
Wed, 9 Dec 2020 18:00:44 +0000 (19:00 +0100)
lensfun.spec

index daa4f3e8e29819f223f2002d8830c64179203c77..97453cf297ca0be4cdc90cc3ab493d82dda93d7b 100644 (file)
@@ -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}
 
This page took 0.114687 seconds and 4 git commands to generate.