]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/gstreamer1/gst1-imx/gst1-imx.mk
a21e2829bed5760e16e6d1c642ff3022f4d49334
[coffee/buildroot.git] / package / gstreamer1 / gst1-imx / gst1-imx.mk
1 ################################################################################
2 #
3 # gst1-imx
4 #
5 ################################################################################
6
7 GST1_IMX_VERSION = 0.12.3
8 GST1_IMX_SITE = $(call github,Freescale,gstreamer-imx,$(GST1_IMX_VERSION))
9
10 GST1_IMX_LICENSE = LGPL-2.0+
11 GST1_IMX_LICENSE_FILES = LICENSE
12
13 GST1_IMX_INSTALL_STAGING = YES
14
15 GST1_IMX_DEPENDENCIES += \
16         host-pkgconf \
17         gstreamer1 \
18         gst1-plugins-base
19
20 GST1_IMX_CONF_OPTS = --prefix="/usr"
21
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
27
28 ifeq ($(BR2_PACKAGE_IMX_CODEC),y)
29 GST1_IMX_DEPENDENCIES += imx-codec
30 endif
31
32 ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y)
33 GST1_IMX_DEPENDENCIES += imx-gpu-viv
34 endif
35
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
52
53 # There's no --enable-g2d option
54 ifeq ($(BR2_PACKAGE_GST1_IMX_G2D),)
55 GST1_IMX_CONF_OPTS += --disable-g2d
56 endif
57
58 # There's no --enable-ipu option
59 ifeq ($(BR2_PACKAGE_GST1_IMX_IPU),)
60 GST1_IMX_CONF_OPTS += --disable-ipu
61 endif
62
63 # There's no --enable-mp3encoder option
64 ifeq ($(BR2_PACKAGE_GST1_IMX_MP3ENCODER),)
65 GST1_IMX_CONF_OPTS += --disable-mp3encoder
66 endif
67
68 # There's no --enable-pxp option
69 ifeq ($(BR2_PACKAGE_GST1_IMX_PXP),)
70 GST1_IMX_CONF_OPTS += --disable-pxp
71 endif
72
73 # There's no --enable-uniaudiodec option
74 ifeq ($(BR2_PACKAGE_GST1_IMX_UNIAUDIODEC),)
75 GST1_IMX_CONF_OPTS += --disable-uniaudiodec
76 endif
77
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
84
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
91
92 $(eval $(waf-package))