diff options
author | jlam <jlam@pkgsrc.org> | 2006-03-30 18:06:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-03-30 18:06:17 +0000 |
commit | 5821c0669819ba2f9f227b1d2e4caae4e6e92a56 (patch) | |
tree | a4e8c404ab7153a9727f5d7f913a25bdd6b97971 /x11/xcursor | |
parent | 4ebb7715f4e802673023e1e6a936e6c0d9ada427 (diff) | |
download | pkgsrc-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/xcursor')
-rw-r--r-- | x11/xcursor/builtin.mk | 6 |
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 } \ |