summaryrefslogtreecommitdiff
path: root/graphics/glu
diff options
context:
space:
mode:
authorjlam <jlam>2006-03-30 18:06:17 +0000
committerjlam <jlam>2006-03-30 18:06:17 +0000
commit4a5a7cfee21adb0d8f6bc50d3e58d70a59e041a5 (patch)
treea4e8c404ab7153a9727f5d7f913a25bdd6b97971 /graphics/glu
parentb884195160fd50c9a83ede73dc5ebcb668e9ea8b (diff)
downloadpkgsrc-4a5a7cfee21adb0d8f6bc50d3e58d70a59e041a5.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/glu')
-rw-r--r--graphics/glu/builtin.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/glu/builtin.mk b/graphics/glu/builtin.mk
index 3d15449dde3..474b0050a0b 100644
--- a/graphics/glu/builtin.mk
+++ b/graphics/glu/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.9 2006/01/19 12:53:17 adam Exp $
+# $NetBSD: builtin.mk,v 1.10 2006/03/30 18:06:17 jlam Exp $
BUILTIN_PKG:= glu
@@ -13,7 +13,7 @@ BUILTIN_FIND_FILES.H_GLU= ${X11BASE}/include/GL/glu.h
###
.if !defined(IS_BUILTIN.glu)
IS_BUILTIN.glu= no
-. if exists(${H_GLU})
+. if empty(H_GLU:M__nonexistent__)
BUILTIN_IMAKE_CHECK:= glu:BuildGLULibrary
. include "../../mk/buildlink3/imake-check.mk"
IS_BUILTIN.glu= ${BUILTIN_IMAKE_CHECK.glu}
@@ -27,7 +27,7 @@ MAKEVARS+= IS_BUILTIN.glu
###
.if !defined(BUILTIN_PKG.glu) && \
!empty(IS_BUILTIN.glu:M[yY][eE][sS]) && \
- exists(${H_GLU})
+ empty(H_GLU:M__nonexistent__)
. include "../../graphics/Mesa/version.mk"
BUILTIN_PKG.glu= glu-${BUILTIN_VERSION.Mesa}
.endif