summaryrefslogtreecommitdiff
path: root/math/mpcomplex
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2011-07-08 09:40:57 +0000
committerdrochner <drochner@pkgsrc.org>2011-07-08 09:40:57 +0000
commit1d65eb092e179bdc2deef7d8b1094b66cabbdaa1 (patch)
tree953f851c986162e522ea854629a8ee6a59221b1c /math/mpcomplex
parent0dcbf01a4c3f04abc50b9f4f93d7f76e1f4d4cf1 (diff)
downloadpkgsrc-1d65eb092e179bdc2deef7d8b1094b66cabbdaa1.tar.gz
allow to use gmp/mpfr/mpc which comes with the system (eg on
NetBSD-current with gcc45)
Diffstat (limited to 'math/mpcomplex')
-rw-r--r--math/mpcomplex/builtin.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/math/mpcomplex/builtin.mk b/math/mpcomplex/builtin.mk
new file mode 100644
index 00000000000..538e9386dd0
--- /dev/null
+++ b/math/mpcomplex/builtin.mk
@@ -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"