diff options
author | Juan Zhao <juan.j.zhao@intel.com> | 2013-12-12 16:53:31 +0800 |
---|---|---|
committer | Quanxian Wang <quanxian.wang@intel.com> | 2014-09-24 10:55:17 +0800 |
commit | af80a6f91a756781e05ba672dfe314dac8fabb28 (patch) | |
tree | 2d9e4a97fb13a68739ea6bc010e16d62327c50bf | |
parent | 20fe37ea727104a87eacb2df501fa7ef0c258194 (diff) | |
download | mesa-af80a6f91a756781e05ba672dfe314dac8fabb28.tar.gz mesa-af80a6f91a756781e05ba672dfe314dac8fabb28.tar.bz2 mesa-af80a6f91a756781e05ba672dfe314dac8fabb28.zip |
change {without x} to {with x}
The display server based on X or Wayland, is now a choice of different profile in Tizen 3.0.
Basically and consistently, two macros were used "with wayland" and "with x".
Below summarize the combination of the macros:
| wayland | x | meaning
|---------------------------
| 0 | 1 | pure X11 platform(no wayland)
| 1 | 0 | pure wayland platform (no X11)
| 1 | 1 | wayland but X compatibility
| 0 | 0 | no X and no wayland
This method unifies the meaning and usage. Deploy this to mesa package.
Change-Id: Ie2074f326a3996d807c459ae44641c4c4d5e10f7
-rw-r--r-- | packaging/mesa.spec | 63 |
1 files changed, 20 insertions, 43 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec index 81b0dd3ee4e..8311038307c 100644 --- a/packaging/mesa.spec +++ b/packaging/mesa.spec @@ -1,6 +1,6 @@ %define glamor 1 %bcond_with wayland -%bcond_without x +%bcond_with x Name: mesa Version: 9.2.1 @@ -28,9 +28,7 @@ BuildRequires: llvm-devel BuildRequires: makedepend BuildRequires: pkgconfig BuildRequires: python -BuildRequires: pkgconfig(dri2proto) >= 2.1 BuildRequires: pkgconfig(expat) -BuildRequires: pkgconfig(glproto) >= 1.4.11 BuildRequires: pkgconfig(libdrm) >= 2.4.24 %ifarch x86_64 %ix86 BuildRequires: pkgconfig(libdrm_intel) >= 2.4.24 @@ -40,8 +38,9 @@ BuildRequires: pkgconfig(libudev) > 150 BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-server) %endif -%if %{without x} -%else +%if %{with x} +BuildRequires: pkgconfig(dri2proto) >= 2.1 +BuildRequires: pkgconfig(glproto) >= 1.4.11 BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(x11-xcb) BuildRequires: pkgconfig(xcb-dri2) @@ -73,10 +72,6 @@ just Mesa or The Mesa 3-D graphics library. Summary: Libraries, includes and more to develop Mesa applications Requires: mesa = %{version} Requires: mesa-libEGL-devel = %{version} -%if %{without x} -%else -Requires: mesa-libGL-devel = %{version} -%endif Requires: mesa-libGLESv1_CM-devel = %{version} Requires: mesa-libGLESv2-devel = %{version} Requires: mesa-libglapi = %{version} @@ -84,8 +79,8 @@ Requires: libgbm-devel %if %{with wayland} Requires: libwayland-egl %endif -%if %{without x} -%else +%if %{with x} +Requires: mesa-libGL-devel = %{version} Requires: mesa-libIndirectGL = %{version} Requires: libOSMesa = %{version} %endif @@ -141,8 +136,7 @@ OpenGL|ES and OpenVG. This package provides the development environment for compiling programs against the EGL library. -%if %{without x} -%else +%if %{with x} %package -n mesa-libGL Summary: The GL/GLX runtime of the Mesa 3D graphics library Requires: mesa = %{version} @@ -239,8 +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 %{without x} -%else +%if %{with x} %package -n mesa-libIndirectGL # This is the equivalent to Debian's libgl1-mesa-swx11 Summary: Free implementation of the OpenGL API @@ -299,8 +292,7 @@ openwfd. This package provides the development environment for compiling programs against the GBM library. -%if %{without x} -%else +%if %{with x} %package -n libxatracker Version: 1.0.0 Release: 0 @@ -366,7 +358,7 @@ autoreconf -fi %configure --enable-gles1 \ --enable-gles2 \ %if %{with wayland} -%if %{without x} +%if !%{with x} --with-egl-platforms=drm,wayland \ --disable-glx \ %else @@ -376,15 +368,13 @@ autoreconf -fi --with-egl-platforms=x11,drm \ %endif --enable-shared-glapi \ -%if %{without x} -%else +%if %{with x} --enable-xa \ %endif --enable-texture-float \ %if %glamor --enable-gbm \ -%if %{without x} -%else +%if %{with x} --enable-glx-tls \ %endif %endif @@ -393,8 +383,7 @@ autoreconf -fi --enable-gallium-llvm \ --with-dri-drivers=i915,i965,swrast \ --with-gallium-drivers="swrast,svga" \ -%if %{without x} -%else +%if %{with x} --enable-xvmc \ %endif %endif @@ -406,13 +395,12 @@ autoreconf -fi make %{?_smp_mflags} %make_install -%if %{without x} +%if %{with wayland} && !%{with x} rm -rf %{buildroot}%{_includedir}/GL rm -f %{buildroot}%{_libdir}/pkgconfig/gl.pc %endif -%if %{without x} -%else +%if %{with x} # build and install Indirect Rendering only libGL make clean @@ -462,8 +450,7 @@ install -m 644 $RPM_SOURCE_DIR/drirc %{buildroot}/etc %postun -n mesa-libGLESv2 -p /sbin/ldconfig -%if %{without x} -%else +%if %{with x} %post -n mesa-libGL -p /sbin/ldconfig %postun -n mesa-libGL -p /sbin/ldconfig @@ -522,25 +509,18 @@ install -m 644 $RPM_SOURCE_DIR/drirc %{buildroot}/etc -%if %{without x} -%else +%if %{with x} %files -n mesa-libGL %manifest %{name}.manifest %defattr(-,root,root) -%if %{without x} -%else %{_libdir}/libGL.so.1* -%endif %files -n mesa-libGL-devel %manifest %{name}.manifest %defattr(-,root,root) %dir %{_includedir}/GL %{_includedir}/GL/*.h -%if %{without x} -%else %{_libdir}/libGL.so -%endif %{_libdir}/pkgconfig/gl.pc %endif @@ -577,8 +557,7 @@ install -m 644 $RPM_SOURCE_DIR/drirc %{buildroot}/etc %endif -%if %{without x} -%else +%if %{with x} %files -n mesa-libIndirectGL %manifest %{name}.manifest %defattr(-,root,root) @@ -641,8 +620,7 @@ install -m 644 $RPM_SOURCE_DIR/drirc %{buildroot}/etc %files devel %manifest %{name}.manifest %defattr(-,root,root) -%if %{without x} -%else +%if %{with x} %{_includedir}/GL/internal %endif %{_libdir}/libglapi.so @@ -650,8 +628,7 @@ install -m 644 $RPM_SOURCE_DIR/drirc %{buildroot}/etc %{_libdir}/libwayland-egl.so %{_libdir}/pkgconfig/wayland-egl.pc %endif -%if %{without x} -%else +%if %{with x} %{_libdir}/libOSMesa.so %{_libdir}/pkgconfig/osmesa.pc %endif |