1################################################################################ 2# 3# gst1-imx 4# 5################################################################################ 6 7GST1_IMX_VERSION = 0.13.1 8GST1_IMX_SITE = $(call github,Freescale,gstreamer-imx,$(GST1_IMX_VERSION)) 9 10GST1_IMX_LICENSE = LGPL-2.0+ 11GST1_IMX_LICENSE_FILES = LICENSE 12 13GST1_IMX_INSTALL_STAGING = YES 14GST1_IMX_NEEDS_EXTERNAL_WAF = YES 15 16GST1_IMX_DEPENDENCIES += \ 17 host-pkgconf \ 18 gstreamer1 \ 19 gst1-plugins-base 20 21GST1_IMX_CONF_OPTS = --prefix="/usr" 22 23ifeq ($(BR2_LINUX_KERNEL),y) 24# IPU and PXP need access to imx-specific kernel headers 25GST1_IMX_DEPENDENCIES += linux 26GST1_IMX_CONF_OPTS += --kernel-headers="$(LINUX_DIR)/include" 27endif 28 29ifeq ($(BR2_PACKAGE_IMX_CODEC),y) 30GST1_IMX_DEPENDENCIES += imx-codec 31endif 32 33ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y) 34GST1_IMX_DEPENDENCIES += imx-gpu-viv 35endif 36 37ifeq ($(BR2_PACKAGE_IMX_GPU_G2D),y) 38GST1_IMX_DEPENDENCIES += imx-gpu-g2d 39endif 40 41ifeq ($(BR2_PACKAGE_GST1_IMX_EGLVISINK),y) 42# There's no --enable-eglvivsink option 43ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y) 44GST1_IMX_DEPENDENCIES += xlib_libX11 45GST1_IMX_CONF_OPTS += --egl-platform=x11 46else 47ifeq ($(BR2_PACKAGE_WAYLAND),y) 48GST1_IMX_DEPENDENCIES += wayland 49GST1_IMX_CONF_OPTS += --egl-platform=wayland 50else 51GST1_IMX_CONF_OPTS += --egl-platform=fb 52endif 53endif 54else 55GST1_IMX_CONF_OPTS += --disable-eglvivsink 56endif 57 58# There's no --enable-g2d option 59ifeq ($(BR2_PACKAGE_GST1_IMX_G2D),) 60GST1_IMX_CONF_OPTS += --disable-g2d 61endif 62 63# There's no --enable-ipu option 64ifeq ($(BR2_PACKAGE_GST1_IMX_IPU),) 65GST1_IMX_CONF_OPTS += --disable-ipu 66endif 67 68# There's no --enable-mp3encoder option 69ifeq ($(BR2_PACKAGE_GST1_IMX_MP3ENCODER),) 70GST1_IMX_CONF_OPTS += --disable-mp3encoder 71endif 72 73# There's no --enable-pxp option 74ifeq ($(BR2_PACKAGE_GST1_IMX_PXP),) 75GST1_IMX_CONF_OPTS += --disable-pxp 76endif 77 78# There's no --enable-uniaudiodec option 79ifeq ($(BR2_PACKAGE_GST1_IMX_UNIAUDIODEC),) 80GST1_IMX_CONF_OPTS += --disable-uniaudiodec 81endif 82 83ifeq ($(BR2_PACKAGE_GST1_IMX_VPU),y) 84# There's no --enable-vpu option 85GST1_IMX_DEPENDENCIES += libimxvpuapi 86else 87GST1_IMX_CONF_OPTS += --disable-vpu 88endif 89 90ifeq ($(BR2_PACKAGE_GST1_IMX_V4L2VIDEOSRC),y) 91# There's no --enable-imxv4l2videosrc option 92GST1_IMX_DEPENDENCIES += gst1-plugins-bad 93else 94GST1_IMX_CONF_OPTS += --disable-imxv4l2videosrc 95endif 96 97ifeq ($(BR2_PACKAGE_GST1_IMX_V4L2VIDEOSINK),y) 98# There's no --enable-imxv4l2videosink option 99GST1_IMX_DEPENDENCIES += gst1-plugins-bad 100else 101GST1_IMX_CONF_OPTS += --disable-imxv4l2videosink 102endif 103 104$(eval $(waf-package)) 105