python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / gstreamer1 / gst-omx / gst-omx.mk
blob6ce7baad2f9b4e507cf1c73aa655936034a2fdf7
1 ################################################################################
3 # gst-omx
5 ################################################################################
7 GST_OMX_VERSION = 1.10.4
8 GST_OMX_SOURCE = gst-omx-$(GST_OMX_VERSION).tar.xz
9 GST_OMX_SITE = https://gstreamer.freedesktop.org/src/gst-omx
11 GST_OMX_LICENSE = LGPLv2.1
12 GST_OMX_LICENSE_FILES = COPYING
14 ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
15 GST_OMX_CONF_OPTS = \
16 --with-omx-target=rpi
17 GST_OMX_CONF_ENV = \
18 CFLAGS="$(TARGET_CFLAGS) \
19 -I$(STAGING_DIR)/usr/include/IL \
20 -I$(STAGING_DIR)/usr/include/interface/vcos/pthreads \
21 -I$(STAGING_DIR)/usr/include/interface/vmcs_host/linux"
22 endif
24 ifeq ($(BR2_PACKAGE_BELLAGIO),y)
25 GST_OMX_CONF_OPTS = \
26 --with-omx-target=bellagio
27 GST_OMX_CONF_ENV = \
28 CFLAGS="$(TARGET_CFLAGS) \
29 -DOMX_VERSION_MAJOR=1 \
30 -DOMX_VERSION_MINOR=1 \
31 -DOMX_VERSION_REVISION=2 \
32 -DOMX_VERSION_STEP=0"
33 endif
35 GST_OMX_DEPENDENCIES = gstreamer1 gst1-plugins-base libopenmax
37 # adjust library paths to where buildroot installs them
38 define GST_OMX_FIXUP_CONFIG_PATHS
39 find $(@D)/config -name gstomx.conf | \
40 xargs $(SED) 's|/usr/local|/usr|g' -e 's|/opt/vc|/usr|g'
41 endef
43 GST_OMX_POST_PATCH_HOOKS += GST_OMX_FIXUP_CONFIG_PATHS
45 $(eval $(autotools-package))