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