]> git.pld-linux.org Git - packages/Mesa.git/blobdiff - Mesa.spec
Version: 18.3.2
[packages/Mesa.git] / Mesa.spec
index 7c38d65cfbf0e19347253295d1df8b388c17067e..b77e5013f0a1c43cde7e269d98c9751c37ecc661 100644 (file)
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -6,7 +6,8 @@
 %bcond_without egl             # EGL libraries
 %bcond_without gbm             # Graphics Buffer Manager
 %bcond_without nine            # Nine Direct3D 9+ state tracker (for Wine)
-%bcond_with    opencl          # OpenCL support (requires LLVM with RTTI)
+%bcond_without opencl          # OpenCL support
+%bcond_without  ocl_icd         # OpenCL as ICD (installable client driver)
 %bcond_with    glvnd           # OpenGL vendor neutral dispatcher support
 %bcond_without omx             # OpenMAX (Bellagio OMXIL) support
 %bcond_without va              # VA library
 %undefine      with_wayland
 %endif
 
+%if %{without opencl}
+%undefine      with_ocl_icd
+%endif
+
 Summary:       Free OpenGL implementation
 Summary(pl.UTF-8):     WolnodostÄ™pna implementacja standardu OpenGL
 Name:          Mesa
-Version:       18.3.0
-Release:       0.1
+Version:       18.3.2
+Release:       1
 License:       MIT (core) and others - see license.html file
 Group:         X11/Libraries
 #Source0:      ftp://ftp.freedesktop.org/pub/mesa/mesa-%{version}.tar.xz
 ## Source0-md5:        7c61a801311fb8d2f7b3cceb7b5cf308
 Source0:       https://gitlab.freedesktop.org/mesa/mesa/-/archive/mesa-%{version}/mesa-mesa-%{version}.tar.bz2
-# Source0-md5: f57785009d23751324e4585678b7f3d0
+# Source0-md5: 05271d9dbac776b851debb2e5b501559
 Patch0:                nouveau_no_rtti.patch
 URL:           http://www.mesa3d.org/
 BuildRequires: meson >= 0.45
@@ -1231,7 +1236,15 @@ vulkan_drivers=$(echo $vulkan_drivers | xargs | tr ' ' ',')
        -Dva-libs-path=%{_libdir}/libva/dri \
        -Dgallium-xa=%{?with_xa:true}%{?!with_xa:false} \
        -Dgallium-nine=%{?with_nine:true}%{?!with_nine:false} \
-       -Dgallium-opencl=%{?with_opencl:icd}%{?!with_opencl:disabled} \
+%if %{with opencl}
+%if %{with ocl_icd}
+       -Dgallium-opencl=icd \
+%else
+       -Dgallium-opencl=standalone \
+%endif
+%else
+       -Dgallium-opencl=disabled \
+%endif
        -Dvulkan-drivers=${vulkan_drivers} \
        -Dvulkan-icd-dir=/usr/share/vulkan/icd.d \
        -Dgbm=%{?with_gbm:true}%{?!with_gbm:false} \
This page took 0.048916 seconds and 4 git commands to generate.