summaryrefslogtreecommitdiffstats
path: root/games/qix
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2005-01-01 22:16:28 +0000
committerkris <kris@FreeBSD.org>2005-01-01 22:16:28 +0000
commit751e1620399057383b0e26c92d8634103ab0a8d9 (patch)
treeaae3c437c51dc321eb55c87e22dac96e2cbdd750 /games/qix
parent633c089ab5d4c53df41f1bed2ae3950afc792920 (diff)
downloadFreeBSD-ports-751e1620399057383b0e26c92d8634103ab0a8d9.zip
FreeBSD-ports-751e1620399057383b0e26c92d8634103ab0a8d9.tar.gz
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)
Diffstat (limited to 'games/qix')
-rw-r--r--games/qix/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/games/qix/Makefile b/games/qix/Makefile
index 19139c0..50bfd58 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
OpenPOWER on IntegriCloud