allow to use gmp/mpfr/mpc which comes with the system (eg on
NetBSD-current with gcc45)
This commit is contained in:
parent
0dcbf01a4c
commit
1d65eb092e
3 changed files with 41 additions and 0 deletions
15
devel/gmp/builtin.mk
Normal file
15
devel/gmp/builtin.mk
Normal file
|
@ -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"
|
13
math/mpcomplex/builtin.mk
Normal file
13
math/mpcomplex/builtin.mk
Normal file
|
@ -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"
|
13
math/mpfr/builtin.mk
Normal file
13
math/mpfr/builtin.mk
Normal file
|
@ -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"
|
Loading…
Reference in a new issue