summaryrefslogtreecommitdiffstats
path: root/package/multimedia/gst-omx/gst-omx.mk
blob: 1127ed8835f0871991655ef72f1ebf2f90668fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#############################################################
#
# gst-omx
#
#############################################################

GST_OMX_VERSION = 1.0.0
GST_OMX_SOURCE = gst-omx-$(GST_OMX_VERSION).tar.xz
GST_OMX_SITE = http://gstreamer.freedesktop.org/src/gst-omx/

GST_OMX_LICENSE = LGPLv2.1
GST_OMX_LICENSE_FILES = COPYING

ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
GST_OMX_CONF_OPT = \
	--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)
GST_OMX_CONF_OPT = \
	--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

$(eval $(autotools-package))