From 2ca9721a211f468a3be3bda926cb409156454008 Mon Sep 17 00:00:00 2001 From: Derek Schrock Date: Fri, 21 Feb 2020 20:57:56 -0500 Subject: [PATCH] x11-drivers/xorgxrdp: enable dri3/glamor support With the advent of 1.20.x x11-server/xorg-server xorgxrdp can support dri3/glamor [1] to enable hardware supported OpenGL acceleration with an xorgxrdp desktop. Updating xorgxrdp's xorg.conf [2] and adding the user to the video group. [1] https://github.com/neutrinolabs/xrdp/issues/1029 [2] https://github.com/neutrinolabs/xorgxrdp/blob/devel/xrdpdev/xorg.conf#L47 --- x11-drivers/xorgxrdp/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/x11-drivers/xorgxrdp/Makefile b/x11-drivers/xorgxrdp/Makefile index 993a02114455..d1a361014513 100644 --- a/x11-drivers/xorgxrdp/Makefile +++ b/x11-drivers/xorgxrdp/Makefile @@ -3,7 +3,7 @@ PORTNAME= xorgxrdp DISTVERSIONPREFIX= v DISTVERSION= 0.2.12 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11-drivers DIST_SUBDIR= xrdp @@ -27,10 +27,15 @@ GNU_CONFIGURE= yes INSTALL_TARGET= install-strip CFLAGS+= -I${LOCALBASE}/include -LIBS= -I${LOCALBASE}/lib +LIBS= -L${LOCALBASE}/lib CONFIGURE_ENV= XRDP_CFLAGS=-I${WRKSRC_xrdp}/common -OPTIONS_DEFINE= DEBUG +OPTIONS_DEFINE= DEBUG DRI3 +OPTIONS_DEFAULT= DRI3 + +DRI3_DESC= DRI3/Glamor OpenGL Support +DRI3_CONFIGURE_ENABLE= glamor +DRI3_LIB_DEPENDS= libepoxy.so:graphics/libepoxy post-patch-DEBUG-on: ${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e 's|#define LOG_LEVEL [0-9]*|#define LOG_LEVEL 20|' -- 2.25.1