Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/libosmesa/Makefile
# Created by: gahr | # Created by: gahr | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= libosmesa | PORTNAME= libosmesa | ||||
PORTVERSION= ${MESAVERSION} | PORTVERSION= ${MESAVERSION} | ||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
COMMENT= Off-Screen Mesa implementation of the OpenGL API | COMMENT= Off-Screen Mesa implementation of the OpenGL API | ||||
LIB_DEPENDS= libexpat.so:textproc/expat2 \ | |||||
libglapi.so:graphics/mesa-libs | |||||
USE_XORG= glproto | USE_XORG= glproto | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.include "${.CURDIR}/../../graphics/mesa-dri/Makefile.common" | .include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common" | ||||
CONFIGURE_ARGS+= --disable-dri --disable-egl --disable-gbm \ | CONFIGURE_ARGS+= --disable-dri --disable-egl --disable-gbm \ | ||||
--with-gallium-drivers=swrast | --disable-gles2 --with-gallium-drivers=swrast | ||||
MESA_BUILD_WRKSRC= src/util src/compiler src/mapi src/mesa | MESA_BUILD_WRKSRC= src/util src/compiler src/mapi src/mesa | ||||
.if "${MESA_LLVM_VER}" != "" | .if "${MESA_LLVM_VER}" != "" | ||||
CONFGIURE_ARGS+= --enable-osmesa-gallium | CONFIGURE_ARGS+= --enable-osmesa-gallium | ||||
MESA_BUILD_WRKSRC+= src/gallium | MESA_BUILD_WRKSRC+= src/gallium | ||||
MESA_INSTALL_WRKSRC= src/gallium/state_trackers/osmesa src/gallium/targets/osmesa | MESA_INSTALL_WRKSRC= src/gallium/state_trackers/osmesa src/gallium/targets/osmesa | ||||
.else | .else | ||||
CONFIGURE_ARGS+= --enable-osmesa | CONFIGURE_ARGS+= --enable-osmesa | ||||
MESA_INSTALL_WRKSRC= src/mesa/drivers/osmesa | MESA_INSTALL_WRKSRC= src/mesa/drivers/osmesa | ||||
.endif | .endif | ||||
.include "${.CURDIR}/../../graphics/mesa-dri/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.mk> | .include <bsd.port.post.mk> |