summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin>2013-07-08 20:18:52 +0000
committerjperkin <jperkin>2013-07-08 20:18:52 +0000
commitde505adb50e69ec320856ddee05d76bd10a44694 (patch)
tree61a91fffe6328b2982b0233f644eec96d54a2ea3
parent0f6d1af52a2840755c11168f9520c40cf9752c05 (diff)
downloadpkgsrc-de505adb50e69ec320856ddee05d76bd10a44694.tar.gz
Split the extract phase into fetch and extract, to ensure that distfiles
can be fetched correctly, keeping in sync with devel/gmp inplace.mk
-rw-r--r--math/mpcomplex/inplace.mk10
-rw-r--r--math/mpfr/inplace.mk10
2 files changed, 16 insertions, 4 deletions
diff --git a/math/mpcomplex/inplace.mk b/math/mpcomplex/inplace.mk
index cc2ad440172..b9480f07b65 100644
--- a/math/mpcomplex/inplace.mk
+++ b/math/mpcomplex/inplace.mk
@@ -1,12 +1,18 @@
-# $NetBSD: inplace.mk,v 1.2 2013/04/08 11:17:16 rodent Exp $
+# $NetBSD: inplace.mk,v 1.3 2013/07/08 20:18:52 jperkin 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-fetch: fetch-inplace-mpcomplex
+
post-extract: extract-inplace-mpcomplex
+fetch-inplace-mpcomplex:
+ (cd ../../math/mpcomplex && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpcomplex EXTRACT_DIR=${WRKSRC} \
+ WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES checksum clean)
+
extract-inplace-mpcomplex:
(cd ../../math/mpcomplex && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpcomplex EXTRACT_DIR=${WRKSRC} \
- WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES fetch patch clean)
+ WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES patch clean)
${MV} ${WRKSRC}/mpc-* ${WRKSRC}/mpc
diff --git a/math/mpfr/inplace.mk b/math/mpfr/inplace.mk
index 55531105e11..fac5e790ce3 100644
--- a/math/mpfr/inplace.mk
+++ b/math/mpfr/inplace.mk
@@ -1,12 +1,18 @@
-# $NetBSD: inplace.mk,v 1.2 2012/04/22 15:13:26 wiz Exp $
+# $NetBSD: inplace.mk,v 1.3 2013/07/08 20:18:52 jperkin Exp $
#
# Include this file to extract math/mpfr source into the WRKSRC of
# another package. This is to be used by GCC packages to avoid the
# numerous dependencies math/mpfr has.
+post-fetch: fetch-inplace-mpfr
+
post-extract: extract-inplace-mpfr
+fetch-inplace-mpfr:
+ (cd ../../math/mpfr && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpfr EXTRACT_DIR=${WRKSRC} \
+ WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES checksum clean)
+
extract-inplace-mpfr:
(cd ../../math/mpfr && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpfr EXTRACT_DIR=${WRKSRC} \
- WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES fetch patch clean)
+ WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES patch clean)
${MV} ${WRKSRC}/mpfr-* ${WRKSRC}/mpfr