2013-06-06 01:53:30 +02:00
################################################################################
2007-08-10 21:07:51 +02:00
#
# mesa3d
#
2013-06-06 01:53:30 +02:00
################################################################################
2009-02-24 14:29:59 +01:00
package/mesa3d-headers: new package
Some OpenGL/EGL/GLES/VG providers do not provide the corresponding
headers, and rely on using "the headers provided by the distribution".
In our case, we can not rely on such headers, because we are not a
distribution, and we have no way to provide those headers (not even
speaking about relying on the headers provided by hte host distribution,
because they might well not be installed at all).
Also, we can not rely on another package to provide those headers,
because we can only have one provider enabled in any configuration.
The Khronos group provides such headers, and they are the reference
headers, but we can not realy use them:
- most of them are not packaged: they are not versioned and not
provided in a tarball, but as separately downloadable files;
- those headers are anyway incomplete: there are headers not provided
by Khronos, like GL.h
Instead, we rely on mesa3d to provide those headers: mesa3d has all the
headers we need.
Modifying the existing mesa3d package would not be easy; we'd have to
differentiate whther we need only the headers or the full package. The
meas3d Config.in and .mk are already quite non-trivial that adding such
a feature would render them even more illegible.
So, we introduce mea3d-headers as a new package, that is in fact just
mesa3d with a much simplified Config.in and .mk, that other OpenXXX
providers may select if they do not provide the OpenXXX headers.
Note: we're not installing GLES3 headers, because what Buildroot
currently calls libgles is in fact libgles2; we have no way to specify
that we have libgles3. So, we just install headers for GLES and GLES2.
[Thomas:
- Wrap Config.in help text to a reasonable length.
- Don't rely on mesa3d to provide mesa3d-headers: they should be
mutually exclusive. Instead, error out if both packages are
selected.
- Take into account the update of mesa3d to 10.4.5.
- Don't copy each header file individually, use a cp -dpfr call to
copy entires header files directories.]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-02-10 21:01:10 +01:00
# When updating the version, please also update mesa3d-headers
2020-12-31 11:18:59 +01:00
MESA3D_VERSION = 20.3.2
2015-03-15 17:10:01 +01:00
MESA3D_SOURCE = mesa-$( MESA3D_VERSION) .tar.xz
2017-03-04 20:54:56 +01:00
MESA3D_SITE = https://mesa.freedesktop.org/archive
2013-05-09 07:51:02 +02:00
MESA3D_LICENSE = MIT, SGI, Khronos
2020-11-01 09:46:57 +01:00
MESA3D_LICENSE_FILES = docs/license.rst
2013-05-09 07:51:02 +02:00
2010-04-01 14:46:33 +02:00
MESA3D_INSTALL_STAGING = YES
2009-02-24 14:29:59 +01:00
2014-05-15 19:37:05 +02:00
MESA3D_PROVIDES =
2012-02-06 17:19:53 +01:00
MESA3D_DEPENDENCIES = \
2016-04-08 14:35:00 +02:00
host-bison \
host-flex \
2019-09-21 20:10:48 +02:00
host-python3-mako \
2017-06-10 13:53:46 +02:00
libdrm \
zlib
2014-03-29 21:56:06 +01:00
2020-12-03 20:01:33 +01:00
i f e q ( $( BR 2_PACKAGE_EXPAT ) , y )
MESA3D_DEPENDENCIES += expat
e n d i f
2019-09-21 20:10:48 +02:00
MESA3D_CONF_OPTS = \
-Dgallium-omx= disabled \
2020-11-01 09:46:57 +01:00
-Dpower8= disabled
2017-11-05 11:49:58 +01:00
package/mesa3d: disable --as-needed linker flag for Codesourcery ARM 2014.05 toolchain
Meson build system enable by default -Wl,--as-needed [1][2] in the linker command line
and due to this the libmesa_dri_drivers.so build fail with the Codesourcery ARM and
Aarch64 2014.05 toolchain:
/home/buildroot/autobuild/run/instance-1/output-1/host/bin/arm-none-linux-gnueabi-g++
-o src/mesa/drivers/dri/libmesa_dri_drivers.so
-Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group
-Wl,-soname,libmesa_dri_drivers.so -Wl,--whole-archive
src/mesa/drivers/dri/radeon/libr100.a src/mesa/drivers/dri/nouveau/libnouveau_vieux.a
-Wl,--no-whole-archive
src/mesa/drivers/dri/common/libmegadriver_stub.a
src/mesa/drivers/dri/common/libdricommon.a
src/mapi/shared-glapi/libglapi.so.0.0.0
src/mesa/libmesa_classic.a src/mesa/libmesa_common.a
src/compiler/glsl/libglsl.a src/compiler/glsl/glcpp/libglcpp.a
src/util/libmesa_util.a src/util/format/libmesa_format.a
src/compiler/nir/libnir.a src/compiler/libcompiler.a
src/util/libxmlconfig.a
[...]
src/mesa/drivers/dri/common/libmegadriver_stub.a(megadriver_stub.c.o): In function `megadriver_stub_init':
megadriver_stub.c:(.text.startup+0x20): undefined reference to `dladdr'
megadriver_stub.c:(.text.startup+0xbc): undefined reference to `dlsym'
collect2: error: ld returned 1 exit status
This problem seems to be specific to this toolchain release (ARM and aarch64)
CodeSourcery 2014.05: gcc 4.8.3-prerelease; binutils 2.24.51.20140217; glibc 2.18
The following prebuilt toolchain has been tested and doesn't trigger this issue:
Linaro 4.9-4.9-2014.11: gcc 4.9.3; binutils 2.24.0; glibc 2.19
CodeSourcery 2014.11: gcc 4.9.1; binutils 2.24.51.20140217; glibc 2.20
Older toolchains doesn't have a recent enough glibc or linux-headers version
to breaking the build with mesa3d 20.1.0 or libdrm 2.4.102.
In order to build mesa3d with the CodeSourcery 2014.05 using --as-needed would be
reorder the static librairies:
diff --git a/src/mesa/drivers/dri/meson.build b/src/mesa/drivers/dri/meson.build
index b09ca16e38a..9ac6731c522 100644
--- a/src/mesa/drivers/dri/meson.build
+++ b/src/mesa/drivers/dri/meson.build
@@ -59,7 +59,7 @@ if _dri_drivers != []
[],
link_whole : _dri_drivers,
link_with : [
- libmegadriver_stub, libdricommon, libglapi,
+ libdricommon, libmegadriver_stub, libglapi,
libmesa_classic,
],
Instead, we can disable --as-needed from the meson build system using
"-Db_asneeded=false" only for this toolchain.
[1] https://mesonbuild.com/Builtin-options.html
[2] https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed
Fixes:
http://autobuild.buildroot.net/results/eec39a4fbfbfaa58980fab36f2fd902a16eecf0f/build-end.log
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-06-13 12:47:08 +02:00
# Codesourcery ARM 2014.05 fail to link libmesa_dri_drivers.so with --as-needed linker
# flag due to a linker bug between binutils 2.24 and 2.25 (2.24.51.20140217).
i f e q ( $( BR 2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM ) , y )
MESA3D_CONF_OPTS += -Db_asneeded= false
e n d i f
2018-04-04 18:31:20 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_LLVM ) , y )
MESA3D_DEPENDENCIES += host-llvm llvm
2019-09-28 22:04:31 +02:00
MESA3D_MESON_EXTRA_BINARIES += llvm-config= '$(STAGING_DIR)/usr/bin/llvm-config'
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dllvm= enabled
2018-04-04 18:31:20 +02:00
e l s e
# Avoid automatic search of llvm-config
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dllvm= disabled
2018-04-04 18:31:20 +02:00
e n d i f
2018-10-21 00:14:33 +02:00
# Disable opencl-icd: OpenCL lib will be named libOpenCL instead of
# libMesaOpenCL and CL headers are installed
i f e q ( $( BR 2_PACKAGE_MESA 3D_OPENCL ) , y )
MESA3D_PROVIDES += libopencl
MESA3D_DEPENDENCIES += clang libclc
2019-09-21 20:10:48 +02:00
MESA3D_CONF_OPTS += -Dgallium-opencl= standalone
2018-10-21 00:14:33 +02:00
e l s e
2019-09-21 20:10:48 +02:00
MESA3D_CONF_OPTS += -Dgallium-opencl= disabled
2018-10-21 00:14:33 +02:00
e n d i f
2018-10-20 16:34:48 +02:00
2018-04-28 19:28:03 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_NEEDS_ELFUTILS ) , y )
MESA3D_DEPENDENCIES += elfutils
e n d i f
2019-09-20 18:38:43 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_OPENGL_GLX ) , y )
2019-09-21 20:10:48 +02:00
# Disable-mangling not yet supported by meson build system.
# glx:
# dri : dri based GLX requires at least one DRI driver || dri based GLX requires shared-glapi
# xlib : xlib conflicts with any dri driver
# gallium-xlib : Gallium-xlib based GLX requires at least one gallium driver || Gallium-xlib based GLX requires softpipe or llvmpipe || gallium-xlib conflicts with any dri driver.
MESA3D_CONF_OPTS += -Dglx= dri
2015-02-02 21:41:21 +01:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_NEEDS_XA ) , y )
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dgallium-xa= enabled
2014-06-07 14:31:10 +02:00
e l s e
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dgallium-xa= disabled
2014-06-07 14:31:10 +02:00
e n d i f
2014-03-29 21:56:06 +01:00
e l s e
2014-09-27 21:32:44 +02:00
MESA3D_CONF_OPTS += \
2019-09-21 20:10:48 +02:00
-Dglx= disabled \
-Dgallium-xa= false
2014-03-29 21:56:06 +01:00
e n d i f
package/mesa3d: fix vc4 neon related compile failure
Add mesa3d patch to add a vc4 option to disable
the optional neon support and set it dependent
on BR2_ARM_CPU_HAS_NEON.
Fixes:
http://autobuild.buildroot.net/results/6387b0a99e1a0922811919623d9a10b0943988df
[1086/1254] Compiling C object 'src/gallium/drivers/vc4/691f666@@vc4_neon@sta/vc4_tiling_lt_neon.c.o'.
{standard input}: Assembler messages:
{standard input}:334: Error: selected processor does not support `vldm r4,{q0,q1,q2,q3}' in ARM mode
{standard input}:335: Error: selected processor does not support `vst1.8 d0,[r3],r2' in ARM mode
{standard input}:336: Error: selected processor does not support `vst1.8 d1,[r3],r2' in ARM mode
{standard input}:337: Error: selected processor does not support `vst1.8 d2,[r3],r2' in ARM mode
{standard input}:338: Error: selected processor does not support `vst1.8 d3,[r3],r2' in ARM mode
{standard input}:339: Error: selected processor does not support `vst1.8 d4,[r3],r2' in ARM mode
{standard input}:340: Error: selected processor does not support `vst1.8 d5,[r3],r2' in ARM mode
{standard input}:341: Error: selected processor does not support `vst1.8 d6,[r3],r2' in ARM mode
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-03-09 13:34:31 +01:00
i f e q ( $( BR 2_ARM_CPU_HAS_NEON ) , y )
MESA3D_CONF_OPTS += -Dgallium-vc4-neon= auto
e l s e
MESA3D_CONF_OPTS += -Dgallium-vc4-neon= disabled
e n d i f
2014-03-29 21:56:06 +01:00
# Drivers
#Gallium Drivers
2019-03-15 19:06:59 +01:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV) += etnaviv
2019-09-21 20:10:53 +02:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO) += freedreno
2020-02-08 08:42:50 +01:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_I915) += i915
2020-01-28 01:42:53 +01:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS) += iris
2019-04-08 11:58:38 +02:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO) += kmsro
2019-09-21 20:10:51 +02:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA) += lima
2014-03-29 21:56:06 +01:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU) += nouveau
2019-09-21 20:10:52 +02:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST) += panfrost
2020-02-09 16:12:02 +01:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300) += r300
2015-01-17 18:03:55 +01:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600) += r600
2018-04-27 15:49:15 +02:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI) += radeonsi
2014-03-29 21:56:06 +01:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA) += svga
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST) += swrast
2019-09-28 08:38:56 +02:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_TEGRA) += tegra
2020-02-04 15:44:11 +01:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_V3D) += v3d
2016-04-07 21:03:39 +02:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4) += vc4
2015-12-19 12:01:23 +01:00
MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL) += virgl
2014-03-29 21:56:06 +01:00
# DRI Drivers
MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST) += swrast
2014-08-31 01:49:19 +02:00
MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_I915) += i915
2014-03-29 21:56:06 +01:00
MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_I965) += i965
2015-12-19 12:01:24 +01:00
MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU) += nouveau
2019-09-21 20:10:48 +02:00
MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON) += r100
2016-07-17 18:27:55 +02:00
# Vulkan Drivers
MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL) += intel
2014-03-29 21:56:06 +01:00
2015-04-30 17:12:16 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_GALLIUM_DRIVER ) , )
2014-09-27 21:32:44 +02:00
MESA3D_CONF_OPTS += \
2019-09-21 20:10:48 +02:00
-Dgallium-drivers= \
-Dgallium-extra-hud= false
2014-03-29 21:56:06 +01:00
e l s e
2014-09-27 21:32:44 +02:00
MESA3D_CONF_OPTS += \
2020-11-01 09:46:57 +01:00
-Dshared-glapi= enabled \
2019-09-21 20:10:48 +02:00
-Dgallium-drivers= $( subst $( space) ,$( comma) ,$( MESA3D_GALLIUM_DRIVERS-y) ) \
-Dgallium-extra-hud= true
2014-03-29 21:56:06 +01:00
e n d i f
2015-04-30 17:12:16 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_DRI_DRIVER ) , )
2014-09-27 21:32:44 +02:00
MESA3D_CONF_OPTS += \
2020-11-01 09:46:57 +01:00
-Ddri-drivers= -Ddri3= disabled
2014-03-29 21:56:06 +01:00
e l s e
2018-07-21 16:16:36 +02:00
i f e q ( $( BR 2_PACKAGE_XLIB_LIBXSHMFENCE ) , y )
MESA3D_DEPENDENCIES += xlib_libxshmfence
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Ddri3= enabled
2014-07-17 07:42:54 +02:00
e l s e
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Ddri3= disabled
2014-07-17 07:42:54 +02:00
e n d i f
2014-09-27 21:32:44 +02:00
MESA3D_CONF_OPTS += \
2020-11-01 09:46:57 +01:00
-Dshared-glapi= enabled \
2019-09-21 20:10:48 +02:00
-Dglx-direct= true \
-Ddri-drivers= $( subst $( space) ,$( comma) ,$( MESA3D_DRI_DRIVERS-y) )
2014-03-29 21:56:06 +01:00
e n d i f
2016-07-17 18:27:55 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_VULKAN_DRIVER ) , )
MESA3D_CONF_OPTS += \
2019-09-21 20:10:48 +02:00
-Dvulkan-drivers=
2016-07-17 18:27:55 +02:00
e l s e
2018-08-23 16:40:36 +02:00
MESA3D_DEPENDENCIES += xlib_libxshmfence
2016-07-17 18:27:55 +02:00
MESA3D_CONF_OPTS += \
2020-11-01 09:46:57 +01:00
-Ddri3= enabled \
2019-09-21 20:10:48 +02:00
-Dvulkan-drivers= $( subst $( space) ,$( comma) ,$( MESA3D_VULKAN_DRIVERS-y) )
2016-07-17 18:27:55 +02:00
e n d i f
2014-03-29 21:56:06 +01:00
# APIs
2019-09-20 18:38:38 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_OSMESA_CLASSIC ) , y )
2019-09-21 20:10:48 +02:00
MESA3D_CONF_OPTS += -Dosmesa= classic
2015-10-03 19:21:55 +02:00
e l s e
2019-09-21 20:10:48 +02:00
MESA3D_CONF_OPTS += -Dosmesa= none
2015-10-03 19:21:55 +02:00
e n d i f
2014-04-20 00:01:43 +02:00
# Always enable OpenGL:
2019-09-21 20:10:48 +02:00
# - Building OpenGL ES without OpenGL is not supported, so always keep opengl enabled.
MESA3D_CONF_OPTS += -Dopengl= true
2014-04-17 18:04:19 +02:00
2015-07-29 21:42:54 +02:00
# libva and mesa3d have a circular dependency
# we do not need libva support in mesa3d, therefore disable this option
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dgallium-va= disabled
2015-07-29 21:42:54 +02:00
2016-07-17 18:27:54 +02:00
# libGL is only provided for a full xorg stack
2019-09-20 18:38:43 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_OPENGL_GLX ) , y )
2016-07-17 18:27:54 +02:00
MESA3D_PROVIDES += libgl
2016-11-06 19:11:00 +01:00
e l s e
d e f i n e M E S A 3 D _ R E M O V E _ O P E N G L _ H E A D E R S
rm -rf $( STAGING_DIR) /usr/include/GL/
e n d e f
MESA3D_POST_INSTALL_STAGING_HOOKS += MESA3D_REMOVE_OPENGL_HEADERS
2016-07-17 18:27:54 +02:00
e n d i f
2020-05-13 03:49:28 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_NEEDS_X 11) , y )
MESA3D_DEPENDENCIES += \
xlib_libX11 \
xlib_libXext \
xlib_libXdamage \
xlib_libXfixes \
xlib_libXrandr \
xlib_libXxf86vm \
xorgproto \
libxcb
MESA3D_PLATFORMS += x11
e n d i f
i f e q ( $( BR 2_PACKAGE_WAYLAND ) , y )
MESA3D_DEPENDENCIES += wayland wayland-protocols
MESA3D_PLATFORMS += wayland
e n d i f
2017-06-17 09:19:57 +02:00
MESA3D_CONF_OPTS += \
2019-09-21 20:10:48 +02:00
-Dplatforms= $( subst $( space) ,$( comma) ,$( MESA3D_PLATFORMS) )
2017-06-17 09:19:57 +02:00
2020-02-02 18:33:32 +01:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_GBM ) , y )
MESA3D_CONF_OPTS += \
2020-11-01 09:46:57 +01:00
-Dgbm= enabled
2020-02-02 18:33:32 +01:00
e l s e
MESA3D_CONF_OPTS += \
2020-11-01 09:46:57 +01:00
-Dgbm= disabled
2020-02-02 18:33:32 +01:00
e n d i f
2017-06-17 09:19:57 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_OPENGL_EGL ) , y )
MESA3D_PROVIDES += libegl
2014-09-27 21:32:44 +02:00
MESA3D_CONF_OPTS += \
2020-11-01 09:46:57 +01:00
-Degl= enabled
2014-03-29 21:56:06 +01:00
e l s e
2014-09-27 21:32:44 +02:00
MESA3D_CONF_OPTS += \
2020-11-01 09:46:57 +01:00
-Degl= disabled
2014-03-29 21:56:06 +01:00
e n d i f
i f e q ( $( BR 2_PACKAGE_MESA 3D_OPENGL_ES ) , y )
2014-05-15 19:37:05 +02:00
MESA3D_PROVIDES += libgles
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dgles1= enabled -Dgles2= enabled
2014-03-29 21:56:06 +01:00
e l s e
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dgles1= disabled -Dgles2= disabled
2014-03-29 21:56:06 +01:00
e n d i f
2007-08-10 21:07:51 +02:00
2019-09-21 20:10:47 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_XVMC ) , y )
2019-10-05 11:48:17 +02:00
MESA3D_DEPENDENCIES += xlib_libXv xlib_libXvMC
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dgallium-xvmc= enabled
2017-03-26 18:28:51 +02:00
e l s e
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dgallium-xvmc= disabled
2017-03-26 18:28:51 +02:00
e n d i f
2020-04-28 07:22:25 +02:00
i f e q ( $( BR 2_PACKAGE_VALGRIND ) , y )
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dvalgrind= enabled
2020-04-28 07:22:25 +02:00
MESA3D_DEPENDENCIES += valgrind
e l s e
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dvalgrind= disabled
2020-04-28 07:22:25 +02:00
e n d i f
2017-06-10 13:53:47 +02:00
i f e q ( $( BR 2_PACKAGE_LIBUNWIND ) , y )
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dlibunwind= enabled
2017-06-10 13:53:47 +02:00
MESA3D_DEPENDENCIES += libunwind
e l s e
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dlibunwind= disabled
2017-06-10 13:53:47 +02:00
e n d i f
2019-09-30 08:01:34 +02:00
i f e q ( $( BR 2_PACKAGE_MESA 3D_VDPAU ) , y )
2017-03-26 18:28:50 +02:00
MESA3D_DEPENDENCIES += libvdpau
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dgallium-vdpau= enabled
2017-03-26 18:28:50 +02:00
e l s e
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dgallium-vdpau= disabled
2017-03-26 18:28:50 +02:00
e n d i f
2017-03-19 21:51:53 +01:00
i f e q ( $( BR 2_PACKAGE_LM_SENSORS ) , y )
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dlmsensors= enabled
2017-03-19 21:51:53 +01:00
MESA3D_DEPENDENCIES += lm-sensors
e l s e
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dlmsensors= disabled
2017-03-19 21:51:53 +01:00
e n d i f
2020-02-23 11:32:57 +01:00
i f e q ( $( BR 2_PACKAGE_ZSTD ) , y )
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dzstd= enabled
2020-02-23 11:32:57 +01:00
MESA3D_DEPENDENCIES += zstd
e l s e
2020-11-01 09:46:57 +01:00
MESA3D_CONF_OPTS += -Dzstd= disabled
2020-02-23 11:32:57 +01:00
e n d i f
2019-09-21 20:10:48 +02:00
$( eval $ ( meson -package ) )