Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jun 2021 10:16:33 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 1fd1be3fa965 - main - audio/timidity++: unbreak the build on RISC-V (riscv64)
Message-ID:  <202106161016.15GAGXPl014905@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1fd1be3fa965e1650cc516194785d5239c2122fb

commit 1fd1be3fa965e1650cc516194785d5239c2122fb
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-06-16 10:15:12 +0000
Commit:     Alexey Dokuchaev <danfe@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@FreeBSD.org
+MAINTAINER?=	fuz@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106161016.15GAGXPl014905>