diff options
author | wiz <wiz@pkgsrc.org> | 2006-06-26 19:40:06 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2006-06-26 19:40:06 +0000 |
commit | 32d424955a1e23a75fdc256daba305c152beebd8 (patch) | |
tree | 74797b5d2a7a99ddf9539b103d3beb889d3b51fe /multimedia | |
parent | e4e4661a37c2fe9a4ad16246e124588b0ca5b1b8 (diff) | |
download | pkgsrc-32d424955a1e23a75fdc256daba305c152beebd8.tar.gz |
Fix build with gcc4 on NetBSD-3.99.21.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/ffmpeg/distinfo | 9 | ||||
-rw-r--r-- | multimedia/ffmpeg/patches/patch-ah | 18 | ||||
-rw-r--r-- | multimedia/ffmpeg/patches/patch-ai | 19 | ||||
-rw-r--r-- | multimedia/ffmpeg/patches/patch-aj | 60 |
4 files changed, 103 insertions, 3 deletions
diff --git a/multimedia/ffmpeg/distinfo b/multimedia/ffmpeg/distinfo index ffc955b3c85..9966e34dea3 100644 --- a/multimedia/ffmpeg/distinfo +++ b/multimedia/ffmpeg/distinfo @@ -1,12 +1,15 @@ -$NetBSD: distinfo,v 1.10 2006/02/16 10:26:30 abs Exp $ +$NetBSD: distinfo,v 1.11 2006/06/26 19:40:06 wiz Exp $ SHA1 (ffmpeg-0.4.9-pre1.tar.gz) = aad00445137520bec19e56bcb042e75a10c53bb3 RMD160 (ffmpeg-0.4.9-pre1.tar.gz) = fd682846f97ada32951af7844e185c42783189a4 Size (ffmpeg-0.4.9-pre1.tar.gz) = 1611332 bytes SHA1 (patch-aa) = acc31f2c428411f912750e05703f5cad506c12bc -SHA1 (patch-ab) = f596db3c555ab772eae2da5b8144c23fb4f2eaa0 +SHA1 (patch-ab) = 15c7def153b0854169f36ebc7c1e8ae49a0268ea SHA1 (patch-ac) = 2e7aa9021ddfe46cda35a9399e59f63848610d83 SHA1 (patch-ad) = 95eea8ef74a270a0c60243eff740aa3346efaaaf -SHA1 (patch-ae) = 7223978301c95de96d19610afb332f10764c4de0 +SHA1 (patch-ae) = 32e6879e7505a0cd210e400b4ab6c90f6829884c SHA1 (patch-af) = 82f7e656ab01320235c85e98ec4c57277956ceb8 SHA1 (patch-ag) = 69656d16d44d3321bdf9b790e6263db1529d2c99 +SHA1 (patch-ah) = 3b600dd8d5bc0d4363139cea0ba8338691d8fa75 +SHA1 (patch-ai) = fe1bbecd05f2eef812650efa83223a3b6417ed6a +SHA1 (patch-aj) = b998fdc2b3cc5f6efd2fb4f12fbb630d5832004b diff --git a/multimedia/ffmpeg/patches/patch-ah b/multimedia/ffmpeg/patches/patch-ah new file mode 100644 index 00000000000..d97fe5fc190 --- /dev/null +++ b/multimedia/ffmpeg/patches/patch-ah @@ -0,0 +1,18 @@ +$NetBSD: patch-ah,v 1.1 2006/06/26 19:40:06 wiz Exp $ + +--- libavcodec/avcodec.h.orig 2004-07-09 12:49:55.000000000 +0000 ++++ libavcodec/avcodec.h +@@ -1657,6 +1657,13 @@ typedef struct AVOption { + #define FF_OPT_MAX_DEPTH 10 + } AVOption; + ++#ifdef HAVE_MMX ++extern const struct AVOption avoptions_common[3 + 5]; ++#else ++extern const struct AVOption avoptions_common[3]; ++#endif ++extern const struct AVOption avoptions_workaround_bug[11]; ++ + /** + * Parse option(s) and sets fields in passed structure + * @param strct structure where the parsed results will be written diff --git a/multimedia/ffmpeg/patches/patch-ai b/multimedia/ffmpeg/patches/patch-ai new file mode 100644 index 00000000000..421732c4ccd --- /dev/null +++ b/multimedia/ffmpeg/patches/patch-ai @@ -0,0 +1,19 @@ +$NetBSD: patch-ai,v 1.1 2006/06/26 19:40:06 wiz Exp $ + +--- libavcodec/common.h.orig 2004-07-01 12:33:07.000000000 +0000 ++++ libavcodec/common.h +@@ -62,14 +62,6 @@ + #define AVOPTION_SUB(ptr) { .name = NULL, .help = (const char*)ptr } + #define AVOPTION_END() AVOPTION_SUB(NULL) + +-struct AVOption; +-#ifdef HAVE_MMX +-extern const struct AVOption avoptions_common[3 + 5]; +-#else +-extern const struct AVOption avoptions_common[3]; +-#endif +-extern const struct AVOption avoptions_workaround_bug[11]; +- + #endif /* HAVE_AV_CONFIG_H */ + + /* Suppress restrict if it was not defined in config.h. */ diff --git a/multimedia/ffmpeg/patches/patch-aj b/multimedia/ffmpeg/patches/patch-aj new file mode 100644 index 00000000000..965519892e9 --- /dev/null +++ b/multimedia/ffmpeg/patches/patch-aj @@ -0,0 +1,60 @@ +$NetBSD: patch-aj,v 1.1 2006/06/26 19:40:06 wiz Exp $ + +--- libavcodec/ac3tab.h.orig 2004-06-26 10:08:49.000000000 +0000 ++++ libavcodec/ac3tab.h +@@ -4,10 +4,10 @@ + */ + + /* possible frequencies */ +-static const uint16_t ac3_freqs[3] = { 48000, 44100, 32000 }; ++const uint16_t ac3_freqs[3] = { 48000, 44100, 32000 }; + + /* possible bitrates */ +-static const uint16_t ac3_bitratetab[19] = { ++const uint16_t ac3_bitratetab[19] = { + 32, 40, 48, 56, 64, 80, 96, 112, 128, + 160, 192, 224, 256, 320, 384, 448, 512, 576, 640 + }; +@@ -15,7 +15,7 @@ static const uint16_t ac3_bitratetab[19] + /* AC3 MDCT window */ + + /* MDCT window */ +-static const int16_t ac3_window[256] = { ++const int16_t ac3_window[256] = { + 4, 7, 12, 16, 21, 28, 34, 42, + 51, 61, 72, 84, 97, 111, 127, 145, + 164, 184, 207, 231, 257, 285, 315, 347, +@@ -144,27 +144,27 @@ static const uint8_t baptab[64]= { + 15, 15, 15, 15, + }; + +-static const uint8_t sdecaytab[4]={ ++const uint8_t sdecaytab[4]={ + 0x0f, 0x11, 0x13, 0x15, + }; + +-static const uint8_t fdecaytab[4]={ ++const uint8_t fdecaytab[4]={ + 0x3f, 0x53, 0x67, 0x7b, + }; + +-static const uint16_t sgaintab[4]= { ++const uint16_t sgaintab[4]= { + 0x540, 0x4d8, 0x478, 0x410, + }; + +-static const uint16_t dbkneetab[4]= { ++const uint16_t dbkneetab[4]= { + 0x000, 0x700, 0x900, 0xb00, + }; + +-static const uint16_t floortab[8]= { ++const uint16_t floortab[8]= { + 0x2f0, 0x2b0, 0x270, 0x230, 0x1f0, 0x170, 0x0f0, 0xf800, + }; + +-static const uint16_t fgaintab[8]= { ++const uint16_t fgaintab[8]= { + 0x080, 0x100, 0x180, 0x200, 0x280, 0x300, 0x380, 0x400, + }; + |