diff options
author | Alex Wu <zhiwen.wu@linux.intel.com> | 2013-11-26 17:17:50 +0800 |
---|---|---|
committer | Quanxian Wang <quanxian.wang@intel.com> | 2014-09-24 10:55:17 +0800 |
commit | 41961ab8fef2f9dc10a8d03f3ca6d501d793c8ce (patch) | |
tree | 82640f31bf1009220564782aae405df6e36dd34f | |
parent | 81c547e9f6787f537b3641c94b88ebccf16c0a15 (diff) | |
download | mesa-41961ab8fef2f9dc10a8d03f3ca6d501d793c8ce.tar.gz mesa-41961ab8fef2f9dc10a8d03f3ca6d501d793c8ce.tar.bz2 mesa-41961ab8fef2f9dc10a8d03f3ca6d501d793c8ce.zip |
Put all removing x dependency things under "without x" flag.
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.spec | 38 |
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 |