summaryrefslogtreecommitdiff
path: root/converters/libiconv
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 /converters/libiconv
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 'converters/libiconv')
-rw-r--r--converters/libiconv/builtin.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/converters/libiconv/builtin.mk b/converters/libiconv/builtin.mk
index bda1405ad4b..59d24953110 100644
--- a/converters/libiconv/builtin.mk
+++ b/converters/libiconv/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.14 2005/06/06 01:30:56 jlam Exp $
+# $NetBSD: builtin.mk,v 1.15 2006/03/30 18:06:17 jlam Exp $
BUILTIN_PKG:= iconv
@@ -15,7 +15,7 @@ BUILTIN_FIND_GREP.H_ICONV= GNU LIBICONV Library
###
.if !defined(IS_BUILTIN.iconv)
IS_BUILTIN.iconv= no
-. if empty(H_ICONV:M${LOCALBASE}/*) && exists(${H_ICONV}) && \
+. if empty(H_ICONV:M__nonexistent__) && empty(H_ICONV:M${LOCALBASE}/*) && \
!empty(BUILTIN_LIB_FOUND.iconv:M[yY][eE][sS])
IS_BUILTIN.iconv= yes
. endif
@@ -28,7 +28,7 @@ MAKEVARS+= IS_BUILTIN.iconv
###
.if !defined(BUILTIN_PKG.iconv) && \
!empty(IS_BUILTIN.iconv:M[yY][eE][sS]) && \
- exists(${H_ICONV})
+ empty(H_ICONV:M__nonexistent__)
BUILTIN_VERSION.iconv!= \
${AWK} 'BEGIN { hex="0123456789abcdef" } \
/\#define[ ]*_LIBICONV_VERSION[ ]/ { \