pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc allow to use gmp/mpfr/mpc which comes with the system ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/822978577de8
branches: trunk
changeset: 590311:822978577de8
user: drochner <drochner%pkgsrc.org@localhost>
date: Fri Jul 08 09:40:57 2011 +0000
description:
allow to use gmp/mpfr/mpc which comes with the system (eg on
NetBSD-current with gcc45)
diffstat:
devel/gmp/builtin.mk | 15 +++++++++++++++
math/mpcomplex/builtin.mk | 13 +++++++++++++
math/mpfr/builtin.mk | 13 +++++++++++++
3 files changed, 41 insertions(+), 0 deletions(-)
diffs (53 lines):
diff -r 59953c215597 -r 822978577de8 devel/gmp/builtin.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gmp/builtin.mk Fri Jul 08 09:40:57 2011 +0000
@@ -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"
diff -r 59953c215597 -r 822978577de8 math/mpcomplex/builtin.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/mpcomplex/builtin.mk Fri Jul 08 09:40:57 2011 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: builtin.mk,v 1.1 2011/07/08 09:40:57 drochner Exp $
+
+BUILTIN_PKG:= mpcomplex
+
+PKGCONFIG_FILE.mpcomplex= /usr/include/mpc.h
+PKGCONFIG_BASE.mpcomplex= /usr
+
+BUILTIN_VERSION_SCRIPT.mpcomplex= ${AWK} \
+ '/\#define[ \t]*MPC_VERSION_STRING[ \t]/ { \
+ v = substr($$3, 2, length($$3)-2); } \
+ END { print v; }'
+
+.include "../../mk/buildlink3/pkgconfig-builtin.mk"
diff -r 59953c215597 -r 822978577de8 math/mpfr/builtin.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/mpfr/builtin.mk Fri Jul 08 09:40:57 2011 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index