2013-07-22 07:56:13 +02:00
|
|
|
################################################################################
|
2013-06-21 00:07:43 +02:00
|
|
|
#
|
|
|
|
# gst-omx
|
|
|
|
#
|
2013-07-22 07:56:13 +02:00
|
|
|
################################################################################
|
2013-06-21 00:07:43 +02:00
|
|
|
|
2014-09-09 22:17:17 +02:00
|
|
|
GST_OMX_VERSION = 1.2.0
|
2013-06-21 00:07:43 +02:00
|
|
|
GST_OMX_SOURCE = gst-omx-$(GST_OMX_VERSION).tar.xz
|
2014-07-31 10:46:58 +02:00
|
|
|
GST_OMX_SITE = http://gstreamer.freedesktop.org/src/gst-omx
|
2013-06-21 00:07:43 +02:00
|
|
|
|
|
|
|
GST_OMX_LICENSE = LGPLv2.1
|
2013-06-27 21:33:50 +02:00
|
|
|
GST_OMX_LICENSE_FILES = COPYING
|
2013-06-21 00:07:43 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GST_OMX_CONF_OPTS = \
|
2013-06-21 00:07:43 +02:00
|
|
|
--with-omx-target=rpi
|
|
|
|
GST_OMX_CONF_ENV = \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) \
|
|
|
|
-I$(STAGING_DIR)/usr/include/IL \
|
|
|
|
-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads \
|
|
|
|
-I$(STAGING_DIR)/usr/include/interface/vmcs_host/linux"
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BELLAGIO),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GST_OMX_CONF_OPTS = \
|
2013-06-21 00:07:43 +02:00
|
|
|
--with-omx-target=bellagio
|
|
|
|
GST_OMX_CONF_ENV = \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) \
|
|
|
|
-DOMX_VERSION_MAJOR=1 \
|
|
|
|
-DOMX_VERSION_MINOR=1 \
|
|
|
|
-DOMX_VERSION_REVISION=2 \
|
|
|
|
-DOMX_VERSION_STEP=0"
|
|
|
|
endif
|
|
|
|
|
|
|
|
GST_OMX_DEPENDENCIES = gstreamer1 gst1-plugins-base libopenmax
|
|
|
|
|
2014-09-09 22:17:17 +02:00
|
|
|
# adjust library paths to where buildroot installs them
|
|
|
|
define GST_OMX_FIXUP_CONFIG_PATHS
|
|
|
|
find $(@D)/config -name gstomx.conf | \
|
|
|
|
xargs $(SED) 's|/usr/local|/usr|g' -e 's|/opt/vc|/usr|g'
|
|
|
|
endef
|
|
|
|
|
|
|
|
GST_OMX_POST_PATCH_HOOKS += GST_OMX_FIXUP_CONFIG_PATHS
|
|
|
|
|
2013-06-21 00:07:43 +02:00
|
|
|
$(eval $(autotools-package))
|