diff options
author | hans <hans> | 2012-04-13 11:00:14 +0000 |
---|---|---|
committer | hans <hans> | 2012-04-13 11:00:14 +0000 |
commit | cb213a0faa85978ce63c35ee81372b8c9f0db962 (patch) | |
tree | 40ede6cdc5beac6baae4a405dd4e4fe83baf3a10 /math | |
parent | 3b7f7ee2783761fc872e9cd7276094f82c80d44d (diff) | |
download | pkgsrc-cb213a0faa85978ce63c35ee81372b8c9f0db962.tar.gz |
Add inplace.mk to allow building this inside another package.
Diffstat (limited to 'math')
-rw-r--r-- | math/mpcomplex/inplace.mk | 13 | ||||
-rw-r--r-- | math/mpfr/inplace.mk | 13 |
2 files changed, 26 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 + diff --git a/math/mpfr/inplace.mk b/math/mpfr/inplace.mk new file mode 100644 index 00000000000..e949f6dc640 --- /dev/null +++ b/math/mpfr/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/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-extract: extract-inplace-mpfr + +extract-inplace-mpfr: + (cd ../../math/mpfr && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpfr EXTRACT_DIR=${WRKSRC} \ + WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES fetch patch clean) + ${MV} ${WRKSRC}/mpfr-* ${WRKSRC}/mpfr + |