pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/musepack musepack: fix build on linux-musl



details:   https://anonhg.NetBSD.org/pkgsrc/rev/85db2c9b7364
branches:  trunk
changeset: 452610:85db2c9b7364
user:      mcf <mcf%pkgsrc.org@localhost>
date:      Fri May 14 03:14:19 2021 +0000

description:
musepack: fix build on linux-musl

fpu_control.h is only available on glibc.

Apply patch from upstream revision 492.

diffstat:

 audio/musepack/distinfo                      |   3 ++-
 audio/musepack/patches/patch-mpcenc_mpcenc.h |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 5039204b97c2 -r 85db2c9b7364 audio/musepack/distinfo
--- a/audio/musepack/distinfo   Thu May 13 21:12:33 2021 +0000
+++ b/audio/musepack/distinfo   Fri May 14 03:14:19 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2019/07/11 10:11:26 nia Exp $
+$NetBSD: distinfo,v 1.5 2021/05/14 03:14:19 mcf Exp $
 
 SHA1 (musepack_src_r475.tar.gz) = bdd4042773eb5c885df70d7a19914fa6e2306391
 RMD160 (musepack_src_r475.tar.gz) = 622d04eeb309beacd2b6bb650178dcdc42773db2
@@ -7,3 +7,4 @@
 SHA1 (patch-CMakeLists.txt) = c4a9dd61c1f8691d8321e6ee5f6939cd44eb7a15
 SHA1 (patch-libmpcdec_CMakeLists.txt) = 4e202b96ca3a7012cbdf4e0bcb11ed12b7932746
 SHA1 (patch-mpcenc_keyboard.c) = 42e038f003c64369e245e3688f6f0783bd2d443a
+SHA1 (patch-mpcenc_mpcenc.h) = 507b4aa9e7a99a93d42efaf97e03855ed6970a13
diff -r 5039204b97c2 -r 85db2c9b7364 audio/musepack/patches/patch-mpcenc_mpcenc.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/musepack/patches/patch-mpcenc_mpcenc.h      Fri May 14 03:14:19 2021 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-mpcenc_mpcenc.h,v 1.1 2021/05/14 03:14:19 mcf Exp $
+
+Fix build on linux-musl.
+
+Upstream: http://trac.musepack.net/musepack/changeset/492/
+
+--- mpcenc/mpcenc.h.orig       Fri May 14 03:06:14 2021
++++ mpcenc/mpcenc.h
+@@ -50,7 +50,7 @@
+ # include <unistd.h>
+ #endif
+ 
+-#if   defined __linux__
++#if   defined __GLIBC__
+ #  include <fpu_control.h>
+ #elif defined __FreeBSD__
+ # include <machine/floatingpoint.h>



Home | Main Index | Thread Index | Old Index