summaryrefslogtreecommitdiff
path: root/graphics/MesaLib
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 /graphics/MesaLib
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 'graphics/MesaLib')
-rw-r--r--graphics/MesaLib/builtin.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/MesaLib/builtin.mk b/graphics/MesaLib/builtin.mk
index c557282c39f..dac3b0dc577 100644
--- a/graphics/MesaLib/builtin.mk
+++ b/graphics/MesaLib/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.12 2006/01/19 12:53:17 adam Exp $
+# $NetBSD: builtin.mk,v 1.13 2006/03/30 18:06:17 jlam Exp $
BUILTIN_PKG:= MesaLib
@@ -13,7 +13,7 @@ BUILTIN_FIND_FILES.H_MESALIB= ${X11BASE}/include/GL/glx.h
###
.if !defined(IS_BUILTIN.MesaLib)
IS_BUILTIN.MesaLib= no
-. if exists(${H_MESALIB})
+. if empty(H_MESALIB:M__nonexistent__)
BUILTIN_IMAKE_CHECK:= MesaLib:BuildGLXLibrary
. include "../../mk/buildlink3/imake-check.mk"
IS_BUILTIN.MesaLib= ${BUILTIN_IMAKE_CHECK.MesaLib}
@@ -27,7 +27,7 @@ MAKEVARS+= IS_BUILTIN.MesaLib
###
.if !defined(BUILTIN_PKG.MesaLib) && \
!empty(IS_BUILTIN.MesaLib:M[yY][eE][sS]) && \
- exists(${H_MESALIB})
+ empty(H_MESALIB:M__nonexistent__)
. include "../../graphics/Mesa/version.mk"
BUILTIN_PKG.MesaLib= MesaLib-${BUILTIN_VERSION.Mesa}
.endif