]> git.pld-linux.org Git - packages/Mesa.git/commitdiff
- new bconds with egl, without osmesa
authorBartłomiej Zimoń <cactus@pld-linux.org>
Tue, 20 Oct 2009 15:00:21 +0000 (15:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Mesa.spec -> 1.223

Mesa.spec

index 52b18be09377af22c82c4f8bbd36b9a11d756786..d41c5e0ae0f916c5205b2001e673d356a4975929 100644 (file)
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -2,13 +2,16 @@
 # TODO:
 # - subpackage with non-dri libGL for use with X-servers with missing GLX extension?
 # - resurrect static if it's useful
+# - subpackage egl?
 #
 # Conditional build:
 %bcond_without demos   # don't build demos
-%bcond_without motif   # build static libGLw without Motif interface
-%bcond_without gallium
+%bcond_with    egl     # don't build egl
+%bcond_without gallium # don't build gallium
 %bcond_with    gallium_intel # gallium i915 driver (but doesn't work with AIGLX)
+%bcond_without motif   # build static libGLw without Motif interface
 %bcond_with    multigl # package libGL in a way allowing concurrent install with nvidia/fglrx drivers
+%bcond_without osmesa  # don't build osmesa
 %bcond_with    static
 #
 # minimal supported xserver version
@@ -642,9 +645,10 @@ common_flags="\
        --enable-selinux \
        --enable-pic \
        --enable-glx-tls \
-       --disable-egl \
+       --%{?with_egl:en}%{!?with_egl:dis}able-egl \
        --with%{!?with_demos:out}-demos"
 
+%if %{with osmesa}
 # osmesa variants
 %configure $common_flags \
        --with-driver=osmesa \
@@ -672,6 +676,7 @@ mv %{_lib} osmesa16
        SRC_DIRS=mesa
 mv %{_lib} osmesa32
 %{__make} clean
+%endif
 
 %configure $common_flags \
        --enable-glu \
@@ -713,7 +718,9 @@ cd gl-manpages-*
        DESTDIR=$RPM_BUILD_ROOT
 cd ..
 
+%if %{with osmesa}
 install osmesa*/* $RPM_BUILD_ROOT%{_libdir}
+%endif
 
 install progs/xdemos/{glxgears,glxinfo} $RPM_BUILD_ROOT%{_bindir}
 # work on copy to keep -bi --short-circuit working
@@ -839,6 +846,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libGLw.a
 %endif
 
+%if %{with osmesa}
 %files libOSMesa
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libOSMesa*.so.*.*
@@ -854,6 +862,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/libOSMesa*.a
 %endif
+%endif
 
 %files utils
 %defattr(644,root,root,755)
This page took 1.134764 seconds and 4 git commands to generate.