summaryrefslogtreecommitdiff
path: root/math/mpfr/builtin.mk
diff options
context:
space:
mode:
authordrochner <drochner>2011-07-08 09:40:57 +0000
committerdrochner <drochner>2011-07-08 09:40:57 +0000
commit763e93e03cac756336aedbbaaedab4ce8f8c8d6d (patch)
tree953f851c986162e522ea854629a8ee6a59221b1c /math/mpfr/builtin.mk
parent51ff3eb89818126a01598f1fdf8c4eda936cb8a8 (diff)
downloadpkgsrc-763e93e03cac756336aedbbaaedab4ce8f8c8d6d.tar.gz
allow to use gmp/mpfr/mpc which comes with the system (eg on
NetBSD-current with gcc45)
Diffstat (limited to 'math/mpfr/builtin.mk')
-rw-r--r--math/mpfr/builtin.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/math/mpfr/builtin.mk b/math/mpfr/builtin.mk
new file mode 100644
index 00000000000..31c9c7d5801
--- /dev/null
+++ b/math/mpfr/builtin.mk
@@ -0,0 +1,13 @@
+# $NetBSD: builtin.mk,v 1.1 2011/07/08 09:40:57 drochner Exp $
+
+BUILTIN_PKG:= mpfr
+
+PKGCONFIG_FILE.mpfr= /usr/include/mpfr.h
+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); }'
+
+.include "../../mk/buildlink3/pkgconfig-builtin.mk"