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