Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/mesa-libs/Makefile
# Created by: Eric Anholt <anholt@FreeBSD.org> | # Created by: Eric Anholt <anholt@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= mesa-libs | PORTNAME= mesa-libs | ||||
PORTVERSION= ${MESAVERSION} | PORTVERSION= ${MESAVERSION} | ||||
PORTREVISION= 2 | PORTREVISION= 2 | ||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
COMMENT= OpenGL libraries that support GLX and EGL clients | COMMENT= OpenGL libraries that support GLX and EGL clients | ||||
CONFLICTS_INSTALL= libglvnd # include/GL/gl.h | CONFLICTS_INSTALL= libglvnd # include/GL/gl.h | ||||
USES= xorg | |||||
USE_XORG= xorgproto x11 xcb xdamage xext \ | |||||
xfixes xshmfence xxf86vm xrandr | |||||
OPTIONS_GROUP= PLATFORM | OPTIONS_GROUP= PLATFORM | ||||
OPTIONS_GROUP_PLATFORM= PLATFORM_X11 PLATFORM_WAYLAND PLATFORM_DRM PLATFORM_SURFACELESS | OPTIONS_GROUP_PLATFORM= PLATFORM_X11 PLATFORM_WAYLAND PLATFORM_DRM PLATFORM_SURFACELESS | ||||
PLATFORM_X11_DESC= Enable X11 support for GBM/EGL | PLATFORM_X11_DESC= Enable X11 support for GBM/EGL | ||||
PLATFORM_WAYLAND_DESC= Enable Wayland support for GBM/EGL | PLATFORM_WAYLAND_DESC= Enable Wayland support for GBM/EGL | ||||
PLATFORM_DRM_DESC= Enable DRM support for GBM/EGL | PLATFORM_DRM_DESC= Enable DRM support for GBM/EGL | ||||
PLATFORM_SURFACELESS_DESC= Enable Surfaceless support for GBM/EGL | PLATFORM_SURFACELESS_DESC= Enable Surfaceless support for GBM/EGL | ||||
PLATFORM_WAYLAND_IMPLIES= WAYLAND | PLATFORM_WAYLAND_IMPLIES= WAYLAND | ||||
Show All 22 Lines | MESON_ARGS+= -Dgallium-drivers="" \ | ||||
-Degl=true \ | -Degl=true \ | ||||
-Dgbm=true \ | -Dgbm=true \ | ||||
-Dvulkan-drivers="" | -Dvulkan-drivers="" | ||||
# Building EGL and GBM requires a dri driver so add swrast | # Building EGL and GBM requires a dri driver so add swrast | ||||
MESON_ARGS+= -Ddri-drivers="swrast" | MESON_ARGS+= -Ddri-drivers="swrast" | ||||
.if ${PORT_OPTIONS:MPLATFORM_X11} | .if ${PORT_OPTIONS:MPLATFORM_X11} | ||||
MESA_PLATFORMS+= 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 | .endif | ||||
.if ${PORT_OPTIONS:MPLATFORM_WAYLAND} && ${PORT_OPTIONS:MWAYLAND} | .if ${PORT_OPTIONS:MPLATFORM_WAYLAND} && ${PORT_OPTIONS:MWAYLAND} | ||||
MESA_PLATFORMS+= wayland | MESA_PLATFORMS+= wayland | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MPLATFORM_DRM} | .if ${PORT_OPTIONS:MPLATFORM_DRM} | ||||
MESA_PLATFORMS+= drm | MESA_PLATFORMS+= drm | ||||
Show All 18 Lines |