Commit 14fa9f28 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: simplify libav/FFmpeg rules as suggested by DonDiego

parent e608d2aa
...@@ -6,7 +6,6 @@ FFMPEG_SNAPURL := http://git.libav.org/?p=libav.git;a=snapshot;h=HEAD;sf=tgz ...@@ -6,7 +6,6 @@ FFMPEG_SNAPURL := http://git.libav.org/?p=libav.git;a=snapshot;h=HEAD;sf=tgz
FFMPEGCONF = \ FFMPEGCONF = \
--cc="$(CC)" \ --cc="$(CC)" \
--disable-doc \ --disable-doc \
--disable-decoder=libvpx \
--disable-decoder=bink \ --disable-decoder=bink \
--enable-libgsm \ --enable-libgsm \
--enable-libopenjpeg \ --enable-libopenjpeg \
...@@ -24,7 +23,7 @@ DEPS_ffmpeg = zlib gsm openjpeg ...@@ -24,7 +23,7 @@ DEPS_ffmpeg = zlib gsm openjpeg
# Optional dependencies # Optional dependencies
ifdef BUILD_ENCODERS ifdef BUILD_ENCODERS
FFMPEGCONF += --enable-libmp3lame --enable-libvpx FFMPEGCONF += --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
DEPS_ffmpeg += lame $(DEPS_lame) vpx $(DEPS_vpx) DEPS_ffmpeg += lame $(DEPS_lame) vpx $(DEPS_vpx)
else else
FFMPEGCONF += --disable-encoders --disable-muxers FFMPEGCONF += --disable-encoders --disable-muxers
...@@ -40,11 +39,6 @@ endif ...@@ -40,11 +39,6 @@ endif
endif endif
endif endif
# XXX: REVISIT
#ifndef HAVE_FPU
#FFMPEGCONF += --disable-mpegaudio-hp
#endif
ifdef HAVE_CROSS_COMPILE ifdef HAVE_CROSS_COMPILE
FFMPEGCONF += --enable-cross-compile FFMPEGCONF += --enable-cross-compile
ifndef HAVE_IOS ifndef HAVE_IOS
...@@ -117,8 +111,6 @@ else ...@@ -117,8 +111,6 @@ else
FFMPEGCONF += --enable-pthreads FFMPEGCONF += --enable-pthreads
endif endif
FFMPEG_CFLAGS += --std=gnu99
# Build # Build
PKGS += ffmpeg PKGS += ffmpeg
...@@ -139,14 +131,10 @@ ffmpeg: ffmpeg-$(FFMPEG_VERSION).tar.gz .sum-ffmpeg ...@@ -139,14 +131,10 @@ ffmpeg: ffmpeg-$(FFMPEG_VERSION).tar.gz .sum-ffmpeg
rm -Rf $@ $@-git rm -Rf $@ $@-git
mkdir -p $@-git mkdir -p $@-git
$(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1) $(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1)
ifdef HAVE_WIN32
sed -i "s/std=c99/std=gnu99/" $@-$(FFMPEG_VERSION)/configure
endif
$(MOVE) $(MOVE)
.ffmpeg: ffmpeg .ffmpeg: ffmpeg
cd $< && $(HOSTVARS) ./configure \ cd $< && $(HOSTVARS) ./configure \
--extra-cflags="$(FFMPEG_CFLAGS) -DHAVE_STDINT_H" \
--extra-ldflags="$(LDFLAGS)" $(FFMPEGCONF) \ --extra-ldflags="$(LDFLAGS)" $(FFMPEGCONF) \
--prefix="$(PREFIX)" --enable-static --disable-shared --prefix="$(PREFIX)" --enable-static --disable-shared
cd $< && $(MAKE) install-libs install-headers cd $< && $(MAKE) install-libs install-headers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment