1 ################################################################################
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
+= \
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"
28 ifeq ($(BR2_PACKAGE_IMX_CODEC
),y
)
29 GST1_IMX_DEPENDENCIES
+= imx-codec
32 ifeq ($(BR2_PACKAGE_IMX_GPU_VIV
),y
)
33 GST1_IMX_DEPENDENCIES
+= imx-gpu-viv
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
42 ifeq ($(BR2_PACKAGE_WAYLAND
),y
)
43 GST1_IMX_DEPENDENCIES
+= wayland
44 GST1_IMX_CONF_OPTS
+= --egl-platform
=wayland
46 GST1_IMX_CONF_OPTS
+= --egl-platform
=fb
50 GST1_IMX_CONF_OPTS
+= --disable-eglvivsink
53 # There's no --enable-g2d option
54 ifeq ($(BR2_PACKAGE_GST1_IMX_G2D
),)
55 GST1_IMX_CONF_OPTS
+= --disable-g2d
58 # There's no --enable-ipu option
59 ifeq ($(BR2_PACKAGE_GST1_IMX_IPU
),)
60 GST1_IMX_CONF_OPTS
+= --disable-ipu
63 # There's no --enable-mp3encoder option
64 ifeq ($(BR2_PACKAGE_GST1_IMX_MP3ENCODER
),)
65 GST1_IMX_CONF_OPTS
+= --disable-mp3encoder
68 # There's no --enable-pxp option
69 ifeq ($(BR2_PACKAGE_GST1_IMX_PXP
),)
70 GST1_IMX_CONF_OPTS
+= --disable-pxp
73 # There's no --enable-uniaudiodec option
74 ifeq ($(BR2_PACKAGE_GST1_IMX_UNIAUDIODEC
),)
75 GST1_IMX_CONF_OPTS
+= --disable-uniaudiodec
78 ifeq ($(BR2_PACKAGE_GST1_IMX_VPU
),y
)
79 # There's no --enable-vpu option
80 GST1_IMX_DEPENDENCIES
+= libimxvpuapi
82 GST1_IMX_CONF_OPTS
+= --disable-vpu
85 ifeq ($(BR2_PACKAGE_GST1_IMX_V4L2VIDEOSRC
),y
)
86 # There's no --enable-v4l2src option
87 GST1_IMX_DEPENDENCIES
+= gst1-plugins-bad
89 GST1_IMX_CONF_OPTS
+= --disable-v4l2src
92 $(eval
$(waf-package
))