diff options
author | minskim <minskim> | 2007-11-07 17:24:28 +0000 |
---|---|---|
committer | minskim <minskim> | 2007-11-07 17:24:28 +0000 |
commit | b90610951fb2e4b17ed55308730b67cba9049d20 (patch) | |
tree | 1c971111c839dd25a63189e0f14881437728f7c9 /converters | |
parent | 324bea3160340606fbaf01173d39d2466265e6d1 (diff) | |
download | pkgsrc-b90610951fb2e4b17ed55308730b67cba9049d20.tar.gz |
Fix version detection when the version number contains capital letters.
Diffstat (limited to 'converters')
-rw-r--r-- | converters/libiconv/builtin.mk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/converters/libiconv/builtin.mk b/converters/libiconv/builtin.mk index 134ba9792cf..45b9e905dec 100644 --- a/converters/libiconv/builtin.mk +++ b/converters/libiconv/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.16 2006/04/06 06:21:40 reed Exp $ +# $NetBSD: builtin.mk,v 1.17 2007/11/07 17:24:28 minskim Exp $ BUILTIN_PKG:= iconv @@ -32,10 +32,10 @@ MAKEVARS+= IS_BUILTIN.iconv BUILTIN_VERSION.iconv!= \ ${AWK} 'BEGIN { hex="0123456789abcdef" } \ /\#define[ ]*_LIBICONV_VERSION[ ]/ { \ - M = 16 * (index(hex, substr($$3, 3, 1)) - 1); \ - M += index(hex, substr($$3, 4, 1)) - 1; \ - m = 16 * (index(hex, substr($$3, 5, 1)) - 1); \ - m += index(hex, substr($$3, 6, 1)) - 1; \ + M = 16 * (index(hex, tolower(substr($$3, 3, 1))) - 1); \ + M += index(hex, tolower(substr($$3, 4, 1))) - 1; \ + m = 16 * (index(hex, tolower(substr($$3, 5, 1))) - 1); \ + m += index(hex, tolower(substr($$3, 6, 1))) - 1; \ printf "%d.%d\n", M, m; \ exit 0; \ } \ |