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 | d71a98aa8eb185cc8c26f46f2502a25cb3135389 (patch) | |
tree | a4e8c404ab7153a9727f5d7f913a25bdd6b97971 /graphics/xpm | |
parent | 3987a638118f7f4cad35ee461afa830350d86564 (diff) | |
download | pkgsrc-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 'graphics/xpm')
-rw-r--r-- | graphics/xpm/builtin.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/xpm/builtin.mk b/graphics/xpm/builtin.mk index 277e9727234..eceebda0e4d 100644 --- a/graphics/xpm/builtin.mk +++ b/graphics/xpm/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.10 2005/06/03 19:12:49 jlam Exp $ +# $NetBSD: builtin.mk,v 1.11 2006/03/30 18:06:18 jlam Exp $ BUILTIN_PKG:= xpm @@ -13,7 +13,7 @@ BUILTIN_FIND_FILES.H_XPM= ${X11BASE}/include/X11/xpm.h ### .if !defined(IS_BUILTIN.xpm) IS_BUILTIN.xpm= no -. if exists(${H_XPM}) +. if empty(H_XPM:M__nonexistent__) . if !empty(X11BASE:M*openwin) && exists(/usr/sbin/pkgchk) IS_BUILTIN.xpm!= \ if /usr/sbin/pkgchk -l SUNWxwinc | ${GREP} -q xpm.h; then \ @@ -38,7 +38,7 @@ MAKEVARS+= IS_BUILTIN.xpm ### .if !defined(BUILTIN_PKG.xpm) && \ !empty(IS_BUILTIN.xpm:M[yY][eE][sS]) && \ - exists(${H_XPM}) + empty(H_XPM:M__nonexistent__) BUILTIN_VERSION.xpm!= \ ${AWK} 'BEGIN { split("abcdefghijklmnopqrstuvwxyz", alpha, ""); \ p = ".0" } \ |