diff --git a/libmovtar/.md5sum b/libmovtar/.md5sum index cd0fd8735..5e422e98e 100644 --- a/libmovtar/.md5sum +++ b/libmovtar/.md5sum @@ -1,2 +1,3 @@ cedf741244f17031bc40505160893af2 jpegint.h +f1372fda16838484031b86fbed77a8f0 libmovtar-0.1.3-gcc4.patch 3810ba83a90c52676014ab1ea6d8cd9f libmovtar-0.1.3.tar.gz diff --git a/libmovtar/Pkgfile b/libmovtar/Pkgfile index 208bb6e9b..2f1e42183 100644 --- a/libmovtar/Pkgfile +++ b/libmovtar/Pkgfile @@ -7,12 +7,13 @@ name=libmovtar version=0.1.3 -release=4 +release=5 source=(http://dl.sourceforge.net/sourceforge/mjpeg/$name-$version.tar.gz \ - jpegint.h) + jpegint.h $name-$version-gcc4.patch) build() { cd $name-$version + patch -p1 -i $SRC/$name-$version-gcc4.patch # jpegint.h should be from the same version of libjpeg-mmx that's installed cp $SRC/jpegint.h . sed -i -e "s,#include ,," movtar_play.c diff --git a/libmovtar/libmovtar-0.1.3-gcc4.patch b/libmovtar/libmovtar-0.1.3-gcc4.patch new file mode 100644 index 000000000..ed2150ef6 --- /dev/null +++ b/libmovtar/libmovtar-0.1.3-gcc4.patch @@ -0,0 +1,11 @@ +--- libmovtar-0.1.3/rtjpeg/RTjpeg.c 2005-04-26 13:42:26.000000000 +0000 ++++ libmovtar-0.1.3.az/rtjpeg/RTjpeg.c 2005-04-26 13:42:43.000000000 +0000 +@@ -129,7 +129,7 @@ + register int ci, co=1, tmp; + register __s16 ZZvalue; + +- (__u8)strm[0]=(__u8)(data[RTjpeg_ZZ[0]]>254) ? 254:((data[RTjpeg_ZZ[0]]<0)?0:data[RTjpeg_ZZ[0]]); ++ strm[0]=(__u8)(data[RTjpeg_ZZ[0]]>254) ? 254:((data[RTjpeg_ZZ[0]]<0)?0:data[RTjpeg_ZZ[0]]); + + for(ci=1; ci<=bt8; ci++) + {