freebsd-ports/Mk/Uses/display.mk
Baptiste Daroussin 88b0ae2bb9 xorg: upgrade to 21.1.4
Port changes:
- flavorize the port
- decouple Xwayland as it has been split from Xorg
- switch to meson
- cleanup non necessary patches anymore
- stop butchering the build system to play with Xorg.wrap but do it
  in post-install
- remove dmx (no longer existing)
- use libmd for sha1 (remove dependency on open/libre ssl)
- always activate RPC security
- simplify postinstall/deinstall script and make them cross install friendly
- remove the SUID option and make it the default, we cannot startx as user without it
- only keep the mesa-dri dependency on xorg-server not others

xf86-video-ati: fix build with recent xorg

While here incorporate a patch which prevent crash of the driver
when xrandr is invoked

Update x11/libxcvt to provide cvt(1) and friends which are not provided anymore
Xorg

Reviewed by:		tcberner, manu, jbeich
Approved by:		tcberner, manu
Differential Revision:	https://reviews.freebsd.org/D35661
2022-08-02 09:26:03 +02:00

35 lines
1,000 B
Makefile

# Feature: display
# Usage: USES=display or USES=display:ARGS
# Valid ARGS: install (default, implicit), any target
#
# Except the target where the DISPLAY is needed
#
# MAINTAINER: x11@FreeBSD.org
.if !defined(_INCLUDE_USES_DISPLAY_MK)
_INCLUDE_USES_DISPLAY_MK= yes
. if empty(display_ARGS)
display_ARGS= install
. endif
. if !defined(DISPLAY)
BUILD_DEPENDS+= Xvfb:x11-servers/xorg-server@xvfb \
${LOCALBASE}/share/fonts/misc/8x13O.pcf.gz:x11-fonts/xorg-fonts-miscbitmaps \
${LOCALBASE}/share/fonts/misc/fonts.alias:x11-fonts/font-alias \
${LOCALBASE}/share/X11/xkb/rules/base:x11/xkeyboard-config \
xkbcomp:x11/xkbcomp
XVFBPORT!= port=0; while test -S /tmp/.X11-unix/X$${port} ; do port=$$(( port + 1 )) ; done ; ${ECHO_CMD} $$port
XVFBPIDFILE= /tmp/.xvfb-${XVFBPORT}.pid
MAKE_ENV+= DISPLAY=":${XVFBPORT}"
_USES_${display_ARGS}+= 290:start-display 860:stop-display
start-display:
daemon -p ${XVFBPIDFILE} Xvfb :${XVFBPORT}
stop-display:
pkill -15 -F ${XVFBPIDFILE}
. endif
.endif