Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/display.mk
| Show All 20 Lines | BUILD_DEPENDS+= Xvfb:${PORTSDIR}/x11-servers/xorg-vfbserver \ | ||||
| ${LOCALBASE}/share/fonts/misc/fonts.alias:${PORTSDIR}/x11-fonts/font-alias \ | ${LOCALBASE}/share/fonts/misc/fonts.alias:${PORTSDIR}/x11-fonts/font-alias \ | ||||
| ${LOCALBASE}/share/X11/xkb/rules/base:${PORTSDIR}/x11/xkeyboard-config \ | ${LOCALBASE}/share/X11/xkb/rules/base:${PORTSDIR}/x11/xkeyboard-config \ | ||||
| xkbcomp:${PORTSDIR}/x11/xkbcomp | xkbcomp:${PORTSDIR}/x11/xkbcomp | ||||
| XVFBPORT!= port=0; while test -S /tmp/.X11-unix/X$${port} ; do port=$$(( port + 1 )) ; done ; ${ECHO_CMD} $$port | XVFBPORT!= port=0; while test -S /tmp/.X11-unix/X$${port} ; do port=$$(( port + 1 )) ; done ; ${ECHO_CMD} $$port | ||||
| XVFBPIDFILE= /tmp/.xvfb-${XVFBPORT}.pid | XVFBPIDFILE= /tmp/.xvfb-${XVFBPORT}.pid | ||||
| MAKE_ENV+= DISPLAY=":${XVFBPORT}" | MAKE_ENV+= DISPLAY=":${XVFBPORT}" | ||||
| .PHONY: start-display stop-display | _USES_${display_ARGS}+= 290:start-display 860:stop-display | ||||
| pre-${display_ARGS}: start-display | |||||
| post-${display_ARGS}: stop-display | |||||
| start-display: | start-display: | ||||
| daemon -p ${XVFBPIDFILE} Xvfb :${XVFBPORT} | daemon -p ${XVFBPIDFILE} Xvfb :${XVFBPORT} | ||||
| stop-display: | stop-display: | ||||
| pkill -15 -F ${XVFBPIDFILE} | pkill -15 -F ${XVFBPIDFILE} | ||||
| .endif | .endif | ||||
| .endif | .endif | ||||