1PORTNAME= libosmesa 2PORTVERSION= ${MESAVERSION} 3PORTREVISION= 1 4CATEGORIES= graphics 5 6COMMENT= Off-Screen Mesa implementation of the OpenGL API 7WWW= https://www.mesa3d.org/ 8 9LICENSE= mit 10LICENSE_FILE= ${WRKSRC}/docs/license.rst 11 12LIB_DEPENDS+= libglapi.so:graphics/mesa-libs 13 14USES= llvm:lib,noexport xorg 15USE_XORG= xorgproto 16USE_LDCONFIG= yes 17 18.include <bsd.mport.options.mk> 19.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common" 20 21# Disable some options 22MESON_ARGS+= -Dgallium-drivers="swrast" \ 23 -Dvulkan-drivers="" \ 24 -Dplatforms="" \ 25 -Dandroid-libbacktrace=disabled \ 26 -Dgallium-vdpau=disabled \ 27 -Dgallium-omx=disabled \ 28 -Dgallium-va=disabled \ 29 -Dgallium-opencl=disabled \ 30 -Dgallium-xa=disabled \ 31 -Dgallium-nine=false \ 32 -Dgles1=disabled \ 33 -Dgles2=disabled \ 34 -Dglvnd=disabled \ 35 -Dlmsensors=disabled \ 36 -Dmicrosoft-clc=disabled \ 37 -Dopengl=true \ 38 -Dglx=disabled \ 39 -Degl=disabled \ 40 -Dgbm=disabled \ 41 -Dtools="" \ 42 -Dvalgrind=disabled \ 43 -Dxlib-lease=disabled \ 44 -Dzstd=disabled 45LDFLAGS_i386= -Wl,-znotext 46 47MESON_ARGS+= -Dosmesa=true 48 49.if ${ARCH} != amd64 50MESON_ARGS+= -Dintel-rt=disabled # https://gitlab.freedesktop.org/mesa/mesa/-/issues/10629 51.endif 52 53post-install: 54 @${MKDIR} ${PREFIX}/include/GL 55 ${INSTALL_DATA} ${WRKSRC}/include/GL/osmesa.h \ 56 ${PREFIX}/include/GL 57 58.include <bsd.port.post.mk> 59