From 74380a66001f3fb63139fb0a29022ba4334b8c8c Mon Sep 17 00:00:00 2001 From: hans Date: Wed, 14 Sep 2011 17:18:29 +0000 Subject: Fix detection of builtin mpfr on SunOS. --- math/mpfr/builtin.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'math') diff --git a/math/mpfr/builtin.mk b/math/mpfr/builtin.mk index 6aacba76f47..7bacb6931e6 100644 --- a/math/mpfr/builtin.mk +++ b/math/mpfr/builtin.mk @@ -1,8 +1,8 @@ -# $NetBSD: builtin.mk,v 1.2 2011/07/14 18:06:59 drochner Exp $ +# $NetBSD: builtin.mk,v 1.3 2011/09/14 17:18:29 hans Exp $ BUILTIN_PKG:= mpfr -PKGCONFIG_FILE.mpfr= /usr/include/mpfr.h +PKGCONFIG_FILE.mpfr= /usr/include/mpfr.h /usr/include/mpfr/mpfr.h PKGCONFIG_BASE.mpfr= /usr BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \ @@ -11,3 +11,7 @@ BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \ END { gsub("-p",".",v); print v }' .include "../../mk/buildlink3/pkgconfig-builtin.mk" + +.if !empty(USE_BUILTIN.mpfr:M[Yy][Ee][Ss]) +CONFIGURE_ARGS+= --with-mpfr-include=${FIND_FILES_mpfr:S/\/mpfr.h//} +.endif -- cgit v1.2.3