diff options
author | hans <hans@pkgsrc.org> | 2011-09-14 17:18:29 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2011-09-14 17:18:29 +0000 |
commit | 74380a66001f3fb63139fb0a29022ba4334b8c8c (patch) | |
tree | c98aaacf0af49feb2935535cd2ca39c6b8d3c8f4 /math/mpfr/builtin.mk | |
parent | f2301d9494fa1c3bdefb99bf189f82d491519032 (diff) | |
download | pkgsrc-74380a66001f3fb63139fb0a29022ba4334b8c8c.tar.gz |
Fix detection of builtin mpfr on SunOS.
Diffstat (limited to 'math/mpfr/builtin.mk')
-rw-r--r-- | math/mpfr/builtin.mk | 8 |
1 files changed, 6 insertions, 2 deletions
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 |