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 <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Thu Mar 17 14:43:02 2022 -0500
Changeset:	4a3ec12dd392fa14123fa242dbed9b6171b8e247

Modified Files:
	stacks/Makefile

Log Message:
stacks: Fix build on Darwin

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

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

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

diffs:
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/bsd.prefs.mk"
 
-.if ${OPSYS} != Darwin
-CFLAGS+=	-fopenmp
+.if ${OPSYS} == Darwin
+# pkgsrc sed wrapper lacks -i
+SUBST_CLASSES+=		sed
+SUBST_STAGE.sed=	pre-configure
+SUBST_FILES.sed=	Makefile.in
+SUBST_SED.sed=		-e 's|sed -i.bkp|/usr/bin/sed -i .bkp|'
+.else
+# macOS clang lacks OpenMP
+CFLAGS+=		-fopenmp
 .endif
 
 .include "../../lang/python/application.mk"


Home | Main Index | Thread Index | Old Index