mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-11-24 17:35:18 +00:00
Enable omx on x86 and arm
This commit is contained in:
parent
7aa0856ccb
commit
9487c811f4
1 changed files with 23 additions and 0 deletions
23
mesa.spec
23
mesa.spec
|
@ -26,6 +26,7 @@
|
||||||
%ifarch %{arm}
|
%ifarch %{arm}
|
||||||
%define with_freedreno 1
|
%define with_freedreno 1
|
||||||
%define with_xa 1
|
%define with_xa 1
|
||||||
|
%define with_omx 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch s390 s390x ppc64le
|
%ifarch s390 s390x ppc64le
|
||||||
|
@ -41,6 +42,7 @@
|
||||||
%define with_vmware 1
|
%define with_vmware 1
|
||||||
%define with_xa 1
|
%define with_xa 1
|
||||||
%define with_opencl 1
|
%define with_opencl 1
|
||||||
|
%define with_omx 1
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc ppc64le
|
%ifarch ppc ppc64le
|
||||||
%define platform_drivers ,swrast
|
%define platform_drivers ,swrast
|
||||||
|
@ -130,6 +132,9 @@ BuildRequires: mesa-libGL-devel
|
||||||
BuildRequires: libvdpau-devel
|
BuildRequires: libvdpau-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
%if 0%{?with_omx}
|
||||||
|
BuildRequires: libomxil-bellagio-devel
|
||||||
|
%endif
|
||||||
%if 0%{?with_opencl}
|
%if 0%{?with_opencl}
|
||||||
BuildRequires: libclc-devel llvm-static opencl-filesystem
|
BuildRequires: libclc-devel llvm-static opencl-filesystem
|
||||||
%endif
|
%endif
|
||||||
|
@ -176,6 +181,16 @@ Obsoletes: mesa-dri-llvmcore <= 7.12
|
||||||
%description dri-drivers
|
%description dri-drivers
|
||||||
Mesa-based DRI drivers.
|
Mesa-based DRI drivers.
|
||||||
|
|
||||||
|
%if 0%{?with_omx}
|
||||||
|
%package omx-drivers
|
||||||
|
Summary: Mesa-based OMX drivers
|
||||||
|
Group: User Interface/X Hardware Support
|
||||||
|
Requires: mesa-filesystem%{?_isa}
|
||||||
|
Requires: libomxil-bellagio%{?_isa}
|
||||||
|
%description omx-drivers
|
||||||
|
Mesa-based OMX drivers.
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?with_vdpau}
|
%if 0%{?with_vdpau}
|
||||||
%package vdpau-drivers
|
%package vdpau-drivers
|
||||||
Summary: Mesa-based DRI drivers
|
Summary: Mesa-based DRI drivers
|
||||||
|
@ -381,6 +396,7 @@ export CXXFLAGS="$RPM_OPT_FLAGS %{?with_opencl:-frtti -fexceptions} %{!?with_ope
|
||||||
--with-egl-platforms=x11,drm%{?with_wayland:,wayland} \
|
--with-egl-platforms=x11,drm%{?with_wayland:,wayland} \
|
||||||
--enable-shared-glapi \
|
--enable-shared-glapi \
|
||||||
--enable-gbm \
|
--enable-gbm \
|
||||||
|
%{?with_omx:--enable-omx} \
|
||||||
%{?with_opencl:--enable-opencl --enable-opencl-icd --with-clang-libdir=%{_prefix}/lib} %{!?with_opencl:--disable-opencl} \
|
%{?with_opencl:--enable-opencl --enable-opencl-icd --with-clang-libdir=%{_prefix}/lib} %{!?with_opencl:--disable-opencl} \
|
||||||
--enable-glx-tls \
|
--enable-glx-tls \
|
||||||
--enable-texture-float=yes \
|
--enable-texture-float=yes \
|
||||||
|
@ -527,6 +543,13 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%{_libdir}/dri/swrast_dri.so
|
%{_libdir}/dri/swrast_dri.so
|
||||||
|
|
||||||
%if %{with_hardware}
|
%if %{with_hardware}
|
||||||
|
%if 0%{?with_omx}
|
||||||
|
%files omx-drivers
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/bellagio/libomx_nouveau.so*
|
||||||
|
%{_libdir}/bellagio/libomx_r600.so*
|
||||||
|
%{_libdir}/bellagio/libomx_radeonsi.so*
|
||||||
|
%endif
|
||||||
%if 0%{?with_vdpau}
|
%if 0%{?with_vdpau}
|
||||||
%files vdpau-drivers
|
%files vdpau-drivers
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
|
Loading…
Reference in a new issue