summaryrefslogtreecommitdiff
path: root/x11/renderext
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/renderext
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/renderext')
-rw-r--r--x11/renderext/builtin.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/x11/renderext/builtin.mk b/x11/renderext/builtin.mk
index a1fb34091da..f85455cf1fb 100644
--- a/x11/renderext/builtin.mk
+++ b/x11/renderext/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.1.1.1 2005/10/15 16:36:57 wiz Exp $
+# $NetBSD: builtin.mk,v 1.2 2006/03/30 18:06:19 jlam Exp $
BUILTIN_PKG:= renderext
@@ -18,7 +18,7 @@ IS_BUILTIN.renderext= no
# we'll consider this X11 package to be built-in even if it's a part
# of one of the pkgsrc-installed X11 distributions.
#
-. if exists(${H_RENDER})
+. if empty(H_RENDER:M__nonexistent__)
IS_BUILTIN.renderext= yes
. endif
.endif
@@ -30,7 +30,7 @@ MAKEVARS+= IS_BUILTIN.renderext
###
.if !defined(BUILTIN_PKG.renderext) && \
!empty(IS_BUILTIN.renderext:M[yY][eE][sS]) && \
- exists(${H_RENDER})
+ empty(H_RENDER:M__nonexistent__)
BUILTIN_VERSION.renderext!= \
${AWK} '/\#define[ ]*RENDER_MAJOR/ { M = $$3 } \
/\#define[ ]*RENDER_MINOR/ { m = "."$$3 } \