aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-08-16 17:44:50 +0800
committervs <vs@FreeBSD.org>2004-08-16 17:44:50 +0800
commit0d076c884163e9991f14582604047288bf722c59 (patch)
treea5c2d9d513b77dac5776f81e377a341939c52cc1 /multimedia
parentd7b9af629556fba4d7ceb0e5307a6bea5d726b90 (diff)
downloadfreebsd-ports-gnome-0d076c884163e9991f14582604047288bf722c59.tar.gz
freebsd-ports-gnome-0d076c884163e9991f14582604047288bf722c59.tar.zst
freebsd-ports-gnome-0d076c884163e9991f14582604047288bf722c59.zip
Add forgotten file from previous commit
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mplayer/files/extra-patch-gcc34138
1 files changed, 138 insertions, 0 deletions
diff --git a/multimedia/mplayer/files/extra-patch-gcc34 b/multimedia/mplayer/files/extra-patch-gcc34
new file mode 100644
index 000000000000..cdebe2aa31f6
--- /dev/null
+++ b/multimedia/mplayer/files/extra-patch-gcc34
@@ -0,0 +1,138 @@
+--- libaf/af_format.c.orig Sat Aug 7 20:30:05 2004
++++ libaf/af_format.c Sat Aug 7 20:32:03 2004
+@@ -15,8 +15,13 @@
+
+ // Integer to float conversion through lrintf()
+ #ifdef HAVE_LRINTF
++#ifdef __FreeBSD__
++#include <math.h>
++#define lrintf(x) rintf(x)
++#else
+ #define __USE_ISOC99 1
+ #include <math.h>
++#endif
+ #else
+ #define lrintf(x) ((int)(x))
+ #endif
+--- libavcodec/faandct.c.orig Sat Aug 7 20:45:54 2004
++++ libavcodec/faandct.c Sat Aug 7 20:46:18 2004
+@@ -29,6 +29,21 @@
+ #include "dsputil.h"
+ #include "faandct.h"
+
++#include "config.h"
++
++// Integer to float conversion through lrintf()
++#ifdef HAVE_LRINTF
++#ifdef __FreeBSD__
++#include <math.h>
++#define lrintf(x) rintf(x)
++#else
++#define __USE_ISOC99 1
++#include <math.h>
++#endif
++#else
++#define lrintf(x) ((int)(x))
++#endif
++
+ #define FLOAT float
+ #ifdef FAAN_POSTSCALE
+ # define SCALE(x) postscale[x]
+--- libavcodec/mpegaudiodec.c.orig Sat Aug 7 20:43:50 2004
++++ libavcodec/mpegaudiodec.c Sat Aug 7 20:44:23 2004
+@@ -27,6 +27,21 @@
+ #include "mpegaudio.h"
+ #include "dsputil.h"
+
++#include "config.h"
++
++// Integer to float conversion through lrintf()
++#ifdef HAVE_LRINTF
++#ifdef __FreeBSD__
++#include <math.h>
++#define lrintf(x) rintf(x)
++#else
++#define __USE_ISOC99 1
++#include <math.h>
++#endif
++#else
++#define lrintf(x) ((int)(x))
++#endif
++
+ /*
+ * TODO:
+ * - in low precision mode, use more 16 bit multiplies in synth filter
+--- libavcodec/mpegvideo.c.orig Sat Aug 7 20:41:35 2004
++++ libavcodec/mpegvideo.c Sat Aug 7 20:42:36 2004
+@@ -38,6 +38,21 @@
+ //#undef NDEBUG
+ //#include <assert.h>
+
++#include "config.h"
++
++// Integer to float conversion through lrintf()
++#ifdef HAVE_LRINTF
++#ifdef __FreeBSD__
++#include <math.h>
++#define lrintf(x) rintf(x)
++#else
++#define __USE_ISOC99 1
++#include <math.h>
++#endif
++#else
++#define lrintf(x) ((int)(x))
++#endif
++
+ #ifdef CONFIG_ENCODERS
+ static void encode_picture(MpegEncContext *s, int picture_number);
+ #endif //CONFIG_ENCODERS
+--- libavcodec/wmadec.c.orig Sat Aug 7 20:47:09 2004
++++ libavcodec/wmadec.c Sat Aug 7 20:47:30 2004
+@@ -34,6 +34,21 @@
+ #include "avcodec.h"
+ #include "dsputil.h"
+
++#include "config.h"
++
++// Integer to float conversion through lrintf()
++#ifdef HAVE_LRINTF
++#ifdef __FreeBSD__
++#include <math.h>
++#define lrintf(x) rintf(x)
++#else
++#define __USE_ISOC99 1
++#include <math.h>
++#endif
++#else
++#define lrintf(x) ((int)(x))
++#endif
++
+ /* size of blocks */
+ #define BLOCK_MIN_BITS 7
+ #define BLOCK_MAX_BITS 11
+--- libmpcodecs/vf_qp.c.orig Sat Aug 7 20:26:22 2004
++++ libmpcodecs/vf_qp.c Sat Aug 7 20:33:45 2004
+@@ -19,10 +19,22 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <math.h>
+ #include <inttypes.h>
+
+ #include "../config.h"
++
++// Integer to float conversion through lrintf()
++#ifdef HAVE_LRINTF
++#ifdef __FreeBSD__
++#include <math.h>
++#define lrintf(x) rintf(x)
++#else
++#define __USE_ISOC99 1
++#include <math.h>
++#endif
++#else
++#define lrintf(x) ((int)(x))
++#endif
+
+ #ifdef USE_LIBAVCODEC
+