in the awk code to extract the version number from a header, avoid

the non-standard "gensub" function, from Alexander Nasonov per PM
This commit is contained in:
drochner 2011-07-14 18:06:59 +00:00
parent a034a44ec3
commit e0f64fff72

View file

@ -1,4 +1,4 @@
# $NetBSD: builtin.mk,v 1.1 2011/07/08 09:40:57 drochner Exp $
# $NetBSD: builtin.mk,v 1.2 2011/07/14 18:06:59 drochner Exp $
BUILTIN_PKG:= mpfr
@ -7,7 +7,7 @@ PKGCONFIG_BASE.mpfr= /usr
BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \
'/\#define[ \t]*MPFR_VERSION_STRING[ \t]/ { \
v = substr($$3, 2, length($$3)-2); } \
END { print gensub("-p",".",0,v); }'
v = substr($$3, 2, length($$3)-2) } \
END { gsub("-p",".",v); print v }'
.include "../../mk/buildlink3/pkgconfig-builtin.mk"