pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/isl math/isl: Add inplace.mk file



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b508a18af4f2
branches:  trunk
changeset: 457604:b508a18af4f2
user:      micha <micha%pkgsrc.org@localhost>
date:      Mon Aug 30 11:53:45 2021 +0000

description:
math/isl: Add inplace.mk file

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

diffstat:

 math/isl/inplace.mk |  19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r 40ba6e13e5f1 -r b508a18af4f2 math/isl/inplace.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/isl/inplace.mk       Mon Aug 30 11:53:45 2021 +0000
@@ -0,0 +1,19 @@
+# $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



Home | Main Index | Thread Index | Old Index