git: 1fd1be3fa965 - main - audio/timidity++: unbreak the build on RISC-V (riscv64)
Alexey Dokuchaev
danfe at FreeBSD.org
Wed Jun 16 10:16:34 UTC 2021
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1fd1be3fa965e1650cc516194785d5239c2122fb
commit 1fd1be3fa965e1650cc516194785d5239c2122fb
Author: Alexey Dokuchaev <danfe at FreeBSD.org>
AuthorDate: 2021-06-16 10:15:12 +0000
Commit: Alexey Dokuchaev <danfe at FreeBSD.org>
CommitDate: 2021-06-16 10:15:30 +0000
audio/timidity++: unbreak the build on RISC-V (riscv64)
PR: 256604
Submitted by: Robert Clausecker (new maintainer)
---
audio/timidity++/Makefile | 4 +---
audio/timidity++/files/patch-timidity_timidity.c | 12 ++++++++++++
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/audio/timidity++/Makefile b/audio/timidity++/Makefile
index 9112397fb2fb..66c1e38eb738 100644
--- a/audio/timidity++/Makefile
+++ b/audio/timidity++/Makefile
@@ -6,13 +6,11 @@ CATEGORIES+= audio
MASTER_SITES= SF/timidity/TiMidity%2B%2B/TiMidity%2B%2B-${PORTVERSION}
DISTNAME= TiMidity++-${PORTVERSION}
-MAINTAINER?= ports at FreeBSD.org
+MAINTAINER?= fuz at fuz.su
COMMENT?= Software MIDI player
LICENSE= GPLv2+
-BROKEN_riscv64= fails to compile: needs FP_X_INV from empty sys/riscv/include/ieeefp.h
-
LIB_DEPENDS= libarc.so:archivers/libarc
.if !defined(PKGNAMESUFFIX)
LIB_DEPENDS+= libvorbis.so:audio/libvorbis \
diff --git a/audio/timidity++/files/patch-timidity_timidity.c b/audio/timidity++/files/patch-timidity_timidity.c
new file mode 100644
index 000000000000..e88c78ccd7ec
--- /dev/null
+++ b/audio/timidity++/files/patch-timidity_timidity.c
@@ -0,0 +1,12 @@
+--- timidity/timidity.c.orig 2018-08-28 23:33:39 UTC
++++ timidity/timidity.c
+@@ -5393,7 +5393,8 @@ MAIN_INTERFACE void timidity_start_initialize(void)
+ fp_except fpexp;
+ #endif
+
+-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
++#if defined(FP_X_INV) && defined(FP_X_DZ) && \
++ (defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__))
+ fpexp = fpgetmask();
+ fpsetmask(fpexp & ~(FP_X_INV|FP_X_DZ));
+ #endif
More information about the dev-commits-ports-all
mailing list