f00876766141e81eb1f7cbc8fefea6e1c80d65ac
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gstreamer1 / gst-omx / gst-omx.mk
1 ################################################################################
2 #
3 # gst-omx
4 #
5 ################################################################################
6
7 GST_OMX_VERSION = 1.2.0
8 GST_OMX_SOURCE = gst-omx-$(GST_OMX_VERSION).tar.xz
9 GST_OMX_SITE = http://gstreamer.freedesktop.org/src/gst-omx
10
11 GST_OMX_LICENSE = LGPLv2.1
12 GST_OMX_LICENSE_FILES = COPYING
13
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
23
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
34
35 GST_OMX_DEPENDENCIES = gstreamer1 gst1-plugins-base libopenmax
36
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
42
43 GST_OMX_POST_PATCH_HOOKS += GST_OMX_FIXUP_CONFIG_PATHS
44
45 $(eval $(autotools-package))