From c14aff3beeae6a56e5703f31eb57327f28fe4e83 Mon Sep 17 00:00:00 2001 From: jperkin Date: Fri, 7 Mar 2014 15:07:44 +0000 Subject: Check ${X11BASE}/bin/bdftopcf exists before blindly using it, not all distributions include it. --- mk/tools/replace.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mk/tools') 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 -- cgit v1.2.3