## Package info of Omx Plugin
#######################################################
+%ifarch %{arm} aarch64
+
%if "%{plugin}" == "all"
%package -n gst-omx
Summary: GStreamer plug-in that allows communication with OpenMAX IL components
BuildRequires: pkgconfig(bcm_host)
BuildRequires: pkgconfig(brcmegl)
%endif
-ExclusiveArch: %arm aarch64
%description -n gst-omx
gst-openmax is a GStreamer plug-in that allows communication with OpenMAX IL components.
%endif
+%endif # arch
+
#######################################################
## Package info of libav Plugin
#######################################################
export LDFLAGS+=" -pthread"
meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_datadir} --sysconfdir=%{_hal_sysconfdir} \
+%ifarch x86_64 %{ix86}
+ -D omx=disabled \
+%endif
%if "%{plugin}" == "all" || "%{plugin}" == "core"
-D %{_core_opt}check=enabled \
-D %{_core_opt}coretracers=enabled \
-D %{_ugly_opt}amrnb=enabled \
%endif # tv
%endif # plugin
-%if "%{plugin}" == "all" || "%{plugin}" == "omx"
- %if "%{target}" == "rpi"
- -D %{_omx_opt}target=rpi \
- -D %{_omx_opt}header_path=/opt/vc/include/interface/vmcs_host/khronos/IL \
- %else
- %ifarch aarch64
- -D %{_omx_opt}target=exynos64 \
+%ifarch %{arm} aarch64
+ %if "%{plugin}" == "all" || "%{plugin}" == "omx"
+ %if "%{target}" == "rpi"
+ -D %{_omx_opt}target=rpi \
+ -D %{_omx_opt}header_path=/opt/vc/include/interface/vmcs_host/khronos/IL \
%else
- -D %{_omx_opt}target=exynos \
- -D %{_omx_opt}vp9=true \
- %endif # arch
- %endif # target
-%endif # plugin
+ %ifarch aarch64
+ -D %{_omx_opt}target=exynos64 \
+ %else
+ -D %{_omx_opt}target=exynos \
+ -D %{_omx_opt}vp9=true \
+ %endif # arch
+ %endif # target
+ %endif # plugin
+%endif # arch
%if "%{plugin}" == "all" || "%{plugin}" == "libav"
%if "%{tizen_profile_name}" == "tv"
-D %{_libav_opt}tv-profile=true \
%endif
########################## gst-omx ###########################
+%ifarch %{arm} aarch64
%if "%{plugin}" == "all" || "%{plugin}" == "omx"
%endif
+%endif # arch
+
######################## gst-libav ###########################
%if "%{plugin}" == "all" || "%{plugin}" == "libav"