summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-07 17:15:53 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-07 17:15:53 +0000
commit4eab927004a159fc531577b625881ef88cb79667 (patch)
tree3b81e62a86e1f8bedd1fd6e9b4b58849ebe0d251 /media-video/sampeg3/files
parentStable on sparc (diff)
downloadgentoo-2-4eab927004a159fc531577b625881ef88cb79667.tar.gz
gentoo-2-4eab927004a159fc531577b625881ef88cb79667.tar.bz2
gentoo-2-4eab927004a159fc531577b625881ef88cb79667.zip
Drop virtual/libc dependency, update to modular X, allow building with gcc4, use econf instead of ./configure.
(Portage version: 2.1_pre5-r4)
Diffstat (limited to 'media-video/sampeg3/files')
-rw-r--r--media-video/sampeg3/files/sampeg3-0.0.3-gcc4.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/media-video/sampeg3/files/sampeg3-0.0.3-gcc4.patch b/media-video/sampeg3/files/sampeg3-0.0.3-gcc4.patch
new file mode 100644
index 000000000000..4484c9816ead
--- /dev/null
+++ b/media-video/sampeg3/files/sampeg3-0.0.3-gcc4.patch
@@ -0,0 +1,27 @@
+Index: sampeg3-0.0.3/src/coding/dct/idctblk_fp_aan.hh
+===================================================================
+--- sampeg3-0.0.3.orig/src/coding/dct/idctblk_fp_aan.hh
++++ sampeg3-0.0.3/src/coding/dct/idctblk_fp_aan.hh
+@@ -50,6 +50,9 @@
+
+ #include "coding/dct/dctblk.hh"
+
++#ifndef PI
++#define PI M_PI
++#endif
+
+ template <class OutputType,int Low,int High> class IDCTBlk_AccurateFP
+ : public IDCTBlk<OutputType,Low,High>
+Index: sampeg3-0.0.3/src/test/rdcurves.cc
+===================================================================
+--- sampeg3-0.0.3.orig/src/test/rdcurves.cc
++++ sampeg3-0.0.3/src/test/rdcurves.cc
+@@ -86,7 +86,7 @@ private:
+ static const int left = 3*28;
+ static const int top = 26*28;
+ static const double width=16*28;
+- static const double height = width*3/4;
++ static const double height = (16*28)*3/4;
+ };
+
+