diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2009-02-13 18:01:29 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2009-02-13 18:01:29 +0000 |
commit | 7e9dd1f2257ee37b6b3057de11cf57571b85924f (patch) | |
tree | cfc5510b1b87a0cf2a0f9e19ce7baf8af214fe4c | |
parent | 6002a9a87b3f591832c2b91ca1b2b1b67be008f5 (diff) | |
download | xine-lib-7e9dd1f2257ee37b6b3057de11cf57571b85924f.tar.gz xine-lib-7e9dd1f2257ee37b6b3057de11cf57571b85924f.tar.bz2 |
Fix a build failure on *BSD due to some rather useful GNUisms.
Their sed doesn't have \s and their tail doesn't handle -ve line counts.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/combined/ffmpeg/Makefile.am | 3 | ||||
-rwxr-xr-x | src/combined/ffmpeg/mkcodeclist.pl | 4 |
3 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,7 @@ xine-lib (1.1.17) 2009-??-?? * Enable libmpeg2new. This is not yet production code; the old mpeg2 decoder remains the default. + * Fix a build failure on *BSD due to some rather useful GNUisms. xine-lib (1.1.16.2) 2009-02-10 * Build fixes related to ImageMagick 6.4 & later. diff --git a/src/combined/ffmpeg/Makefile.am b/src/combined/ffmpeg/Makefile.am index daae18509..24cab7577 100644 --- a/src/combined/ffmpeg/Makefile.am +++ b/src/combined/ffmpeg/Makefile.am @@ -64,8 +64,7 @@ avcodec_video.list: AV_CODECS:=/CODEC_ID_MPEG1VIDEO/,/CODEC_ID_PCM_S16LE/ avcodec_audio.list avcodec_video.list: echo '#include "$(srcdir)/ffmpeg_decoder.h"' | $(AV_CPP) - |\ - sed -e $(AV_CODECS)'! d; s/^\s*//; s/[=,].*//; /^$$/ d' |\ - head -n -1 >$@ + sed -e $(AV_CODECS)'! d; s/^[ \t]*//; s/[=,].*//; /^$$/ d' >$@ # Generate the mappings. These are #included where needed. ff_%_list.h: $(srcdir)/mkcodeclist.pl avcodec_%.list $(srcdir)/xine_%.list diff --git a/src/combined/ffmpeg/mkcodeclist.pl b/src/combined/ffmpeg/mkcodeclist.pl index c4070eb32..b4a10921a 100755 --- a/src/combined/ffmpeg/mkcodeclist.pl +++ b/src/combined/ffmpeg/mkcodeclist.pl @@ -12,10 +12,12 @@ my $line; # Read in the ffmpeg codec IDs my %codecs; open LIST, "< $ffmpeg" or die $!; -while (defined ($line = <LIST>)) { +$line = <LIST>; +while (defined $line) { chomp $line; $line =~ s/^CODEC_ID_//o; $codecs{$line} = 0; + $line = <LIST>; } close LIST or die $!; |