Fri Apr 13 11:00:15 2012 UTC ()
Add inplace.mk to allow building this inside another package.


(hans)
diff -r0 -r1.1 pkgsrc/devel/gmp/inplace.mk
diff -r0 -r1.1 pkgsrc/math/mpcomplex/inplace.mk
diff -r0 -r1.1 pkgsrc/math/mpfr/inplace.mk

File Added: pkgsrc/devel/gmp/inplace.mk
# $NetBSD: inplace.mk,v 1.1 2012/04/13 11:00:14 hans 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-extract: extract-inplace-gmp

extract-inplace-gmp:
	(cd ../../devel/gmp && ${MAKE} WRKDIR=${WRKSRC}/.devel.gmp EXTRACT_DIR=${WRKSRC} \
		WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES fetch patch clean)
	${MV} ${WRKSRC}/gmp-* ${WRKSRC}/gmp


File Added: pkgsrc/math/mpcomplex/inplace.mk
# $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


File Added: pkgsrc/math/mpfr/inplace.mk
# $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