1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/graphics/libosmesa/Makefile
Emmanuel Vadot 450f410688 mesa-*: Update to 20.2.3
- Fix mesa-gallium-va and mesa-gallium-vdpau for X11 usage
 - Add a patch so iris will be prefered for compatible intel GPUs (>=broadwell)

PR:		250307 250325
2020-12-03 20:55:32 +00:00

52 lines
1.1 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= libosmesa
PORTVERSION= ${MESAVERSION}
CATEGORIES= graphics
COMMENT= Off-Screen Mesa implementation of the OpenGL API
USES= xorg
USE_XORG= xorgproto
.include <bsd.port.options.mk>
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
# Disable some options
MESON_ARGS+= -Ddri-drivers="" \
-Dgallium-drivers=swrast \
-Dvulkan-drivers="" \
-Dplatforms="" \
-Dgallium-vdpau=disabled \
-Dgallium-omx=disabled \
-Dgallium-va=disabled \
-Dgallium-opencl=disabled \
-Dgallium-xa=disabled \
-Dgallium-xvmc=disabled \
-Dgallium-nine=false \
-Dgles1=disabled \
-Dgles2=disabled \
-Dopengl=true \
-Dglx=disabled \
-Degl=disabled \
-Dgbm=disabled \
-Dtools="" \
-Dzstd=disabled
LDFLAGS_i386= -Wl,-znotext
.if ${ARCH} == sparc64
MESON_ARGS+= -Dosmesa=classic
.else
MESON_ARGS+= -Dosmesa=gallium
.endif
.include "${MASTERDIR}/Makefile.targets"
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/include/GL
${INSTALL_DATA} ${WRKSRC}/include/GL/osmesa.h \
${STAGEDIR}${PREFIX}/include/GL
.include <bsd.port.post.mk>