mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
multimedia/mjpegtools: Updated for version 2.0.0.
This fixes build with kernel headers > 2.6.37 and gcc-4.7.x. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
da3feaef8c
commit
fca081d062
4 changed files with 10 additions and 46 deletions
|
@ -1,11 +0,0 @@
|
|||
--- mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp.orig 2009-05-27 01:31:46.000000000 -0700
|
||||
+++ mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp 2009-05-27 01:33:09.000000000 -0700
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
bool LPCMStream::Probe(IBitStream &bs )
|
||||
{
|
||||
- char *last_dot = strrchr( bs.StreamName(), '.' );
|
||||
+ const char *last_dot = strrchr( bs.StreamName(), '.' );
|
||||
return
|
||||
last_dot != NULL
|
||||
&& strcmp( last_dot+1, "lpcm") == 0;
|
|
@ -1,24 +0,0 @@
|
|||
Fix segmentation fault with jpeg-7 and above where dinfo.do_fancy_upsampling isn't set by default to FALSE anymore.
|
||||
|
||||
Patch by: Salah Coronya
|
||||
|
||||
http://bugs.gentoo.org/show_bug.cgi?id=293919
|
||||
|
||||
--- lavtools/jpegutils.c
|
||||
+++ lavtools/jpegutils.c
|
||||
@@ -502,6 +502,7 @@
|
||||
|
||||
jpeg_read_header (&dinfo, TRUE);
|
||||
dinfo.raw_data_out = TRUE;
|
||||
+ dinfo.do_fancy_upsampling = FALSE;
|
||||
dinfo.out_color_space = JCS_YCbCr;
|
||||
dinfo.dct_method = JDCT_IFAST;
|
||||
guarantee_huff_tables(&dinfo);
|
||||
@@ -599,6 +600,7 @@
|
||||
if (field > 0) {
|
||||
jpeg_read_header (&dinfo, TRUE);
|
||||
dinfo.raw_data_out = TRUE;
|
||||
+ dinfo.do_fancy_upsampling = FALSE;
|
||||
dinfo.out_color_space = JCS_YCbCr;
|
||||
dinfo.dct_method = JDCT_IFAST;
|
||||
jpeg_start_decompress (&dinfo);
|
|
@ -23,8 +23,8 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=mjpegtools
|
||||
VERSION=1.9.0
|
||||
BUILD=${BUILD:-3}
|
||||
VERSION=2.0.0
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
|
@ -69,8 +69,9 @@ chmod -R a-s,u+w,go+r-w .
|
|||
|
||||
# Fix for x86_64
|
||||
sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
|
||||
patch -p1 < $CWD/mjpegtools-1.9.0-glibc-2.10.patch
|
||||
patch -p0 < $CWD/mjpegtools-1.9.0-jpeg-7.patch
|
||||
|
||||
# Fix for gcc-4.7.x
|
||||
sed -i 's/\tDeleteRegion/\tthis->DeleteRegion/' y4mdenoise/MotionSearcher.hh
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
|
@ -91,10 +92,8 @@ make install DESTDIR=$PKG
|
|||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="mjpegtools"
|
||||
VERSION="1.9.0"
|
||||
VERSION="2.0.0"
|
||||
HOMEPAGE="http://mjpeg.sourceforge.net/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/mjpeg/mjpegtools-1.9.0.tar.gz"
|
||||
MD5SUM="309a6fcf0900a010d6a9c1e91afc2f5c"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/mjpeg/mjpegtools-2.0.0.tar.gz"
|
||||
MD5SUM="903e1e3b967eebcc5fe5626d7517dc46"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue