git: 21a28646fdd6 - main - audio/qmidiarp: fix build on non-x86
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jan 2026 23:00:39 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=21a28646fdd6de37f9a9e2429ca93fce350cb1cb
commit 21a28646fdd6de37f9a9e2429ca93fce350cb1cb
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-01-24 11:40:22 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-01-26 22:59:49 +0000
audio/qmidiarp: fix build on non-x86
The options -msse, -msse2, and -mfpmath=sse only apply to x86 targets.
They are the default on amd64, so only set them on i386.
Approved by: portmgr (build fix blanket)
MFH: 2026Q1
---
audio/qmidiarp/Makefile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/audio/qmidiarp/Makefile b/audio/qmidiarp/Makefile
index d9e90021b7d5..a7a5630f50a8 100644
--- a/audio/qmidiarp/Makefile
+++ b/audio/qmidiarp/Makefile
@@ -1,6 +1,7 @@
PORTNAME= qmidiarp
DISTVERSIONPREFIX= qmidiarp-
DISTVERSION= 0.7.1
+PORTREVISION= 1
CATEGORIES= audio
MAINTAINER= yuri@FreeBSD.org
@@ -49,7 +50,14 @@ LV2_CONFIGURE_OFF= --disable-lv2plugins
NLS_CONFIGURE_ON= --enable-translations
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} != i386
+pre-configure:
+ ${REINPLACE_CMD} -e 's,-msse -msse2 -mfpmath=sse ,,' ${WRKSRC}/configure.ac
+.endif
+
post-install-LV2-on:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lv2/qmidiarp_[lsa][fer][oqp].lv2/*.so
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>