summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-07-15 18:44:32 +0000
committernia <nia@pkgsrc.org>2019-07-15 18:44:32 +0000
commitacfb74bdc6bb2811a0bd932912096566d48cedee (patch)
tree38c080f8c268054b414326b954949dd115567b68
parent9b9edd63c6331b0f917837649a36f5c5eef59eaa (diff)
downloadpkgsrc-acfb74bdc6bb2811a0bd932912096566d48cedee.tar.gz
audacity: Needs 64-bit atomic ops - build with -march=i586 on i386.
PR pkg/54353
-rw-r--r--audio/audacity/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/audio/audacity/Makefile b/audio/audacity/Makefile
index 11cec5a0bc2..b734e1fa08d 100644
--- a/audio/audacity/Makefile
+++ b/audio/audacity/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.119 2019/06/04 23:09:51 nia Exp $
+# $NetBSD: Makefile,v 1.120 2019/07/15 18:44:32 nia Exp $
DISTNAME= audacity-2.3.2
CATEGORIES= audio
@@ -46,7 +46,6 @@ CONFIGURE_ARGS+= --with-libsoxr=system
CONFIGURE_ARGS+= --with-widgetextra=local
# for internal portaudio...
-
.if ${OPSYS} == "Linux"
CONFIGURE_ARGS+= --with-alsa
.else
@@ -54,6 +53,11 @@ CONFIGURE_ARGS+= --without-alsa
CONFIGURE_ENV+= ac_cv_header_pa_linux_alsa_h=no
.endif
+.if ${MACHINE_ARCH} == "i386"
+# 64 bit atomic ops are required
+CXXFLAGS+= -march=i586
+.endif
+
.include "../../mk/oss.buildlink3.mk"
.if !empty(OSS_TYPE) && ${OSS_TYPE} != "none"