summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-03-07 15:07:44 +0000
committerjperkin <jperkin@pkgsrc.org>2014-03-07 15:07:44 +0000
commitc14aff3beeae6a56e5703f31eb57327f28fe4e83 (patch)
tree33955d7599bc89a509d286d71b448df987237080 /mk/tools
parent337c9f7f2dbab51051b426e7413da4ad93afe47e (diff)
downloadpkgsrc-c14aff3beeae6a56e5703f31eb57327f28fe4e83.tar.gz
Check ${X11BASE}/bin/bdftopcf exists before blindly using it, not all
distributions include it.
Diffstat (limited to 'mk/tools')
-rw-r--r--mk/tools/replace.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 338d46fd838..58d12d9f0bd 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.267 2014/02/14 07:43:46 obache Exp $
+# $NetBSD: replace.mk,v 1.268 2014/03/07 15:07:44 jperkin Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -1192,7 +1192,7 @@ TOOLS_PATH.mkfontscale= ${TOOLS_PREFIX.mkfontscale}/bin/mkfontscale
MAKEFLAGS+= TOOLS_IGNORE.bdftopcf=
. elif !empty(_TOOLS_USE_PKGSRC.bdftopcf:M[yY][eE][sS])
TOOLS_CREATE+= bdftopcf
-. if !empty(X11_TYPE:Mnative)
+. if !empty(X11_TYPE:Mnative) && exists(${X11BASE}/bin/bdftopcf)
TOOLS_PATH.bdftopcf= ${X11BASE}/bin/bdftopcf
. else
TOOLS_DEPENDS.bdftopcf?= bdftopcf-[0-9]*:../../fonts/bdftopcf