-SUBDIRS = bellagio rpi tizonia zynqultrascaleplus
+SUBDIRS = bellagio tizonia zynqultrascaleplus
if test "x$ac_cv_omx_target" = "xrpi"; then
PKG_CHECK_MODULES([BRCMEGL], [brcmegl])
+ AC_SUBST(BRCMEGL_CFLAGS)
+ AC_SUBST(BRCMEGL_LIBS)
+ PKG_CHECK_MODULES([BCM_HOST], [bcm_host])
+ AC_SUBST(BCM_HOST_CFLAGS)
+ AC_SUBST(BCM_HOST_LIBS)
fi
AC_ARG_WITH([omx-header-path],
[omx_header_path="$withval"], [omx_header_path="none"])
if test x"$omx_header_path" != x"none"; then
+ CFLAGS="$CFLAGS -I$omx_header_path"
CPPFLAGS="$CPPFLAGS -I$omx_header_path"
fi
dnl Check for external OpenMAX IL headers
$(GMODULE_NO_EXPORT_LIBS)
libgstomx_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+if USE_OMX_TARGET_RPI
+libgstomx_la_CFLAGS += \
+ $(BRCMEGL_CFLAGS) \
+ $(BCM_HOST_CFLAGS)
+libgstomx_la_LIBADD += \
+ $(BRCMEGL_LIBS) \
+ $(BCM_HOST_LIBS)
+endif
+
EXTRA_DIST = \
openmax \
gstomxvp8dec.c \
Name: gst-omx
Summary: GStreamer plug-in that allows communication with OpenMAX IL components
Version: 1.16.2
-Release: 5
+Release: 6
License: LGPL-2.1+
Group: Multimedia/Framework
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires: pkgconfig(libtbm)
BuildRequires: pkgconfig(mm-common)
+%if "%{target}" == "rpi"
+BuildRequires: pkgconfig(bcm_host)
+BuildRequires: pkgconfig(brcmegl)
+%endif
ExclusiveArch: %arm aarch64
%description
export CFLAGS+=" -DTIZEN_FEATURE_OMX"
+%if "%{target}" == "rpi"
+%configure --disable-static --prefix=/usr --with-omx-target=rpi --with-omx-header-path=/opt/vc/include/interface/vmcs_host/khronos/IL
+%else
%ifarch aarch64
%configure --disable-static --prefix=/usr --with-omx-target=exynos64
%else
-%configure --disable-static --prefix=/usr --with-omx-target=exynos --enable-vp8 --enable-hevc
+%configure --disable-static --prefix=/usr --with-omx-target=exynos --enable-vp9
+%endif
%endif
make %{?jobs:-j%jobs}