There are still some incoming reports of dep issues when upgrading old systems. This should help with dep solving and getting past the file conflicts. Reviewed by: jbeich, x11 (manu) Differential Revision: https://reviews.freebsd.org/D31465
82 lines
2.2 KiB
Makefile
82 lines
2.2 KiB
Makefile
# Created by: Eric Anholt <anholt@FreeBSD.org>
|
|
|
|
PORTNAME= mesa-libs
|
|
PORTVERSION= ${MESAVERSION}
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics
|
|
|
|
COMMENT= OpenGL libraries that support GLX and EGL clients
|
|
|
|
LIB_DEPENDS= libOpenGL.so:graphics/libglvnd
|
|
|
|
OPTIONS_GROUP= PLATFORM
|
|
OPTIONS_GROUP_PLATFORM= PLATFORM_X11 PLATFORM_WAYLAND
|
|
PLATFORM_X11_DESC= Enable X11 support for GBM/EGL
|
|
PLATFORM_WAYLAND_DESC= Enable Wayland support for GBM/EGL
|
|
PLATFORM_WAYLAND_IMPLIES= WAYLAND
|
|
|
|
OPTIONS_DEFINE= WAYLAND ZSTD
|
|
OPTIONS_DEFAULT=WAYLAND PLATFORM_X11 PLATFORM_WAYLAND ZSTD
|
|
OPTIONS_SUB= yes
|
|
|
|
WAYLAND_DESC= Enable support for the Wayland platform in EGL
|
|
WAYLAND_BUILD_DEPENDS= wayland-protocols>=1.8:graphics/wayland-protocols
|
|
WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland
|
|
WAYLAND_IMPLIES= PLATFORM_WAYLAND
|
|
|
|
ZSTD_DESC= Use ZSTD for shader cache
|
|
ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd
|
|
ZSTD_MESON_ENABLED= zstd
|
|
|
|
.include <bsd.port.options.mk>
|
|
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
|
|
|
|
MESON_ARGS+= -Dgallium-drivers="" \
|
|
-Dgallium-vdpau=disabled \
|
|
-Dgallium-xvmc=disabled \
|
|
-Dgallium-omx=disabled \
|
|
-Dgallium-va=disabled \
|
|
-Dgallium-xa=disabled \
|
|
-Dgallium-nine=false \
|
|
-Dgallium-clover=disabled \
|
|
-Dosmesa=false \
|
|
-Dtools="" \
|
|
-Degl=enabled \
|
|
-Dgbm=enabled \
|
|
-Dvulkan-drivers="" \
|
|
-Dglvnd=true \
|
|
-Dprefer-iris=true
|
|
# Building EGL and GBM requires a dri driver so add r100
|
|
MESON_ARGS+= -Ddri-drivers="r100"
|
|
|
|
.if ${PORT_OPTIONS:MPLATFORM_X11}
|
|
MESA_PLATFORMS+= x11
|
|
USE_XORG+= xorgproto x11 xcb xdamage xext \
|
|
xfixes xshmfence xxf86vm xrandr
|
|
PLIST_SUB+= GLX=""
|
|
.else
|
|
MESON_ARGS+= -Dglx=disabled
|
|
PLIST_SUB+= GLX="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPLATFORM_WAYLAND} && ${PORT_OPTIONS:MWAYLAND}
|
|
MESA_PLATFORMS+= wayland
|
|
.endif
|
|
|
|
MESON_ARGS+= -Dplatforms="${MESA_PLATFORMS:ts,:tl}"
|
|
|
|
.if ${ARCH} == "i386"
|
|
# PR230239 Fix the build for i386 when WITH_LLD_IS_LD is set
|
|
LDFLAGS+=-Wl,-z,notext
|
|
.elif ${ARCH} == "powerpc"
|
|
USE_GCC= yes
|
|
.endif
|
|
|
|
.include "${MASTERDIR}/Makefile.targets"
|
|
|
|
post-install:
|
|
# Fallback if GLX_EXT_libglvnd is missing or vendor library doesn't exist
|
|
@${ECHO_CMD} "libGLX_indirect.so.0 libGLX_mesa.so.0" \
|
|
>${STAGEDIR}${PREFIX}/etc/libmap.d/mesa.conf
|
|
|
|
.include <bsd.port.post.mk>
|