aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers/xorgxrdp/Makefile
blob: cb929d3539d9d4802e124bd254bea792d25bfeb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
PORTNAME=	xorgxrdp
DISTVERSIONPREFIX=	v
DISTVERSION=	0.2.18
PORTREVISION=	2
CATEGORIES=	x11-drivers
DIST_SUBDIR=	xrdp

PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/

MAINTAINER=	meta@FreeBSD.org
COMMENT=	X.Org driver enabling use through an RDP session with xrdp

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	xauth:x11/xauth
BUILD_DEPENDS=	nasm:devel/nasm

USES=		autoreconf libtool:build localbase pkgconfig xorg
USE_XORG=	xorgproto xorg-server
USE_LDCONFIG=	yes
USE_GITHUB=	yes

GH_ACCOUNT=	neutrinolabs
GH_TUPLE=	neutrinolabs:xrdp:v0.9.18.1:xrdp
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

CONFIGURE_ENV=	XRDP_CFLAGS=-I${WRKSRC_xrdp}/common
CONFLICTS=	xorgxrdp-devel

OPTIONS_DEFINE=	DEBUG DRI3
OPTIONS_DEFAULT=

DRI3_DESC=	DRI3/Glamor OpenGL Support
DRI3_CONFIGURE_ENABLE=	glamor
DRI3_LIB_DEPENDS=	libepoxy.so:graphics/libepoxy
DRI3_SUB_FILES=		pkg-message

post-patch-DEBUG-on:
	${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e 's|#define LOG_LEVEL [0-9]*|#define LOG_LEVEL 20|'

pre-configure:
	@cd ${WRKSRC} && ./bootstrap

.include <bsd.port.mk>