summaryrefslogtreecommitdiff
path: root/x11/Xrender/builtin.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-03-30 18:06:17 +0000
committerjlam <jlam@pkgsrc.org>2006-03-30 18:06:17 +0000
commitd71a98aa8eb185cc8c26f46f2502a25cb3135389 (patch)
treea4e8c404ab7153a9727f5d7f913a25bdd6b97971 /x11/Xrender/builtin.mk
parent3987a638118f7f4cad35ee461afa830350d86564 (diff)
downloadpkgsrc-d71a98aa8eb185cc8c26f46f2502a25cb3135389.tar.gz
Avoid extra stat() calls by not repeatedly checking whether a file
exists on the disk -- we can just check whether a variable defined by find-files.mk is "__nonexistent__" or not.
Diffstat (limited to 'x11/Xrender/builtin.mk')
-rw-r--r--x11/Xrender/builtin.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/x11/Xrender/builtin.mk b/x11/Xrender/builtin.mk
index 4f28f9daf1c..cccc7ec9213 100644
--- a/x11/Xrender/builtin.mk
+++ b/x11/Xrender/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.15 2005/10/09 21:30:55 jmmv Exp $
+# $NetBSD: builtin.mk,v 1.16 2006/03/30 18:06:19 jlam Exp $
BUILTIN_PKG:= Xrender
@@ -13,7 +13,7 @@ BUILTIN_FIND_FILES.H_XRENDER= ${X11BASE}/include/X11/extensions/Xrender.h
###
.if !defined(IS_BUILTIN.Xrender)
IS_BUILTIN.Xrender= no
-. if exists(${H_XRENDER})
+. if empty(H_XRENDER:M__nonexistent__)
BUILTIN_IMAKE_CHECK:= Xrender:BuildRenderLibrary
. include "../../mk/buildlink3/imake-check.mk"
IS_BUILTIN.Xrender= ${BUILTIN_IMAKE_CHECK.Xrender}
@@ -27,7 +27,7 @@ MAKEVARS+= IS_BUILTIN.Xrender
###
.if !defined(BUILTIN_PKG.Xrender) && \
!empty(IS_BUILTIN.Xrender:M[yY][eE][sS]) && \
- exists(${H_XRENDER})
+ empty(H_XRENDER:M__nonexistent__)
#
# Xrender doesn't provide a method of discovering the version number of
# the software. Match up Xrender versions with X11 versions for an