6db0d126a4
Switch mesa over to use llvm80 instead of llvm60. Make it use the global LLVM_DEFAULT instead of deciding for ourself which llvm version to use. [1] Fix build of lang/beginet [1] Add patch from upstream to fix build of devel/libclc. The patch is taken from the git mirror of devel/libclc rather than the SVN repo, for convenience. Add a patch from mesa upstream preventing certain error messages when using amdgpu [2] Add a notice to bsd.default-versions.mk asking that the graphics team be informed before the llvm version is changed. Enable llvm and gallium on MIPS. As far as I can tell, this used to be the default before this change. Bump portrevisions since dependencies changed. PR: 230789 [1], [2] Submitted by: jbeich [1], tobik [2] Obtained from: FreeBSD Graphics Team development repo https://github.com/FreeBSDDesktop/freebsd-ports/commits/feature/mesa-llvm80 Sponsored by: B3 Init (zeising)
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
# Created by: Eric Anholt <anholt@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mesa-libs
|
|
PORTVERSION= ${MESAVERSION}
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
|
|
COMMENT= OpenGL libraries that support GLX and EGL clients
|
|
|
|
USE_XORG= xorgproto x11 xcb xdamage xext \
|
|
xfixes xshmfence xxf86vm
|
|
|
|
OPTIONS_DEFINE= WAYLAND
|
|
OPTIONS_DEFAULT=WAYLAND
|
|
OPTIONS_SUB= yes
|
|
|
|
WAYLAND_DESC= Enable support for the Wayland platform in EGL
|
|
WAYLAND_BUILD_DEPENDS= wayland-protocols>=1.8:graphics/wayland-protocols
|
|
WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland
|
|
|
|
.include <bsd.port.options.mk>
|
|
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
|
|
|
|
CONFIGURE_ARGS+= --with-dri-drivers="" --with-gallium-drivers=""
|
|
|
|
.if ${PORT_OPTIONS:MWAYLAND}
|
|
CONFIGURE_ARGS+= --with-platforms=x11,surfaceless,drm,wayland
|
|
.endif
|
|
|
|
MESA_BUILD_WRKSRC= src/mapi src/util
|
|
MESA_INSTALL_WRKSRC= src/mapi
|
|
|
|
.if ${PORT_OPTIONS:MWAYLAND}
|
|
MESA_BUILD_WRKSRC+= src/egl/wayland/wayland-drm
|
|
.endif
|
|
|
|
MESA_BUILD_WRKSRC+= src/gbm src/glx
|
|
MESA_INSTALL_WRKSRC+= src/gbm src/glx
|
|
|
|
MESA_BUILD_WRKSRC+= src/egl
|
|
MESA_INSTALL_WRKSRC+= src/egl
|
|
|
|
.if ${ARCH} == "i386"
|
|
# PR230239 Fix the build for i386 when WITH_LLD_IS_LD is set
|
|
LDFLAGS+=-Wl,-z,notext
|
|
.endif
|
|
|
|
.include "${MASTERDIR}/Makefile.targets"
|
|
|
|
post-install:
|
|
@cd ${WRKSRC}/src && ${SETENV} DESTDIR=${STAGEDIR} \
|
|
${MAKE_CMD} install-pkgconfigDATA install-glHEADERS install-glxHEADERS
|
|
|
|
.include <bsd.port.post.mk>
|