summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Wu <zhiwen.wu@linux.intel.com>2013-11-26 17:17:50 +0800
committerAlex Wu <zhiwen.wu@linux.intel.com>2013-11-27 15:34:06 +0800
commitb6d7b3776cda43d01d7927889e1fa9b6a3a6218a (patch)
tree71fc11e72150bacf420e876250aa787ae6a7f431
parent44a0673b7b01f9bdf440cbd20ff7419f6c0b2a82 (diff)
downloadmesa-b6d7b3776cda43d01d7927889e1fa9b6a3a6218a.tar.gz
mesa-b6d7b3776cda43d01d7927889e1fa9b6a3a6218a.tar.bz2
mesa-b6d7b3776cda43d01d7927889e1fa9b6a3a6218a.zip
Put all removing x dependency things under "without x" flag.submit/tizen/20131127.091751submit/tizen/20131127.091324accepted/tizen/20131127.212522
Since IVI and Mobile will use same code base, to avoid blocking any IVI build, put all removing x dependency things under "without x" flag. This flag, for now, is only defined in build.conf of mobile wayland profile. In the future, if IVI want to make a x-free image, it can cherry-pick these "removings". Change-Id: I12b163be42e85239743624b9f6e6ed6706f6349a Signed-off-by: Alex Wu <zhiwen.wu@linux.intel.com>
-rw-r--r--packaging/mesa.spec38
1 files changed, 29 insertions, 9 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec
index c4c3cd1bb2e..a3cbac9f95c 100644
--- a/packaging/mesa.spec
+++ b/packaging/mesa.spec
@@ -1,5 +1,6 @@
%define glamor 1
%bcond_with wayland
+%bcond_without x
Name: mesa
Version: 9.2.1
@@ -38,6 +39,8 @@ BuildRequires: pkgconfig(libudev) > 150
%if %{with wayland}
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-server)
+%endif
+%if %{without x}
%else
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb)
@@ -77,6 +80,8 @@ Requires: mesa-libglapi = %{version}
Requires: libgbm-devel
%if %{with wayland}
Requires: libwayland-egl
+%endif
+%if %{without x}
%else
Requires: mesa-libIndirectGL = %{version}
Requires: libOSMesa = %{version}
@@ -228,7 +233,7 @@ extensions for the special needs of embedded systems.
This package provides a development environment for building
applications using the OpenGL|ES 3.x APIs.
-%if %{with wayland}
+%if %{without x}
%else
%package -n mesa-libIndirectGL
# This is the equivalent to Debian's libgl1-mesa-swx11
@@ -288,7 +293,7 @@ openwfd.
This package provides the development environment for compiling
programs against the GBM library.
-%if %{with wayland}
+%if %{without x}
%else
%package -n libxatracker
Version: 1.0.0
@@ -355,24 +360,34 @@ autoreconf -fi
%configure --enable-gles1 \
--enable-gles2 \
%if %{with wayland}
+%if %{without x}
--with-egl-platforms=drm,wayland \
--disable-glx \
%else
+ --with-egl-platforms=x11,drm,wayland \
+%endif
+%else
--with-egl-platforms=x11,drm \
- --enable-xa \
%endif
--enable-shared-glapi \
+%if %{without x}
+%else
+ --enable-xa \
+%endif
--enable-texture-float \
%if %glamor
--enable-gbm \
+%if %{without x}
+%else
--enable-glx-tls \
%endif
+%endif
--with-dri-searchpath=/usr/%{_lib}/dri/updates:/usr/%{_lib}/dri \
%ifarch %ix86 x86_64
--enable-gallium-llvm \
--with-dri-drivers=i915,i965,swrast \
--with-gallium-drivers="swrast,svga" \
-%if %{with wayland}
+%if %{without x}
%else
--enable-xvmc \
%endif
@@ -385,7 +400,7 @@ autoreconf -fi
make %{?_smp_mflags}
%make_install
-%if %{with wayland}
+%if %{without x}
%else
# build and install Indirect Rendering only libGL
@@ -440,7 +455,7 @@ install -m 644 $RPM_SOURCE_DIR/drirc %{buildroot}/etc
%postun -n mesa-libGLESv2 -p /sbin/ldconfig
-%if %{with wayland}
+%if %{without x}
%else
%post -n mesa-libIndirectGL -p /sbin/ldconfig
@@ -494,11 +509,11 @@ install -m 644 $RPM_SOURCE_DIR/drirc %{buildroot}/etc
%{_libdir}/libEGL.so
%{_libdir}/pkgconfig/egl.pc
-%if %{with wayland}
-%else
%files -n mesa-libGL
%manifest %{name}.manifest
%defattr(-,root,root)
+%if %{without x}
+%else
%{_libdir}/libGL.so.1*
%endif
@@ -507,7 +522,7 @@ install -m 644 $RPM_SOURCE_DIR/drirc %{buildroot}/etc
%defattr(-,root,root)
%dir %{_includedir}/GL
%{_includedir}/GL/*.h
-%if %{with wayland}
+%if %{without x}
%else
%{_libdir}/libGL.so
%endif
@@ -544,6 +559,9 @@ install -m 644 $RPM_SOURCE_DIR/drirc %{buildroot}/etc
%defattr(-,root,root)
%{_libdir}/libwayland-egl.so.1*
+%endif
+
+%if %{without x}
%else
%files -n mesa-libIndirectGL
%manifest %{name}.manifest
@@ -612,6 +630,8 @@ install -m 644 $RPM_SOURCE_DIR/drirc %{buildroot}/etc
%if %{with wayland}
%{_libdir}/libwayland-egl.so
%{_libdir}/pkgconfig/wayland-egl.pc
+%endif
+%if %{without x}
%else
%{_libdir}/libOSMesa.so
%{_libdir}/pkgconfig/osmesa.pc