Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2018 00:00:21 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r482192 - head/graphics/mesa-dri
Message-ID:  <201810160000.w9G00L1T086616@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Tue Oct 16 00:00:20 2018
New Revision: 482192
URL: https://svnweb.freebsd.org/changeset/ports/482192

Log:
  graphics/mesa-dri: add WAYLAND option for Vulkan drivers
  
  PR:		221540
  Submitted by:	Greg V
  Approved by:	maintainer timeout (9 months timeout), zeising (earlier version)

Modified:
  head/graphics/mesa-dri/Makefile   (contents, props changed)

Modified: head/graphics/mesa-dri/Makefile
==============================================================================
--- head/graphics/mesa-dri/Makefile	Tue Oct 16 00:00:08 2018	(r482191)
+++ head/graphics/mesa-dri/Makefile	Tue Oct 16 00:00:20 2018	(r482192)
@@ -3,13 +3,14 @@
 
 PORTNAME=	mesa-dri
 PORTVERSION=	${MESAVERSION}
+PORTREVISION=	1
 CATEGORIES=	graphics
 
 COMMENT=	OpenGL hardware acceleration drivers for DRI2+
 
 USE_XORG=	xorgproto x11 xdamage xext xfixes xshmfence xv xvmc
 
-OPTIONS_DEFINE=	TEXTURE VAAPI VDPAU
+OPTIONS_DEFINE=	TEXTURE VAAPI VDPAU WAYLAND
 OPTIONS_DEFAULT=TEXTURE
 OPTIONS_SUB=	yes
 
@@ -23,6 +24,10 @@ VAAPI_USE=		XORG=xcb
 VDPAU_CONFIGURE_ENABLE=	vdpau
 VDPAU_LIB_DEPENDS=	libvdpau.so:multimedia/libvdpau
 
+WAYLAND_DESC=		Enable support for the Wayland platform in Vulkan drivers
+WAYLAND_BUILD_DEPENDS=	wayland-protocols>=1.8:graphics/wayland-protocols
+WAYLAND_LIB_DEPENDS=	libwayland-client.so:graphics/wayland
+
 .include <bsd.port.options.mk>
 .include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
 
@@ -71,6 +76,14 @@ LDFLAGS_i386=		-Wl,-znotext
 # --build-id isn't supported by old GNU ld.bfd in base
 USE_BINUTILS=		yes
 LDFLAGS+=		-B${LOCALBASE}/bin
+. endif
+.endif
+
+# enables VK_KHR_wayland_surface in Vulkan drivers
+.if ${PORT_OPTIONS:MWAYLAND}
+CONFIGURE_ARGS+=	--with-platforms=x11,surfaceless,drm,wayland
+. if empty(VULKAN_DRIVERS)
+IGNORE=	option WAYLAND is only valid on platforms with Vulkan
 . endif
 .endif
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810160000.w9G00L1T086616>