diff options
author | Manuel Bachmann <manuel.bachmann@open.eurogiciel.org> | 2014-07-05 09:35:02 +0200 |
---|---|---|
committer | Quanxian Wang <quanxian.wang@intel.com> | 2014-09-24 10:59:56 +0800 |
commit | 64ddec318c11e0033a53348867bb1cc74f51e244 (patch) | |
tree | 3b89a689a1f2a9787cd2fc8b7f8506b7426a61ea | |
parent | 7f23dd58a4f0a7e4340b6a592af5de62dcd7a292 (diff) | |
download | mesa-64ddec318c11e0033a53348867bb1cc74f51e244.tar.gz mesa-64ddec318c11e0033a53348867bb1cc74f51e244.tar.bz2 mesa-64ddec318c11e0033a53348867bb1cc74f51e244.zip |
packaging: Re-enable X11 compiling
Change-Id: I202b022ed7fd37857d8e546d6ab50d439716f10b
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
-rw-r--r-- | .gbs.conf | 2 | ||||
-rw-r--r-- | packaging/mesa.spec | 66 |
2 files changed, 66 insertions, 2 deletions
diff --git a/.gbs.conf b/.gbs.conf index e9769723152..99e7cc88615 100644 --- a/.gbs.conf +++ b/.gbs.conf @@ -1,3 +1,3 @@ [general] upstream_branch = upstream -upstream_tag = mesa-${upstreamversion} +upstream_tag = upstream/${upstreamversion} diff --git a/packaging/mesa.spec b/packaging/mesa.spec index c3dd64155fd..fc5ee70eb57 100644 --- a/packaging/mesa.spec +++ b/packaging/mesa.spec @@ -1,4 +1,5 @@ %define glamor 1 +%bcond_with x %bcond_with wayland Name: mesa @@ -24,6 +25,17 @@ BuildRequires: gettext-tools BuildRequires: libtool BuildRequires: libxml2-python BuildRequires: llvm-devel +%if %{with x} +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(x11-xcb) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xdamage) +BuildRequires: pkgconfig(xfixes) +BuildRequires: pkgconfig(dri2proto) +BuildRequires: pkgconfig(glproto) +BuildRequires: pkgconfig(xcb-dri2) +BuildRequires: pkgconfig(xcb-glx) +%endif BuildRequires: pkgconfig BuildRequires: python BuildRequires: pkgconfig(expat) @@ -64,6 +76,9 @@ Requires: libgbm-devel %if %{with wayland} Requires: libwayland-egl %endif +%if %{with x} +Requires: mesa-libGL-devel = %{version} +%endif %description devel Mesa is a 3-D graphics library with an API which is very similar to @@ -80,6 +95,28 @@ just Mesa or The Mesa 3-D graphics library. * OpenGL is a trademark of Silicon Graphics Incorporated. +%if %{with x} +%package -n mesa-libGL +Summary: Free implementation of the desktop GL API + +%description -n mesa-libGL +This package contains the GL native platform graphics interface +library. GL provides a desktop-oriented API for creating +rendering surfaces. It depends on X11. + +%package -n mesa-libGL-devel +Summary: Development files for the desktop GL API +Requires: mesa-libGL = %{version} + +%description -n mesa-libGL-devel +This package contains the GL native platform graphics interface +library. GL provides a desktop-oriented API for creating +rendering surfaces. It depends on X11. + +This package provides the development environment for compiling +programs against the GL library. +%endif + %package -n libwayland-egl Summary: Wayland EGL backend for Mesa @@ -247,8 +284,21 @@ autoreconf -fi %configure --enable-gles1 \ --enable-gles2 \ --disable-dri3 \ +%if %{with x} +%if %{with wayland} + --with-egl-platforms=drm,wayland,x11 \ +%else + --with-egl-platforms=drm,x11 \ +%endif +%else +%if %{with wayland} --with-egl-platforms=drm,wayland \ --disable-glx \ +%else + --with-egl-platforms=drm \ + --disable-glx \ +%endif +%endif --enable-shared-glapi \ --disable-gallium-egl \ --enable-texture-float \ @@ -270,7 +320,7 @@ autoreconf -fi make %{?_smp_mflags} %make_install -%if %{with wayland} +%if !%{with x} rm -rf %{buildroot}%{_includedir}/GL rm -f %{buildroot}%{_libdir}/pkgconfig/gl.pc %endif @@ -324,6 +374,20 @@ install -m 644 $RPM_SOURCE_DIR/drirc %{buildroot}/etc %config %{_sysconfdir}/drirc %{_libdir}/dri/ +%if %{with x} +%files -n mesa-libGL +%manifest %{name}.manifest +%defattr(-,root,root) +%{_libdir}/libGL.so.1* + +%files -n mesa-libGL-devel +%manifest %{name}.manifest +%defattr(-,root,root) +%{_includedir}/GL +%{_libdir}/libGL.so +%{_libdir}/pkgconfig/gl.pc +%endif + %files -n mesa-libEGL %manifest %{name}.manifest %defattr(-,root,root) |