summaryrefslogtreecommitdiff
path: root/x11/compositeext
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
commit5821c0669819ba2f9f227b1d2e4caae4e6e92a56 (patch)
treea4e8c404ab7153a9727f5d7f913a25bdd6b97971 /x11/compositeext
parent4ebb7715f4e802673023e1e6a936e6c0d9ada427 (diff)
downloadpkgsrc-5821c0669819ba2f9f227b1d2e4caae4e6e92a56.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/compositeext')
-rw-r--r--x11/compositeext/builtin.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/x11/compositeext/builtin.mk b/x11/compositeext/builtin.mk
index af622262ed8..2d536a2d9ce 100644
--- a/x11/compositeext/builtin.mk
+++ b/x11/compositeext/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.5 2005/06/01 18:03:27 jlam Exp $
+# $NetBSD: builtin.mk,v 1.6 2006/03/30 18:06:19 jlam Exp $
BUILTIN_PKG:= compositeext
@@ -21,7 +21,8 @@ IS_BUILTIN.compositeext= 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_COMPOSITE}) && exists(${H_COMPOSITEPROTO})
+. if empty(H_COMPOSITE:M__nonexistent__) && \
+ empty(H_COMPOSITEPROTO:M__nonexistent__)
IS_BUILTIN.compositeext= yes
. endif
.endif