summaryrefslogtreecommitdiff
path: root/converters/libiconv
diff options
context:
space:
mode:
authorminskim <minskim>2007-11-07 17:24:28 +0000
committerminskim <minskim>2007-11-07 17:24:28 +0000
commit3f1954847c31006b400c6082470b8116dd3d2d77 (patch)
tree1c971111c839dd25a63189e0f14881437728f7c9 /converters/libiconv
parent74198fc60c5a74999d5b2405fd18d85ef3b2204d (diff)
downloadpkgsrc-3f1954847c31006b400c6082470b8116dd3d2d77.tar.gz
Fix version detection when the version number contains capital letters.
Diffstat (limited to 'converters/libiconv')
-rw-r--r--converters/libiconv/builtin.mk10
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; \
} \