summaryrefslogtreecommitdiff
path: root/math/mpfr
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2011-07-14 18:06:59 +0000
committerdrochner <drochner@pkgsrc.org>2011-07-14 18:06:59 +0000
commit8d99ca56214757f117e0910b3afec0b3fe835bd0 (patch)
tree0498a9a60e93bbe609d886631ec38052028e4208 /math/mpfr
parentb7959ee29d684911e0c22502dcb45aeb7721be86 (diff)
downloadpkgsrc-8d99ca56214757f117e0910b3afec0b3fe835bd0.tar.gz
in the awk code to extract the version number from a header, avoid
the non-standard "gensub" function, from Alexander Nasonov per PM
Diffstat (limited to 'math/mpfr')
-rw-r--r--math/mpfr/builtin.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/math/mpfr/builtin.mk b/math/mpfr/builtin.mk
index 31c9c7d5801..6aacba76f47 100644
--- a/math/mpfr/builtin.mk
+++ b/math/mpfr/builtin.mk
@@ -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"