summaryrefslogtreecommitdiff
path: root/x11/xcursor
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/xcursor
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/xcursor')
-rw-r--r--x11/xcursor/builtin.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/x11/xcursor/builtin.mk b/x11/xcursor/builtin.mk
index d10ae5b057b..d29ac9b8630 100644
--- a/x11/xcursor/builtin.mk
+++ b/x11/xcursor/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.10 2005/12/04 01:46:45 rxg Exp $
+# $NetBSD: builtin.mk,v 1.11 2006/03/30 18:06:19 jlam Exp $
BUILTIN_PKG:= xcursor
@@ -13,7 +13,7 @@ BUILTIN_FIND_FILES.H_XCURSOR= ${X11BASE}/include/X11/Xcursor/Xcursor.h
###
.if !defined(IS_BUILTIN.xcursor)
IS_BUILTIN.xcursor= no
-. if exists(${H_XCURSOR})
+. if empty(H_XCURSOR:M__nonexistent__)
BUILTIN_IMAKE_CHECK:= xcursor:BuildXcursorLibrary
. include "../../mk/buildlink3/imake-check.mk"
IS_BUILTIN.xcursor= ${BUILTIN_IMAKE_CHECK.xcursor}
@@ -27,7 +27,7 @@ MAKEVARS+= IS_BUILTIN.xcursor
###
.if !defined(BUILTIN_PKG.xcursor) && \
!empty(IS_BUILTIN.xcursor:M[yY][eE][sS]) && \
- exists(${H_XCURSOR})
+ empty(H_XCURSOR:M__nonexistent__)
BUILTIN_VERSION.xcursor!= \
${AWK} '/\#define[ ]*XCURSOR_(LIB_)?MAJOR/ { M = $$3 } \
/\#define[ ]*XCURSOR_(LIB_)?MINOR/ { m = "."$$3 } \