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= 0 | |||||
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 \ | LIB_DEPENDS= libexpat.so:textproc/expat2 \ | ||||
libglapi.so:graphics/libglapi | libglapi.so:graphics/mesa-libs | ||||
USE_XORG= dri2proto dri3proto glproto presentproto x11 xau xcb xdmcp xvmc | USE_XORG= glproto | ||||
# libosmesa doesn't link agains libGL but osmesa.h needs GL/gl.h | |||||
# and both headers are intalled by libGL .... | |||||
USE_GL= gl | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.include "${.CURDIR}/../../graphics/mesa-dri/Makefile.common" | |||||
.include "${.CURDIR}/../../graphics/libGL/Makefile.common" | CONFIGURE_ARGS+= --disable-dri --disable-egl --disable-gbm \ | ||||
--with-gallium-drivers=swrast | |||||
MESA_BUILD_WRKSRC= src/util src/compiler src/mapi src/mesa | |||||
#MESA_BUILD_WRKSRC= src/util src/glsl src/mesa #/drivers/osmesa | .if ${MESA_LLVM_VER} != "" | ||||
CONFGIURE_ARGS+= --enable-osmesa-gallium | |||||
MESA_BUILD_WRKSRC+= src/gallium | |||||
MESA_INSTALL_WRKSRC= src/gallium/state_trackers/osmesa src/gallium/targets/osmesa | |||||
.else | |||||
CONFIGURE_ARGS+= --enable-osmesa | |||||
MESA_INSTALL_WRKSRC= src/mesa/drivers/osmesa | MESA_INSTALL_WRKSRC= src/mesa/drivers/osmesa | ||||
.endif | |||||
.include "${.CURDIR}/../../graphics/libGL/Makefile.targets" | .include "${.CURDIR}/../../graphics/mesa-dri/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.mk> |