git: c86b7de05b7e - main - audio/surge-synthesizer-xt-lv2: Fix build on ARM
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 24 Jul 2022 20:06:13 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c86b7de05b7e5975f143b9b48cd2ba95eec647a3
commit c86b7de05b7e5975f143b9b48cd2ba95eec647a3
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-24 20:05:17 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-24 20:06:10 +0000
audio/surge-synthesizer-xt-lv2: Fix build on ARM
... by adding cmake argument that docs require on ARM
Reported by: fallout
---
audio/surge-synthesizer-xt-lv2/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/audio/surge-synthesizer-xt-lv2/Makefile b/audio/surge-synthesizer-xt-lv2/Makefile
index bb7263e01567..d287e4274236 100644
--- a/audio/surge-synthesizer-xt-lv2/Makefile
+++ b/audio/surge-synthesizer-xt-lv2/Makefile
@@ -63,4 +63,10 @@ BINARY_ALIAS= python=${PYTHON_CMD}
PORTSCOUT= ignore:1 # conflicts with old-gen audio/surge-synthesizer-lv2
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == aarch64
+CMAKE_ARGS+= -DARM_NATIVE=native # based on https://github.com/surge-synthesizer/surge/tree/release/1.9.0#building-for-arm-platforms
+.endif
+
.include <bsd.port.mk>