From 88d78c401e6ee4a777388d5cdd174c980978b5c2 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sat, 1 Jan 2005 22:16:28 +0000 Subject: Fix package building by adding a dependency on Xvfb in the PACKAGE_BUILDING case. The package build scripts then DTRT and ensure this is running at build-time so a DISPLAY is available. Approved by: portmgr (self) --- games/qix/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'games/qix') diff --git a/games/qix/Makefile b/games/qix/Makefile index 19139c016948..50bfd58c9437 100644 --- a/games/qix/Makefile +++ b/games/qix/Makefile @@ -16,6 +16,9 @@ COMMENT= The classic arcade game BUILD_DEPENDS= bdftopcf:${X_CLIENTS_PORT} RUN_DEPENDS= mkfontdir:${X_CLIENTS_PORT} +.if defined(PACKAGE_BUILDING) +BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} +.endif .if defined(WITHOUT_X11) MAKE_ARGS= NO_X11=yes @@ -24,8 +27,8 @@ USE_X_PREFIX= yes PLIST= pkg-plist.x11 .endif -.if !defined(DISPLAY) || ${DISPLAY} == "" -IGNORE= Requires an active X session (and DISPLAY variable) to run xrdb. Please compile this while running X. +.if (!defined(DISPLAY) || ${DISPLAY} == "") && !defined(PACKAGE_BUILDING) +IGNORE= requires an active X session (and DISPLAY variable) to run xrdb. Please compile this while running X .endif MAN1= qix.1 -- cgit v1.2.3