pkgsrc-WIP-changes archive

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

stacks: Fix build on Darwin

Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <>
Pushed By:	outpaddling
Date:		Thu Mar 17 14:43:02 2022 -0500
Changeset:	4a3ec12dd392fa14123fa242dbed9b6171b8e247

Modified Files:

Log Message:
stacks: Fix build on Darwin

To see a diff of this commit:;a=commitdiff;h=4a3ec12dd392fa14123fa242dbed9b6171b8e247

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

 stacks/Makefile | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/stacks/Makefile b/stacks/Makefile
index 4503f971a7..40ceef52f4 100644
--- a/stacks/Makefile
+++ b/stacks/Makefile
@@ -28,8 +28,15 @@ REPLACE_FILES.Rscript=	scripts/stacks-hist2d-loci-samples-coverage
 .include "../../mk/"
-.if ${OPSYS} != Darwin
-CFLAGS+=	-fopenmp
+.if ${OPSYS} == Darwin
+# pkgsrc sed wrapper lacks -i
+SUBST_STAGE.sed=	pre-configure
+SUBST_SED.sed=		-e 's|sed -i.bkp|/usr/bin/sed -i .bkp|'
+# macOS clang lacks OpenMP
+CFLAGS+=		-fopenmp
 .include "../../lang/python/"

Home | Main Index | Thread Index | Old Index