diff options
author | Thomas Zander <riggs@FreeBSD.org> | 2014-08-08 19:02:40 +0000 |
---|---|---|
committer | Thomas Zander <riggs@FreeBSD.org> | 2014-08-08 19:02:40 +0000 |
commit | 3533d6ca03f7315cfd2391b54c5e281e9b1cc02f (patch) | |
tree | 7f956d94fc6f9f708b980278ba308ab76df05b81 /audio/musepack/files | |
parent | 3771849700040a5a05454ee06ae3b17b10bb73a8 (diff) |
Notes
Diffstat (limited to 'audio/musepack/files')
-rw-r--r-- | audio/musepack/files/patch-Makefile.am | 7 | ||||
-rw-r--r-- | audio/musepack/files/patch-configure.in | 12 | ||||
-rw-r--r-- | audio/musepack/files/patch-encode_sv7.c | 25 | ||||
-rw-r--r-- | audio/musepack/files/patch-huffman-bcl.c | 27 |
4 files changed, 12 insertions, 59 deletions
diff --git a/audio/musepack/files/patch-Makefile.am b/audio/musepack/files/patch-Makefile.am deleted file mode 100644 index e9601941eadb..000000000000 --- a/audio/musepack/files/patch-Makefile.am +++ /dev/null @@ -1,7 +0,0 @@ ---- Makefile.am.orig 2008-03-25 15:31:41.000000000 +0100 -+++ Makefile.am 2010-05-16 18:04:14.000000000 +0200 -@@ -1,3 +1,3 @@ - AUTOMAKE_OPTIONS = foreign - SUBDIRS = include libmpcdec libmpcenc libmpcpsy libwavformat mpcenc mpc2sv8 \ -- mpcchap mpccut mpcdec mpcgain wavcmp -+ mpccut mpcdec wavcmp diff --git a/audio/musepack/files/patch-configure.in b/audio/musepack/files/patch-configure.in new file mode 100644 index 000000000000..49b0124945c3 --- /dev/null +++ b/audio/musepack/files/patch-configure.in @@ -0,0 +1,12 @@ +--- configure.in.orig 2014-08-04 08:34:39.000000000 +0200 ++++ configure.in 2014-08-04 08:35:20.000000000 +0200 +@@ -30,7 +30,8 @@ + AM_CONDITIONAL([MPC_CHAP], [test "x$enable_mpcchap" = xyes]) + + +-CHECK_VISIBILITY ++gl_VISIBILITY ++AM_CONDITIONAL([HAVE_VISIBILITY], [test "x$HAVE_VISIBILITY" = x1]) + + AC_CONFIG_FILES([ + Makefile diff --git a/audio/musepack/files/patch-encode_sv7.c b/audio/musepack/files/patch-encode_sv7.c deleted file mode 100644 index 847e726fe003..000000000000 --- a/audio/musepack/files/patch-encode_sv7.c +++ /dev/null @@ -1,25 +0,0 @@ ---- ./libmpcenc/encode_sv7.c.orig 2009-02-23 19:15:46.000000000 +0100 -+++ ./libmpcenc/encode_sv7.c 2010-05-16 17:59:52.000000000 +0200 -@@ -24,6 +24,8 @@ - #include "libmpcenc.h" - #include <mpc/minimax.h> - -+#define log2(x) ( log (x) * (1./M_LN2) ) -+ - void Klemm ( void ); - void Init_Skalenfaktoren ( void ); - -@@ -437,11 +439,11 @@ - total_cnt += sym[j][i].Count; - total_size += sym[j][i].Count * sym[j][i].Bits; - if (sym[j][i].Count != 0) -- optim_size += sym[j][i].Count * __builtin_log2(sym[j][i].Count); -+ optim_size += sym[j][i].Count * log2(sym[j][i].Count); - } - full_count += total_cnt; - full_size += total_size; -- optim_size = total_cnt * __builtin_log2(total_cnt) - optim_size; -+ optim_size = total_cnt * log2(total_cnt) - optim_size; - full_optim += optim_size; - size[j] = total_size; - cnt[j] = total_cnt; diff --git a/audio/musepack/files/patch-huffman-bcl.c b/audio/musepack/files/patch-huffman-bcl.c deleted file mode 100644 index 087150b3298a..000000000000 --- a/audio/musepack/files/patch-huffman-bcl.c +++ /dev/null @@ -1,27 +0,0 @@ ---- ./common/huffman-bcl.c.orig 2007-03-17 00:25:28.000000000 +0100 -+++ ./common/huffman-bcl.c 2010-05-16 18:01:56.000000000 +0200 -@@ -30,9 +30,12 @@ - * marcus.geelnard at home.se - *************************************************************************/ - -+#include <math.h> - #include <stdio.h> - #include <stdlib.h> - -+#define log2(x) ( log (x) * (1./M_LN2) ) -+ - typedef struct { - int Symbol; - unsigned int Count; -@@ -265,9 +268,9 @@ - total_cnt += sym[i].Count; - total_size += sym[i].Count * sym[i].Bits; - if (sym[i].Count != 0) -- optim_size += sym[i].Count * __builtin_log2(sym[i].Count); -+ optim_size += sym[i].Count * log2(sym[i].Count); - } -- optim_size = total_cnt * __builtin_log2(total_cnt) - optim_size; -+ optim_size = total_cnt * log2(total_cnt) - optim_size; - printf("\ncount : %u huff : %f bps ", total_cnt, (float)total_size / total_cnt); - printf("opt : %f bps ", (float)optim_size / total_cnt); - printf("loss : %f bps (%f %%)\n", (float)(total_size - optim_size) / total_cnt, (float)(total_size - optim_size) * 100 / optim_size); |