summaryrefslogtreecommitdiff
path: root/x11/xorg-server/Makefile
blob: 2aafe1b729a2eaa5f53d7ec7eb4d6c0e2ba4efba (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
COMMENT =	the X.Org X server

DISTNAME =	xorg-server-21.1.8
CATEGORIES =	x11

HOMEPAGE =	https://gitlab.freedesktop.org/xorg/xserver

MAINTAINER =	xenocara@openbsd.org

# MIT
PERMIT_PACKAGE =	Yes

# uses pledge()

WANTLIB = GL X11 X11-xcb Xdmcp Xfont2 c drm expat gbm glapi kvm m pciaccess
WANTLIB += pixman-1 pthread z
WANTLIB += Xau xcb xcb-dri2 xcb-dri3 xcb-xfixes xcb-glx xcb-icccm xcb-image
WANTLIB += xcb-keysyms xcb-present xcb-randr xcb-render xcb-render-util
WANTLIB += xcb-shape xcb-shm xcb-sync xcb-util xcb-xf86dri xcb-xkb xcb-xv
WANTLIB += Xext Xfixes Xxf86vm fontenc freetype xcvt xshmfence
WANTLIB += epoxy

SITES =		${SITE_XORG:=xserver/}

MODULES =		xenocara

BUILD_DEPENDS =		devel/xorg-util-macros \
			devel/xorgproto \
			devel/libxcvt \
			fonts/xorg-font-util \
			x11/xtrans \
			x11/libxkbfile \
			devel/xorgproto

RUN_DEPENDS =		x11/xkbcomp

LIB_DEPENDS =		graphics/pixman \
			graphics/libepoxy \
			graphics/mesa \
			sysutils/libdrm \
			x11/libX11 \
			x11/libXfont2 \
			x11/libxcb \
			x11/xcb-util \
			x11/xcb-util-image  \
			x11/xcb-util-keysyms \
			x11/xcb-util-renderutil \
			x11/xcb-util-wm

SEPARATE_BUILD =	yes
CONFIGURE_STYLE =	autoreconf

GLX_OPTION=     --enable-glamor
KDRIVE_OPTION=  --enable-kdrive --enable-xephyr
DRI_OPTION=     --enable-dri --enable-dri2

XKB_PATH=       ${X11BASE}/share/X11/xkb
XKB_RULES=      base

CONFIGURE_ARGS= --localstatedir=/var --sysconfdir=/etc/X11 \
                --with-xkb-path=${XKB_PATH} \
                --with-xkb-output=/var/db/xkb \
                --with-default-xkb-rules=${XKB_RULES} \
                --with-module-dir=${X11BASE}/lib/modules ${GLX_OPTION} \
                --disable-install-setuid --enable-privsep \
                ${KDRIVE_OPTION} \
                --enable-xcsecurity --disable-xdm-auth-1 \
                --without-fop --without-xmlto --without-xsltproc \
                --disable-dmx ${NO_XORG_OPTION} \
                --disable-unit-tests \
                ${DRI_OPTION}

NO_TEST =		Yes

.include <bsd.port.mk>