summaryrefslogtreecommitdiff
path: root/math/mpcomplex
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-04-13 11:00:14 +0000
committerhans <hans@pkgsrc.org>2012-04-13 11:00:14 +0000
commitbdd250074efa9f9ddf0e0e2703d8a51604fa2ae0 (patch)
tree40ede6cdc5beac6baae4a405dd4e4fe83baf3a10 /math/mpcomplex
parent6da8ddf9f49aa4db5a5862dac55f58b88437b8aa (diff)
downloadpkgsrc-bdd250074efa9f9ddf0e0e2703d8a51604fa2ae0.tar.gz
Add inplace.mk to allow building this inside another package.
Diffstat (limited to 'math/mpcomplex')
-rw-r--r--math/mpcomplex/inplace.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/math/mpcomplex/inplace.mk b/math/mpcomplex/inplace.mk
new file mode 100644
index 00000000000..8062cc83e0d
--- /dev/null
+++ b/math/mpcomplex/inplace.mk
@@ -0,0 +1,13 @@
+# $NetBSD: inplace.mk,v 1.1 2012/04/13 11:00:14 hans Exp $
+#
+# Include this file to extract math/mpcomplex source into the WRKSRC of
+# another package. This is to be used by GCC packages to avoid the numerous
+# dependencies math/mpcomplex has.
+
+post-extract: extract-inplace-mpcomplex
+
+extract-inplace-mpcomplex:
+ (cd ../../math/mpcomplex && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpcomplex EXTRACT_DIR=${WRKSRC} \
+ WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES fetch patch clean)
+ ${MV} ${WRKSRC}/mpc-* ${WRKSRC}/mpc
+