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= 6 | |||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
COMMENT= Off-Screen Mesa implementation of the OpenGL API | COMMENT= Off-Screen Mesa implementation of the OpenGL API | ||||
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/Makefile.common" | ||||
CONFIGURE_ARGS+= --disable-dri --disable-egl --disable-gbm \ | MESON_ARGS+= -Ddri-drivers="" -Degl=false -Dgbm=false \ | ||||
--disable-gles2 --with-gallium-drivers=swrast | -Dgles2=false -Dgallium-drivers=swrast | ||||
MESA_BUILD_WRKSRC= src/util src/compiler src/mapi src/mesa | |||||
LDFLAGS_i386= -Wl,-znotext | LDFLAGS_i386= -Wl,-znotext | ||||
.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH:Marm*} || ${ARCH} == i386 || ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} | .if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH:Marm*} || ${ARCH} == i386 || ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} | ||||
CONFIGURE_ARGS+= --enable-osmesa-gallium | MESON_ARGS+= -Dosmesa=gallium | ||||
MESA_BUILD_WRKSRC+= src/gallium | |||||
MESA_INSTALL_WRKSRC= src/gallium/state_trackers/osmesa src/gallium/targets/osmesa | |||||
.else | .else | ||||
CONFIGURE_ARGS+= --enable-osmesa | MESON_ARGS+= -Dosmesa=classic | ||||
MESA_INSTALL_WRKSRC= src/mesa/drivers/osmesa | |||||
.endif | .endif | ||||
.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> |