pkgsrc-WIP-changes archive

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

canu: Limit parallel/openmp dep to Darwin



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Fri May 19 18:30:51 2023 -0500
Changeset:	44f3df5031ffdf82f3e07ef284cb525b0eeaf893

Modified Files:
	canu/Makefile

Log Message:
canu: Limit parallel/openmp dep to Darwin

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=44f3df5031ffdf82f3e07ef284cb525b0eeaf893

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 canu/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diffs:
diff --git a/canu/Makefile b/canu/Makefile
index 783b1c4f97..3ccc7f684d 100644
--- a/canu/Makefile
+++ b/canu/Makefile
@@ -59,8 +59,16 @@ do-install:
 	cd ${TMP_INST}/lib/perl5 && ${PAX} -wr * ${DESTDIR}${PREFIX}/lib/perl5
 	cd ${TMP_INST}/share && ${PAX} -wr * ${DESTDIR}${PREFIX}/share
 
+.include "../../mk/bsd.prefs.mk"
+
+# Xcode supports -Xpreprocessor -fopenmp, but does not supply OpenMP libs
+# parallel/openmp installs an entire llvm
+# Maybe a libomp package would suffice?
+.if ${OPSYS} == Darwin
+.include "../../parallel/openmp/buildlink3.mk"
+.endif
+
 .include "../../devel/boost-libs/buildlink3.mk"
 .include "../../devel/simde/buildlink3.mk"
 .include "../../lang/perl5/module.mk"
-.include "../../parallel/openmp/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index