2015-09-15 22:56:33 +02:00
|
|
|
# $NetBSD: inplace.mk,v 1.5 2015/09/15 20:56:33 joerg Exp $
|
2012-04-13 13:00:14 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2014-12-05 14:14:21 +01:00
|
|
|
.PHONY: fetch-inplace-mpfr extract-inplace-mpfr
|
2013-07-08 22:18:52 +02:00
|
|
|
post-fetch: fetch-inplace-mpfr
|
|
|
|
|
2012-04-13 13:00:14 +02:00
|
|
|
post-extract: extract-inplace-mpfr
|
|
|
|
|
2013-07-08 22:18:52 +02:00
|
|
|
fetch-inplace-mpfr:
|
|
|
|
(cd ../../math/mpfr && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpfr EXTRACT_DIR=${WRKSRC} \
|
2015-09-15 22:56:33 +02:00
|
|
|
WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES checksum)
|
2013-07-08 22:18:52 +02:00
|
|
|
|
2012-04-13 13:00:14 +02:00
|
|
|
extract-inplace-mpfr:
|
|
|
|
(cd ../../math/mpfr && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpfr EXTRACT_DIR=${WRKSRC} \
|
2015-09-15 22:56:33 +02:00
|
|
|
WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES patch)
|
2012-04-13 13:00:14 +02:00
|
|
|
${MV} ${WRKSRC}/mpfr-* ${WRKSRC}/mpfr
|