blob: 47eb42b8e2088503cbf3c268a58be2450c33a53e (
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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
_XMASTERDIR_REL=../xlibre-server/
XMASTERDIR= ${_XMASTERDIR_REL:tA}
PATCHDIR?= ${XMASTERDIR}/files
DISTINFO_FILE?= ${XMASTERDIR}/distinfo
.include "${XMASTERDIR}/Makefile.version"
USES+= gl compiler:c11 meson pkgconfig tar:xz xorg
USE_GL+= gl
USE_XORG+= pixman xau xdmcp xfont2 xkbfile xorgproto xshmfence xtrans
OPTIONS_DEFINE+=LIBUNWIND
OPTIONS_DEFAULT+=LIBUNWIND
LIBUNWIND_DESC= Enable libunwind. (For better stack traces in case of an error)
SERVERS= xorg xnest xephyr xvfb
SERVERNAME= ${PORTNAME:S/^xlibre-/x/:S/xserver/xorg/}
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/mesa-dri
RUN_DEPENDS+= xkeyboard-config>=2.5:x11/xkeyboard-config \
xkbcomp:x11/xkbcomp \
${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/mesa-dri
MESON_ARGS+= -Dxwin=false \
-Dxquartz=false \
-Ddtrace=false \
-Dhal=false \
-Dsystemd_logind=false \
-Dxselinux=false \
-Dfallback_input_driver=libinput \
-Ddocs=false \
-Dxcsecurity=true
MESON_ARGS+= -D${SERVERNAME}=true
.for f in ${SERVERS:N${SERVERNAME}}
MESON_ARGS+= -D${f}=false
.endfor
FONTPATH_ROOT?= ${LOCALBASE}/share/fonts
FONTPATHD?= ${PREFIX}/etc/X11/fontpath.d
DEFAULT_FONTPATH_LIST= \
${FONTPATH_ROOT}/misc/ \
${FONTPATH_ROOT}/TTF/ \
${FONTPATH_ROOT}/OTF/ \
${FONTPATH_ROOT}/Type1/ \
${FONTPATH_ROOT}/100dpi/ \
${FONTPATH_ROOT}/75dpi/ \
catalogue:${FONTPATHD}
MESON_ARGS+= -Ddefault_font_path=${DEFAULT_FONTPATH_LIST:ts,}
# Non X server common flags
.if ${SERVERNAME} != xorg
MESON_ARGS+= -Dudev=false \
-Dudev_kms=false
PLIST=
PKGMESSAGE=
BINARY_NAME= ${SERVERNAME:C/^(.).*/\1/:tu}${SERVERNAME:C/^.//}
PLIST_FILES= bin/${BINARY_NAME} \
share/man/man1/${BINARY_NAME}.1.gz
.endif
.include <bsd.port.pre.mk>
.if ${OPSYS}==FreeBSD
AMD64=amd64
.else
AMD64=x86_64
.endif
.if ${PORT_OPTIONS:MLIBUNWIND}
. if ${ARCH} == aarch64 || ${ARCH} == ${AMD64} || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == powerpc || ${ARCH} == powerpc64 || ${ARCH} == powerpc64le
LIB_DEPENDS+= libunwind.so:devel/libunwind
MESON_ARGS+= -Dlibunwind=true
. endif
.else
MESON_ARGS+= -Dlibunwind=false
.endif
.if ${OPSYS} == FreeBSD
MESON_ARGS+= -Dsha1=libmd
.endif
.if ${SERVERNAME} != xorg
post-install:
${RM} -r ${STAGEDIR}${PREFIX}/lib/xorg/protocol.txt
${RMDIR} ${STAGEDIR}${PREFIX}/lib/xorg
${RM} ${STAGEDIR}${PREFIX}/share/man/man1/Xserver.1
.include <bsd.port.post.mk>
.endif
|