15a2f9b819
Release notes: 21.0.0: https://lists.freedesktop.org/archives/mesa-announce/2021-March/000622.html 21.0.1: https://lists.freedesktop.org/archives/mesa-announce/2021-March/000624.html 21.0.2: https://lists.freedesktop.org/archives/mesa-announce/2021-April/000625.html DRI swrast driver was removed: https://cgit.freedesktop.org/mesa/mesa/commit/?h=21.0&id=435de835cd639d1b9bb96f81fc224771dc90af6d OSMesa classic support was removed: https://cgit.freedesktop.org/mesa/mesa/commit/?h=21.0&id=ee802372180a2b4460cc7abb53438e45c6b6f1e4 To avoid any conflict, and to show that the new OSMesa is Gallium-based, we name the new option with a _GALLIUM suffix, even though this is now the only OSMesa implementation left. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [yann.morin.1998@free.fr: - rename the new option s/$/_GALLIUM/ - don't drop the the old (pre-classic) legacy option - slightly reword the OSMesa help entry ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
81 lines
2.1 KiB
Makefile
81 lines
2.1 KiB
Makefile
################################################################################
|
|
#
|
|
# mesa3d-demos
|
|
#
|
|
################################################################################
|
|
|
|
MESA3D_DEMOS_VERSION = 8.4.0
|
|
MESA3D_DEMOS_SOURCE = mesa-demos-$(MESA3D_DEMOS_VERSION).tar.bz2
|
|
MESA3D_DEMOS_SITE = ftp://ftp.freedesktop.org/pub/mesa/demos
|
|
# 0001-demos-makes-opengl-an-optional-component.patch
|
|
MESA3D_DEMOS_AUTORECONF = YES
|
|
MESA3D_DEMOS_DEPENDENCIES = host-pkgconf
|
|
MESA3D_DEMOS_LICENSE = MIT
|
|
|
|
MESA3D_DEMOS_CONF_OPTS += \
|
|
--disable-gles1
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7)$(BR2_PACKAGE_HAS_LIBGL),yy)
|
|
MESA3D_DEMOS_DEPENDENCIES += libgl libglew libglu xlib_libX11 xlib_libXext
|
|
MESA3D_DEMOS_CONF_OPTS += --enable-gl --enable-x11
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += --disable-gl --disable-x11
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += libegl
|
|
MESA3D_DEMOS_CONF_OPTS += --enable-egl
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += --disable-egl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += libgles
|
|
MESA3D_DEMOS_CONF_OPTS += --enable-gles2
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += --disable-gles2
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBOPENVG),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += libopenvg
|
|
MESA3D_DEMOS_CONF_OPTS += --enable-vg
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += --disable-vg
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += mesa3d
|
|
MESA3D_DEMOS_CONF_OPTS += --enable-gbm
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += --disable-gbm
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += freetype
|
|
MESA3D_DEMOS_CONF_OPTS += --enable-freetype2
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += --disable-freetype2
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFREEGLUT),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += libfreeglut
|
|
MESA3D_DEMOS_CONF_OPTS += --with-glut=$(STAGING_DIR)/usr
|
|
# osmesa support depends on glut
|
|
ifeq ($(BR2_PACKAGE_MESA3D_OSMESA_GALLIUM),y)
|
|
MESA3D_DEMOS_CONF_OPTS += --enable-osmesa
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += --disable-osmesa
|
|
endif
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += --without-glut --disable-osmesa
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_WAYLAND),y)
|
|
MESA3D_DEMOS_DEPENDENCIES += wayland
|
|
MESA3D_DEMOS_CONF_OPTS += --enable-wayland
|
|
else
|
|
MESA3D_DEMOS_CONF_OPTS += --disable-wayland
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|