Wed Sep 14 17:18:29 2011 UTC ()
Fix detection of builtin mpfr on SunOS.


(hans)
diff -r1.2 -r1.3 pkgsrc/math/mpfr/builtin.mk

cvs diff -r1.2 -r1.3 pkgsrc/math/mpfr/builtin.mk (expand / switch to unified diff)

--- pkgsrc/math/mpfr/builtin.mk 2011/07/14 18:06:59 1.2
+++ pkgsrc/math/mpfr/builtin.mk 2011/09/14 17:18:29 1.3
@@ -1,13 +1,17 @@ @@ -1,13 +1,17 @@
1# $NetBSD: builtin.mk,v 1.2 2011/07/14 18:06:59 drochner Exp $ 1# $NetBSD: builtin.mk,v 1.3 2011/09/14 17:18:29 hans Exp $
2 2
3BUILTIN_PKG:= mpfr 3BUILTIN_PKG:= mpfr
4 4
5PKGCONFIG_FILE.mpfr= /usr/include/mpfr.h 5PKGCONFIG_FILE.mpfr= /usr/include/mpfr.h /usr/include/mpfr/mpfr.h
6PKGCONFIG_BASE.mpfr= /usr 6PKGCONFIG_BASE.mpfr= /usr
7 7
8BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \ 8BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \
9 '/\#define[ \t]*MPFR_VERSION_STRING[ \t]/ { \ 9 '/\#define[ \t]*MPFR_VERSION_STRING[ \t]/ { \
10 v = substr($$3, 2, length($$3)-2) } \ 10 v = substr($$3, 2, length($$3)-2) } \
11 END { gsub("-p",".",v); print v }' 11 END { gsub("-p",".",v); print v }'
12 12
13.include "../../mk/buildlink3/pkgconfig-builtin.mk" 13.include "../../mk/buildlink3/pkgconfig-builtin.mk"
 14
 15.if !empty(USE_BUILTIN.mpfr:M[Yy][Ee][Ss])
 16CONFIGURE_ARGS+= --with-mpfr-include=${FIND_FILES_mpfr:S/\/mpfr.h//}
 17.endif