wok-current rev 3553
mjpegtools: fix compile for gcc44
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 23 09:29:42 2009 +0200 (2009-06-23) |
parents | 66f602bccca4 |
children | 3b881b7710b2 |
files | mjpegtools/receipt mjpegtools/stuff/gcc44.u |
line diff
1.1 --- a/mjpegtools/receipt Tue Jun 23 09:17:44 2009 +0200 1.2 +++ b/mjpegtools/receipt Tue Jun 23 09:29:42 2009 +0200 1.3 @@ -18,6 +18,14 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + while read file; do 1.8 + [ -f done.$file ] && continue 1.9 + echo "Apply $file..." 1.10 + patch -p1 < ../stuff/$file || return 1 1.11 + touch done.$file 1.12 + done <<EOT 1.13 +gcc44.u 1.14 +EOT 1.15 ./configure \ 1.16 --prefix=/usr \ 1.17 --mandir=/usr/share/man \
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/mjpegtools/stuff/gcc44.u Tue Jun 23 09:29:42 2009 +0200 2.3 @@ -0,0 +1,11 @@ 2.4 +--- mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp 2.5 ++++ mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp 2.6 +@@ -53,7 +53,7 @@ 2.7 + 2.8 + bool LPCMStream::Probe(IBitStream &bs ) 2.9 + { 2.10 +- char *last_dot = strrchr( bs.StreamName(), '.' ); 2.11 ++ const char *last_dot = strrchr( bs.StreamName(), '.' ); 2.12 + return 2.13 + last_dot != NULL 2.14 + && strcmp( last_dot+1, "lpcm") == 0;