summaryrefslogtreecommitdiff
path: root/misc/openoffice
diff options
context:
space:
mode:
authormrauch <mrauch>2002-07-31 21:14:04 +0000
committermrauch <mrauch>2002-07-31 21:14:04 +0000
commitfa6ef007f7634267e9b2f0185f39ca9bfca9eb42 (patch)
treef7c7b87337a2991f090e14d3739ec4f53f58214e /misc/openoffice
parentdbbb7d0f0e00165ded430a88615824172cffd7b4 (diff)
downloadpkgsrc-fa6ef007f7634267e9b2f0185f39ca9bfca9eb42.tar.gz
Move the check, whether X is accessible, inside the "checkforx" target.
This avoids strange side effects (hanging xdpyinfo) when using targets that do not depend on an accessible X server. Fixes PR# pkg/17763.
Diffstat (limited to 'misc/openoffice')
-rw-r--r--misc/openoffice/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/misc/openoffice/Makefile b/misc/openoffice/Makefile
index c221d05f225..41bd9e7ac0d 100644
--- a/misc/openoffice/Makefile
+++ b/misc/openoffice/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2002/07/31 19:33:20 schmonz Exp $
+# $NetBSD: Makefile,v 1.15 2002/07/31 21:14:04 mrauch Exp $
DISTNAME= openoffice-0.0.0.641
PKGREVISION= 1
@@ -60,11 +60,8 @@ post-extract:
${WRKSRC}/../sablot/Sablot-0.52.patch
DISPLAY?= #empty, if unset
-.if ${DISPLAY}!=""
-DISPLAY_OK!=${X11BASE}/bin/xdpyinfo >/dev/null 2>&1 && echo YES || echo NO
-.endif
checkforx:
-.if ${DISPLAY}=="" || ${DISPLAY_OK} == "NO"
+.if ${DISPLAY}=="" || ${DISPLAY_OK:!${X11BASE}/bin/xdpyinfo >/dev/null 2>&1 && echo YES || echo NO!} == "NO"
.if exists(${X11BASE}/bin/Xvfb)
-${X11BASE}/bin/Xvfb :2 &
DISPLAY= ':2'