]> git.pld-linux.org Git - packages/Mesa.git/commitdiff
- allow to build non-gallium nouveau dri driver (requires older libdrm anyway)
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 23 Jul 2012 13:57:17 +0000 (15:57 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 23 Jul 2012 13:57:17 +0000 (15:57 +0200)
Mesa.spec

index 7ff3a8df87a95807abde098ad3d5b3cad6cb64b0..09620b001e7bc06fe0c55c34f72ca1e7cbeb469c 100644 (file)
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -6,10 +6,11 @@
 # - resurrect static if it's useful (using plain xorg target? DRI doesn't support static)
 #
 # Conditional build:
-%bcond_without egl             # EGL libraries
 %bcond_without gallium         # gallium drivers
-%bcond_with    gallium_intel   # gallium i915 driver (but doesn't work with AIGLX)
-%bcond_with    gallium_nouveau # gallium nouveau driver
+%bcond_with    gallium_intel   # gallium i915 driver (instead of plain dri; doesn't work with AIGLX)
+%bcond_without gallium_nouveau # gallium nouveau driver (instead of plain dri)
+%bcond_with    dri_nouveau     # nouveau DRI driver (any kind; doesn't build with current libdrm)
+%bcond_without egl             # EGL libraries
 %bcond_without osmesa          # OSMesa libraries
 %bcond_without gbm             # Graphics Buffer Manager
 %bcond_without wayland         # Wayland EGL
@@ -906,6 +907,9 @@ dri_drivers="r200 radeon \
 i915 \
 %endif
 i965
+%if %{with dri_nouveau} && %{without gallium_nouveau}
+nouveau
+%endif
 %ifarch sparc sparcv9 sparc64
 ffb \
 %endif
@@ -919,7 +923,7 @@ i915 \
 %endif
 r300 \
 r600 \
-%if %{with gallium_nouveau}
+%if %{with dri_nouveau} && %{with gallium_nouveau}
 nouveau \
 %endif
 "
@@ -1288,6 +1292,7 @@ rm -rf $RPM_BUILD_ROOT
 %files dri-driver-ati-radeon-R600
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/xorg/modules/dri/r600_dri.so
+%endif
 
 %files dri-driver-intel-i915
 %defattr(644,root,root,755)
@@ -1297,12 +1302,11 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/xorg/modules/dri/i965_dri.so
 
-%if %{with gallium_nouveau}
+%if %{with dri_nouveau}
 %files dri-driver-nouveau
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/xorg/modules/dri/nouveau_dri.so
 %endif
-%endif
 
 %files dri-driver-swrast
 %defattr(644,root,root,755)
This page took 0.195025 seconds and 4 git commands to generate.