summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2017-10-19 15:59:22 +0000
committerjperkin <jperkin@pkgsrc.org>2017-10-19 15:59:22 +0000
commitca048ad9053e93858f7e29093e4fb83bdc93ed56 (patch)
treed6f63d4f94342baf91a3e7772ae399899f5e9a4d
parent64958f2647f9b04bad2db2756f06bae5ab772382 (diff)
downloadpkgsrc-ca048ad9053e93858f7e29093e4fb83bdc93ed56.tar.gz
smpeg: Fix build with GCC >= 6, from various.
-rw-r--r--multimedia/smpeg/distinfo3
-rw-r--r--multimedia/smpeg/patches/patch-audio_huffmantable.cpp37
2 files changed, 39 insertions, 1 deletions
diff --git a/multimedia/smpeg/distinfo b/multimedia/smpeg/distinfo
index abb4746ad51..32904e6531e 100644
--- a/multimedia/smpeg/distinfo
+++ b/multimedia/smpeg/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2015/11/03 23:54:32 agc Exp $
+$NetBSD: distinfo,v 1.9 2017/10/19 15:59:22 jperkin Exp $
SHA1 (smpeg-0.4.4.tar.gz) = 6d7f4449472e6270ab435b2224f3fad951c35259
RMD160 (smpeg-0.4.4.tar.gz) = d55249ad53417fa0df3d925aed0e83d2204e28b7
@@ -9,3 +9,4 @@ SHA1 (patch-ab) = 8b4ef487dc7176dd0ef21e9a6d90e72e26d68c73
SHA1 (patch-ac) = 6f0cdeb9864db4db6730c8137287a073172a09ab
SHA1 (patch-ad) = 021ffc5024723173c8a6cda04ae6f70add974faa
SHA1 (patch-ae) = 0c7646ec3ce331b6991d59d96efa1ba07fbb91e5
+SHA1 (patch-audio_huffmantable.cpp) = 4bde79539a6fe488bc6be7092f23fac18efa362e
diff --git a/multimedia/smpeg/patches/patch-audio_huffmantable.cpp b/multimedia/smpeg/patches/patch-audio_huffmantable.cpp
new file mode 100644
index 00000000000..8f8549012ba
--- /dev/null
+++ b/multimedia/smpeg/patches/patch-audio_huffmantable.cpp
@@ -0,0 +1,37 @@
+$NetBSD: patch-audio_huffmantable.cpp,v 1.1 2017/10/19 15:59:22 jperkin Exp $
+
+Fix build with GCC >= 6.
+
+--- audio/huffmantable.cpp.orig 1999-08-26 04:37:52.000000000 +0000
++++ audio/huffmantable.cpp
+@@ -9,6 +9,7 @@
+ #include "config.h"
+ #endif
+
++#include <climits>
+ #include "MPEGaudio.h"
+
+ static const unsigned int
+@@ -550,11 +551,11 @@ htd33[ 31][2]={{ 16, 1},{ 8, 1},{ 4,
+
+ const HUFFMANCODETABLE MPEGaudio::ht[HTN]=
+ {
+- { 0, 0-1, 0-1, 0, 0, htd33},
++ { 0, UINT_MAX, UINT_MAX, 0, 0, htd33},
+ { 1, 2-1, 2-1, 0, 7,htd01},
+ { 2, 3-1, 3-1, 0, 17,htd02},
+ { 3, 3-1, 3-1, 0, 17,htd03},
+- { 4, 0-1, 0-1, 0, 0, htd33},
++ { 4, UINT_MAX, UINT_MAX, 0, 0, htd33},
+ { 5, 4-1, 4-1, 0, 31,htd05},
+ { 6, 4-1, 4-1, 0, 31,htd06},
+ { 7, 6-1, 6-1, 0, 71,htd07},
+@@ -564,7 +565,7 @@ const HUFFMANCODETABLE MPEGaudio::ht[HTN
+ {11, 8-1, 8-1, 0,127,htd11},
+ {12, 8-1, 8-1, 0,127,htd12},
+ {13,16-1,16-1, 0,511,htd13},
+- {14, 0-1, 0-1, 0, 0, htd33},
++ {14, UINT_MAX, UINT_MAX, 0, 0, htd33},
+ {15,16-1,16-1, 0,511,htd15},
+ {16,16-1,16-1, 1,511,htd16},
+ {17,16-1,16-1, 2,511,htd16},