Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 19 years ago
parent
commit
f36d2b3ff9
2 changed files with 2 additions and 106 deletions
  1. +0
    -104
      package/public/libmpeg3/gcc34.patch
  2. +2
    -2
      package/public/libmpeg3/libmpeg3.desc

+ 0
- 104
package/public/libmpeg3/gcc34.patch

@ -1,104 +0,0 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/public/libmpeg3/gcc34.patch
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
diff -uNr libmpeg3-1.5.4/video/output.c
libmpeg3-1.5.4.jbit/video/output.c
--- libmpeg3-1.5.4/video/output.c 2003-11-07 13:32:32.000000000 -0800
+++ libmpeg3-1.5.4.jbit/video/output.c 2004-04-13 12:54:53.756934515 -0700
@@ -1062,3 +1062,39 @@
/* Not used */
return 0;
}
+
+#ifdef HAVE_MMX
+/*
+Make sure that these vars get linked
+For some reason gcc3.4 doesn't link them
+There's gotta be a better way to do this, this is just a quick hack
+*/
+void ___jbit_hack()
+{
+void *foo;
+foo = &mpeg3_MMX_0;
+foo = mpeg3_MMX_10w;
+foo = mpeg3_MMX_80w;
+foo = mpeg3_MMX_00FFw;
+foo = mpeg3_MMX_Ublucoeff;
+foo = mpeg3_MMX_Vredcoeff;
+foo = mpeg3_MMX_Ugrncoeff;
+foo = mpeg3_MMX_Vgrncoeff;
+foo = mpeg3_MMX_Ycoeff;
+foo = mpeg3_MMX_redmask;
+foo = mpeg3_MMX_grnmask;
+foo = mpeg3_601_to_rgb;
+
+foo = &mpeg3_MMX_U_80;
+foo = &mpeg3_MMX_V_80;
+foo = &mpeg3_MMX_U_COEF;
+foo = &mpeg3_MMX_V_COEF;
+foo = &mpeg3_MMX_601_Y_COEF;
+foo = &mpeg3_MMX_601_Y_DIFF;
+
+foo = &mpeg3_MMX_U_80_RGB;
+foo = &mpeg3_MMX_V_80_RGB;
+foo = &mpeg3_MMX_U_COEF_RGB;
+foo = &mpeg3_MMX_V_COEF_RGB;
+}
+#endif
diff -uNr libmpeg3-1.5.4/video/reconstruct.c libmpeg3-1.5.4.jbit/video/reconstruct.c
--- libmpeg3-1.5.4/video/reconstruct.c 2003-10-14 00:54:14.000000000 -0700
+++ libmpeg3-1.5.4.jbit/video/reconstruct.c 2004-04-13 12:57:23.280261795 -0700
@@ -1286,4 +1286,16 @@
return 0;
}
-
+#ifdef HAVE_MMX
+/*
+ Make sure that these vars get linked
+ For some reason gcc3.4 doesn't link them
+ There's gotta be a better way to do this, this is just a quick hack
+*/
+void ___jbit_hack_reconstruct()
+{
+void *foo;
+foo = &MASK_AND;
+foo = &ADD_1;
+}
+#endif
diff -uNr libmpeg3-1.5.4/video/slice.c libmpeg3-1.5.4.jbit/video/slice.c
--- libmpeg3-1.5.4/video/slice.c 2003-10-14 00:54:14.000000000 -0700
+++ libmpeg3-1.5.4.jbit/video/slice.c 2004-04-13 12:55:54.710884733 -0700
@@ -706,3 +706,16 @@
pthread_mutex_destroy(&(slice->output_lock));
return 0;
}
+
+#ifdef HAVE_MMX
+/*
+ Make sure that these vars get linked
+ For some reason gcc3.4 doesn't link them
+ There's gotta be a better way to do this, this is just a quick hack
+*/
+void ___jbit_hack_slice()
+{
+void *foo;
+foo = &MMX_128;
+}
+#endif

+ 2
- 2
package/public/libmpeg3/libmpeg3.desc

@ -35,8 +35,8 @@
[L] GPL
[S] Stable
[V] 1.5.4
[V] 1.6
[P] X -?---5---9 135.800
[D] 40067362 libmpeg3-1.5.4-src.tar.bz2 http://dl.sourceforge.net/sourceforge/heroines/
[D] 2344251938 libmpeg3-1.6-src.tar.bz2 http://puzzle.dl.sourceforge.net/sourceforge/heroines/

Loading…
Cancel
Save