# Note: at present, we check out the tree from 2005-04-30 because of
# compilation issues. We will use the latest version again, when our
# ffmpeg-module is fixed properly -- FK
ffmpeg:
echo$(FFMPEG_CVSROOT) A > ./ffmpeg.cvs
CVS_PASSFILE=./ffmpeg.cvs cvs -z3-d$(FFMPEG_CVSROOT) co -D 2005-04-30 ffmpeg
patch -p 0 < Patches/ffmpeg.patch.cvs
# (cd $@; ./bootstrap)
ffmpeg-$(FFMPEG_VERSION).tar.gz:
$(WGET)$(FFMPEG_URL)
#ffmpeg: ffmpeg-$(FFMPEG_VERSION).tar.gz
# $(EXTRACT_GZ)
# patch -p 0 < Patches/ffmpeg.patch
.ffmpeg:ffmpeg
(cd$<; ./configure $(FFMPEGCONF)--prefix=$(PREFIX)--extra-cflags="$(CFLAGS) -DRUNTIME_CPUDETECT"--extra-ldflags="$(LDFLAGS)"--enable-gpl--enable-mp3lame--enable-faac--enable-pp--disable-vhook--disable-audio-beos--disable-ffserver--disable-vorbis--disable-faad--enable-mp3lame--enable-zlib--enable-a52&& make && make -C libavcodec/libpostproc install&& make -C libavcodec installlib && make -C libavformat installlib)
(cd$<; ./configure $(HOSTCONF)--enable-static--prefix=$(PREFIX)--with-libdvdcss=$(PREFIX)CFLAGS="$(CFLAGS) -Dlseek64=lseek -Doff64_t=off_t"&& make && make install)
(cd$<; ./configure --prefix=$(PREFIX)--disable-shared--enable-staticCFLAGS="$(CFLAGS) -D_BSD_SOCKLEN_T_=int"LDFLAGS="$(LDFLAGS) -liconv"&& make && make install)