565058967f
Removed patches applied upstream: - 0005-vc4_bufmgr-fix-time_t-printf.patch https://cgit.freedesktop.org/mesa/mesa/commit/?h=20.1&id=ad81207d00623cb2156ca0ecab39d0bcad5b28c9 - 0006-pan_bo.h-add-time.h-include-for-time_t.patch https://cgit.freedesktop.org/mesa/mesa/commit/?h=20.1&id=eedeee0094841c863e2f6ddd8bc2212d011e0e2f - 0007-v3d_bufmgr-fix-time_t-printf.patch https://cgit.freedesktop.org/mesa/mesa/commit/?h=20.1&id=9f67806f141986c1d8310c5e0f1b2493434118d9 Renumbered remaining patches. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
76 lines
2.0 KiB
Makefile
76 lines
2.0 KiB
Makefile
################################################################################
|
|
#
|
|
# mesa3d-headers
|
|
#
|
|
################################################################################
|
|
|
|
# mesa3d-headers is inherently incompatible with mesa3d, so error out
|
|
# if both are enabled.
|
|
ifeq ($(BR2_PACKAGE_MESA3D)$(BR2_PACKAGE_MESA3D_HEADERS),yy)
|
|
$(error mesa3d-headers enabled, but mesa3d enabled too)
|
|
endif
|
|
|
|
# Not possible to directly refer to mesa3d variables, because of
|
|
# first/second expansion trickery...
|
|
MESA3D_HEADERS_VERSION = 20.1.1
|
|
MESA3D_HEADERS_SOURCE = mesa-$(MESA3D_HEADERS_VERSION).tar.xz
|
|
MESA3D_HEADERS_SITE = https://mesa.freedesktop.org/archive
|
|
MESA3D_HEADERS_DL_SUBDIR = mesa3d
|
|
MESA3D_HEADERS_LICENSE = MIT, SGI, Khronos
|
|
MESA3D_HEADERS_LICENSE_FILES = docs/license.html
|
|
|
|
# Only installs header files
|
|
MESA3D_HEADERS_INSTALL_STAGING = YES
|
|
MESA3D_HEADERS_INSTALL_TARGET = NO
|
|
|
|
MESA3D_HEADERS_DIRS = KHR
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
|
|
|
MESA3D_HEADERS_DIRS += GL
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
|
|
# Not using $(SED) because we do not want to work in-place, and $(SED)
|
|
# contains -i.
|
|
define MESA3D_HEADERS_BUILD_DRI_PC
|
|
sed -e 's:@VERSION@:$(MESA3D_HEADERS_VERSION):' \
|
|
package/mesa3d-headers/dri.pc \
|
|
>$(@D)/src/mesa/drivers/dri/dri.pc
|
|
endef
|
|
|
|
define MESA3D_HEADERS_INSTALL_DRI_PC
|
|
$(INSTALL) -D -m 0644 $(@D)/include/GL/internal/dri_interface.h \
|
|
$(STAGING_DIR)/usr/include/GL/internal/dri_interface.h
|
|
$(INSTALL) -D -m 0644 $(@D)/src/mesa/drivers/dri/dri.pc \
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/dri.pc
|
|
endef
|
|
|
|
endif # Xorg
|
|
|
|
endif # OpenGL
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
|
|
MESA3D_HEADERS_DIRS += EGL
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
|
|
MESA3D_HEADERS_DIRS += GLES GLES2
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBOPENCL),y)
|
|
MESA3D_HEADERS_DIRS += CL
|
|
endif
|
|
|
|
define MESA3D_HEADERS_BUILD_CMDS
|
|
$(MESA3D_HEADERS_BUILD_DRI_PC)
|
|
endef
|
|
|
|
define MESA3D_HEADERS_INSTALL_STAGING_CMDS
|
|
$(foreach d,$(MESA3D_HEADERS_DIRS),\
|
|
cp -dpfr $(@D)/include/$(d) $(STAGING_DIR)/usr/include/ || exit 1$(sep))
|
|
$(MESA3D_HEADERS_INSTALL_DRI_PC)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|