summaryrefslogtreecommitdiff
path: root/math/mpfr/builtin.mk
diff options
context:
space:
mode:
authorhans <hans>2011-09-14 17:18:29 +0000
committerhans <hans>2011-09-14 17:18:29 +0000
commit7ec810acf1d9329a8531be753060c5aa33bdb336 (patch)
treec98aaacf0af49feb2935535cd2ca39c6b8d3c8f4 /math/mpfr/builtin.mk
parent8a4e13c5da6f0da7061b74c531fdacb0635bb824 (diff)
downloadpkgsrc-7ec810acf1d9329a8531be753060c5aa33bdb336.tar.gz
Fix detection of builtin mpfr on SunOS.
Diffstat (limited to 'math/mpfr/builtin.mk')
-rw-r--r--math/mpfr/builtin.mk8
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