$OpenBSD: patch-src_combined_ffmpeg_Makefile_in,v 1.3 2013/11/30 22:13:37 brad Exp $

Improve locating of avcodec.h by replacing the sed scripts.

--- src/combined/ffmpeg/Makefile.in.orig	Wed Nov 20 18:40:06 2013
+++ src/combined/ffmpeg/Makefile.in	Wed Nov 20 18:40:47 2013
@@ -998,7 +998,7 @@ avcodec_video.list: AV_CODECS:=/CODEC_ID_MPEG1VIDEO/,/
 # 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' >$@
 
