diff options
author | asau <asau@pkgsrc.org> | 2013-04-07 16:19:08 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2013-04-07 16:19:08 +0000 |
commit | 3876562f9c71253c24af415217be3bd6370557cc (patch) | |
tree | cc42bd111bf2889e776b7379a47507864fedcbbe /devel/gmp | |
parent | 50abec482e037c446e2c0169ab43f7db9a6b3717 (diff) | |
download | pkgsrc-3876562f9c71253c24af415217be3bd6370557cc.tar.gz |
Perform fetch at fetch phase.
Diffstat (limited to 'devel/gmp')
-rw-r--r-- | devel/gmp/inplace.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/devel/gmp/inplace.mk b/devel/gmp/inplace.mk index b36f142f8b8..02b8fc574b7 100644 --- a/devel/gmp/inplace.mk +++ b/devel/gmp/inplace.mk @@ -1,12 +1,18 @@ -# $NetBSD: inplace.mk,v 1.3 2013/04/07 16:13:56 asau Exp $ +# $NetBSD: inplace.mk,v 1.4 2013/04/07 16:19:08 asau Exp $ # # Include this file to extract devel/gmp source into the WRKSRC of # another package. This is to be used by GCC packages to avoid the # numerous dependencies devel/gmp has. +post-fetch: fetch-inplace-gmp + post-extract: extract-inplace-gmp +fetch-inplace-gmp: + (cd ../../devel/gmp && ${MAKE} WRKDIR=${WRKSRC}/.devel.gmp EXTRACT_DIR=${WRKSRC} \ + WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES checksum clean) + extract-inplace-gmp: (cd ../../devel/gmp && ${MAKE} WRKDIR=${WRKSRC}/.devel.gmp EXTRACT_DIR=${WRKSRC} \ - WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES checksum patch clean) + WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES patch clean) ${MV} ${WRKSRC}/gmp-* ${WRKSRC}/gmp |