summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarren Salt <devspam@moreofthesa.me.uk>2013-09-28 14:07:29 +0100
committerDarren Salt <devspam@moreofthesa.me.uk>2013-09-28 14:07:29 +0100
commita6bcb2c3f6ed9a3a1e0bc9daa1ddbeb2b9168aa4 (patch)
tree8108d2570e06f2d6c1f5bfc72246c56e3cd49609 /src
parentfaf759b603c694a968e343918e750fcfa19c3e1e (diff)
downloadxine-lib-a6bcb2c3f6ed9a3a1e0bc9daa1ddbeb2b9168aa4.tar.gz
xine-lib-a6bcb2c3f6ed9a3a1e0bc9daa1ddbeb2b9168aa4.tar.bz2
Improve locating of avcodec.h by replacing the sed scripts.
Diffstat (limited to 'src')
-rw-r--r--src/combined/ffmpeg/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/combined/ffmpeg/Makefile.am b/src/combined/ffmpeg/Makefile.am
index f10bd7022..61ac6d294 100644
--- a/src/combined/ffmpeg/Makefile.am
+++ b/src/combined/ffmpeg/Makefile.am
@@ -40,7 +40,7 @@ avcodec_video.list: AV_CODECS:=/CODEC_ID_MPEG1VIDEO/,/CODEC_ID_PCM_S16LE/
# that weird shell call just yields full path of the avcodec.h file
avcodec_audio.list avcodec_video.list: $(shell \
echo '#include "$(srcdir)/ffmpeg_decoder.h"' | $(AV_CPP) -M - |\
- sed -e 's/ \+/\n/g;' | sed -n -e '/avcodec\.h/p;')
+ sed -e '/avcodec\.h/! d; s%^.* \([^ ]*/avcodec\.h\) .*%\1%')
$(AM_V_GEN)echo '#include "$(srcdir)/ffmpeg_decoder.h"' | $(AV_CPP) - |\
sed -e $(AV_CODECS)'! d; s/^[ \t]*//; s/[=,].*//; /^$$/ d' >$@