diff options
author | minskim <minskim@pkgsrc.org> | 2007-11-07 17:24:28 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2007-11-07 17:24:28 +0000 |
commit | a054bca239036dacfbb24659816a72e5d3ac0b08 (patch) | |
tree | 1c971111c839dd25a63189e0f14881437728f7c9 /converters | |
parent | d55b1cb26c4b0df0bdb4003bd9167bdd7987dd8e (diff) | |
download | pkgsrc-a054bca239036dacfbb24659816a72e5d3ac0b08.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; \ } \ |