aboutsummaryrefslogtreecommitdiff
path: root/math/lapack/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/lapack/Makefile')
-rw-r--r--math/lapack/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/math/lapack/Makefile b/math/lapack/Makefile
index 73253ef2c45a..1d405ed0bf1e 100644
--- a/math/lapack/Makefile
+++ b/math/lapack/Makefile
@@ -81,7 +81,7 @@ PLIST_SUB+= BLAS="@comment " CBLAS="@comment " LAPACK="" XLAPACK="@comment " LA
.include <bsd.port.pre.mk>
-pre-configure:
+post-patch:
${SED} -Ee '\
s@^(FORTRAN|LOADER)([[:blank:]]*=)(.*)@\1\2 $${FC}@; \
s@^(OPTS[[:blank:]]*=)(.*)@\1 $${FFLAGS} $${EXTRAFLAGS}@; \
@@ -94,6 +94,8 @@ pre-configure:
s@^(LDFLAGS[[:blank:]]*=)(.*)@@; \
\@(BLAS|LAPACKE|RAN)LIB[[:blank:]]*=@d;' \
${WRKSRC}/make.inc.example > ${WRKSRC}/make.inc
+
+pre-configure:
${REINPLACE_CMD} -e 's@\./lapack_testing\.py@${S} &@' \
${WRKSRC}/Makefile
${FIND} ${WRKSRC} -name Makefile | ${XARGS} \