summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2011-07-08 09:40:57 +0000
committerdrochner <drochner@pkgsrc.org>2011-07-08 09:40:57 +0000
commit0a10803dd23b2981bbbea7254996a850da39eaeb (patch)
tree953f851c986162e522ea854629a8ee6a59221b1c /devel
parent61182b002f54e76aa0f6c5ad0b715568599ba3fb (diff)
downloadpkgsrc-0a10803dd23b2981bbbea7254996a850da39eaeb.tar.gz
allow to use gmp/mpfr/mpc which comes with the system (eg on
NetBSD-current with gcc45)
Diffstat (limited to 'devel')
-rw-r--r--devel/gmp/builtin.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/gmp/builtin.mk b/devel/gmp/builtin.mk
new file mode 100644
index 00000000000..c0e08913890
--- /dev/null
+++ b/devel/gmp/builtin.mk
@@ -0,0 +1,15 @@
+# $NetBSD: builtin.mk,v 1.1 2011/07/08 09:40:57 drochner Exp $
+
+BUILTIN_PKG:= gmp
+
+PKGCONFIG_FILE.gmp= /usr/include/gmp.h
+PKGCONFIG_BASE.gmp= /usr
+
+BUILTIN_VERSION_SCRIPT.gmp= ${AWK} \
+ '/\#define[ \t]*__GNU_MP_VERSION[ \t]/ { major = $$3; } \
+ /\#define[ \t]*__GNU_MP_VERSION_MINOR[ \t]/ { minor = $$3; } \
+ /\#define[ \t]*__GNU_MP_VERSION_PATCHLEVEL[ \t]/ { patch = $$3; } \
+ END { if (major!="" && minor!="" && patch!="") \
+ print major "." minor "." patch; else print ""; }'
+
+.include "../../mk/buildlink3/pkgconfig-builtin.mk"