freebsd-ports/Mk/Uses/display.mk
Baptiste Daroussin a5da770e67 Make fonts repecting XDG
Xorg is now looking in ${LOCALBASE}/share/fonts by default
Xorg now accepts symlinks in etc/X11/fontpath.d (as decribed in Xserver(1))
Large cleanup on lots of font ports
All fonts are now properly dynamically generating fonts.dir and fonts.scale
instead of sometime overwriting existing ones)
All fonts are generating fontconfig's cache
Improve consistency in fonts ports
2015-03-21 23:05:19 +00:00

41 lines
1.1 KiB
Makefile

# $FreeBSD$
#
# 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:${PORTSDIR}/x11-servers/xorg-vfbserver \
${LOCALBASE}/share/fonts/misc/8x13O.pcf.gz:${PORTSDIR}/x11-fonts/xorg-fonts-miscbitmaps \
${LOCALBASE}/share/fonts/misc/fonts.alias:${PORTSDIR}/x11-fonts/font-alias \
${LOCALBASE}/share/X11/xkb/rules/base:${PORTSDIR}/x11/xkeyboard-config \
xkbcomp:${PORTSDIR}/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}"
.PHONY: start-display stop-display
pre-${display_ARGS}: start-display
post-${display_ARGS}: stop-display
start-display:
daemon -p ${XVFBPIDFILE} Xvfb :${XVFBPORT}
stop-display:
pkill -15 -F ${XVFBPIDFILE}
.endif
.endif