diff options
author | Nicolas Chauvet <kwizart@gmail.com> | 2014-02-09 11:14:05 +0100 |
---|---|---|
committer | Nicolas Chauvet <kwizart@gmail.com> | 2014-05-05 11:53:40 +0200 |
commit | 9487c811f49d605f8d448e238e4d04f8e0b1cc04 (patch) | |
tree | 7c4c1aa94549d63c82d0c14988264ad0f08d43f3 | |
parent | 7aa0856ccbde509dad94c41d4204d2e606499cc2 (diff) | |
download | mesa-9487c811f49d605f8d448e238e4d04f8e0b1cc04.tar.gz mesa-9487c811f49d605f8d448e238e4d04f8e0b1cc04.tar.xz mesa-9487c811f49d605f8d448e238e4d04f8e0b1cc04.zip |
Enable omx on x86 and arm
-rw-r--r-- | mesa.spec | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -26,6 +26,7 @@ %ifarch %{arm} %define with_freedreno 1 %define with_xa 1 +%define with_omx 1 %endif %ifarch s390 s390x ppc64le @@ -41,6 +42,7 @@ %define with_vmware 1 %define with_xa 1 %define with_opencl 1 +%define with_omx 1 %endif %ifarch ppc ppc64le %define platform_drivers ,swrast @@ -130,6 +132,9 @@ BuildRequires: mesa-libGL-devel BuildRequires: libvdpau-devel %endif BuildRequires: zlib-devel +%if 0%{?with_omx} +BuildRequires: libomxil-bellagio-devel +%endif %if 0%{?with_opencl} BuildRequires: libclc-devel llvm-static opencl-filesystem %endif @@ -176,6 +181,16 @@ Obsoletes: mesa-dri-llvmcore <= 7.12 %description 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} %package vdpau-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} \ --enable-shared-glapi \ --enable-gbm \ + %{?with_omx:--enable-omx} \ %{?with_opencl:--enable-opencl --enable-opencl-icd --with-clang-libdir=%{_prefix}/lib} %{!?with_opencl:--disable-opencl} \ --enable-glx-tls \ --enable-texture-float=yes \ @@ -527,6 +543,13 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/dri/swrast_dri.so %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} %files vdpau-drivers %defattr(-,root,root,-) |