[BACK]Return to inplace.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / math / isl

File: [cvs.NetBSD.org] / pkgsrc / math / isl / inplace.mk (download)

Revision 1.1, Mon Aug 30 11:53:45 2021 UTC (12 months, 3 weeks ago) by micha
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, HEAD

math/isl: Add inplace.mk file

Intended for gcc-inplace-math option of GCC packages.

# $NetBSD: inplace.mk,v 1.1 2021/08/30 11:53:45 micha Exp $
#
# Include this file to extract math/isl source into the WRKSRC of
# another package. This is to be used by GCC packages to avoid the
# numerous dependencies math/isl has.

.PHONY: fetch-inplace-isl extract-inplace-isl
post-fetch: fetch-inplace-isl

post-extract: extract-inplace-isl

fetch-inplace-isl:
	(cd ../../math/isl && ${MAKE} WRKDIR=${WRKSRC}/.devel.isl EXTRACT_DIR=${WRKSRC} \
		WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES checksum)

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