freebsd-ports/graphics/libxatracker/Makefile
Johannes Lundberg 91f6994f6f New port: graphics/libxatracker
XA Tracker is built from Mesa sources and is required by xf86-video-vmware
in order to take advantage of accelerated graphics using the vmwgfx kernel
DRM driver.

This commit also adds libdrm as a runtime requirement for xf86-video-vmware
and patches the DRI device loading routine to work outside of Linux. If no
DRI device exists (vmwgfx kernel driver is not loaded), xf86-video-vmware
will fallback to software rendering.

The vmwgfx kernel driver is available in the drm-kmod port.

Reviewed by:	zeising
Approved by:	imp (mentor), zeising
Differential Revision:	D20153
2019-06-17 15:09:45 +00:00

36 lines
836 B
Makefile

# Created by: johalun
# $FreeBSD$
PORTNAME= libxatracker
PORTVERSION= ${MESAVERSION}
CATEGORIES= graphics
COMMENT= Mesa XA state tracker
USE_XORG= xorgproto
.include <bsd.port.options.mk>
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= Used only by VMWare supported architectures
CONFIGURE_ARGS+= --disable-dri \
--disable-egl \
--disable-gbm \
--disable-gles2 \
--disable-glx \
--disable-opengl \
--disable-shared-glapi \
--with-gallium-drivers= \
--with-platforms=
MESA_BUILD_WRKSRC= src/util src/compiler
LDFLAGS_i386= -Wl,-znotext
CONFIGURE_ARGS+= --enable-xa
MESA_BUILD_WRKSRC+= src/gallium
MESA_INSTALL_WRKSRC= src/gallium/state_trackers/xa src/gallium/targets/xa
.include "${MASTERDIR}/Makefile.targets"
.include <bsd.port.post.mk>