kmod: bump to version 24
[buildroot-gz.git] / package / gstreamer1 / gst1-imx / gst1-imx.mk
blob88429aea2ea47de47c228ab8a88fcff7e3dff2c9
1 ################################################################################
3 # gst1-imx
5 ################################################################################
7 GST1_IMX_VERSION = 0.12.3
8 GST1_IMX_SITE = $(call github,Freescale,gstreamer-imx,$(GST1_IMX_VERSION))
10 GST1_IMX_LICENSE = LGPLv2+
11 GST1_IMX_LICENSE_FILES = LICENSE
13 GST1_IMX_INSTALL_STAGING = YES
15 GST1_IMX_DEPENDENCIES += \
16 host-pkgconf \
17 gstreamer1 \
18 gst1-plugins-base
20 GST1_IMX_CONF_OPTS = --prefix="/usr"
22 ifeq ($(BR2_LINUX_KERNEL),y)
23 # IPU and PXP need access to imx-specific kernel headers
24 GST1_IMX_DEPENDENCIES += linux
25 GST1_IMX_CONF_OPTS += --kernel-headers="$(LINUX_DIR)/include"
26 endif
28 ifeq ($(BR2_PACKAGE_IMX_CODEC),y)
29 GST1_IMX_DEPENDENCIES += imx-codec
30 endif
32 ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y)
33 GST1_IMX_DEPENDENCIES += imx-gpu-viv
34 endif
36 ifeq ($(BR2_PACKAGE_GST1_IMX_EGLVISINK),y)
37 # There's no --enable-eglvivsink option
38 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
39 GST1_IMX_DEPENDENCIES += xlib_libX11
40 GST1_IMX_CONF_OPTS += --egl-platform=x11
41 else
42 ifeq ($(BR2_PACKAGE_WAYLAND),y)
43 GST1_IMX_DEPENDENCIES += wayland
44 GST1_IMX_CONF_OPTS += --egl-platform=wayland
45 else
46 GST1_IMX_CONF_OPTS += --egl-platform=fb
47 endif
48 endif
49 else
50 GST1_IMX_CONF_OPTS += --disable-eglvivsink
51 endif
53 # There's no --enable-g2d option
54 ifeq ($(BR2_PACKAGE_GST1_IMX_G2D),)
55 GST1_IMX_CONF_OPTS += --disable-g2d
56 endif
58 # There's no --enable-ipu option
59 ifeq ($(BR2_PACKAGE_GST1_IMX_IPU),)
60 GST1_IMX_CONF_OPTS += --disable-ipu
61 endif
63 # There's no --enable-mp3encoder option
64 ifeq ($(BR2_PACKAGE_GST1_IMX_MP3ENCODER),)
65 GST1_IMX_CONF_OPTS += --disable-mp3encoder
66 endif
68 # There's no --enable-pxp option
69 ifeq ($(BR2_PACKAGE_GST1_IMX_PXP),)
70 GST1_IMX_CONF_OPTS += --disable-pxp
71 endif
73 # There's no --enable-uniaudiodec option
74 ifeq ($(BR2_PACKAGE_GST1_IMX_UNIAUDIODEC),)
75 GST1_IMX_CONF_OPTS += --disable-uniaudiodec
76 endif
78 ifeq ($(BR2_PACKAGE_GST1_IMX_VPU),y)
79 # There's no --enable-vpu option
80 GST1_IMX_DEPENDENCIES += libimxvpuapi
81 else
82 GST1_IMX_CONF_OPTS += --disable-vpu
83 endif
85 ifeq ($(BR2_PACKAGE_GST1_IMX_V4L2VIDEOSRC),y)
86 # There's no --enable-v4l2src option
87 GST1_IMX_DEPENDENCIES += gst1-plugins-bad
88 else
89 GST1_IMX_CONF_OPTS += --disable-v4l2src
90 endif
92 $(eval $(waf-package))