summaryrefslogtreecommitdiff
path: root/x11-drivers/xorgxrdp/Makefile
diff options
context:
space:
mode:
authorKoichiro Iwao <meta@FreeBSD.org>2020-02-27 04:14:26 +0000
committerKoichiro Iwao <meta@FreeBSD.org>2020-02-27 04:14:26 +0000
commit960c1bb1aa21d5311a7f5bb78248cf9aa40797d5 (patch)
treeda9bf3ec090038c3f88d010f623e0b63836d4981 /x11-drivers/xorgxrdp/Makefile
parentBring in various kgdb fixes for powerpc. (diff)
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. Also add pkg-message to explain how to enable hardware acceleration. While here, fix misuse of "-I" flag to specify LIBDIR. [1] https://github.com/neutrinolabs/xrdp/issues/1029 PR: 244298 Submitted by: Derek Schrock <dereks@lifeofadishwasher.com> (initial revision) Approved by: meta (myself, maintainer) Sponsored by: HAW International
Notes
Notes: svn path=/head/; revision=527235
Diffstat (limited to 'x11-drivers/xorgxrdp/Makefile')
-rw-r--r--x11-drivers/xorgxrdp/Makefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/x11-drivers/xorgxrdp/Makefile b/x11-drivers/xorgxrdp/Makefile
index 993a02114455..5229fd75147e 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,21 @@ 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
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MDRI3}
+SUB_FILES= pkg-message
+.endif
post-patch-DEBUG-on:
${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e 's|#define LOG_LEVEL [0-9]*|#define LOG_LEVEL 20|'
@@ -38,4 +49,4 @@ post-patch-DEBUG-on:
pre-configure:
@cd ${WRKSRC} && ./bootstrap
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>