freebsd-ports/graphics/libosmesa/Makefile
Matthew Rezny f4b4c28f25 Update the Mesa ports to 17.1.2
- patch the Intel driver to re-enable hardware acceleration on 10.x [1]

Reported by:	cpm [1]
Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D11148
2017-06-18 14:02:35 +00:00

41 lines
1.2 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= libosmesa
PORTVERSION= ${MESAVERSION}
CATEGORIES= graphics
COMMENT= Off-Screen Mesa implementation of the OpenGL API
USE_XORG= glproto
# As of version 17.0.5 / 17.1.2, the Gallium variant fails to build due to
# incorrectly ordered linker flags. Fortunately, autoreconf fixes the problem.
# Unfortunately, we must reconf before we know if we're doing a Gallium build.
USES= autoreconf
EXTRA_PATCHES= ${PATCHDIR}/configure.ac
.include <bsd.port.options.mk>
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
CONFIGURE_ARGS+= --disable-dri --disable-egl --disable-gbm \
--disable-gles2 --with-gallium-drivers=swrast
MESA_BUILD_WRKSRC= src/util src/compiler src/mapi src/mesa
.if "${MESA_LLVM_VER}" != ""
CONFIGURE_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
.endif
.include "${MASTERDIR}/Makefile.targets"
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/include/GL
${INSTALL_DATA} ${WRKSRC}/include/GL/osmesa.h \
${STAGEDIR}${PREFIX}/include/GL
.include <bsd.port.post.mk>