mxe/src/ffmpeg.mk

51 lines
1.6 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
PKG := ffmpeg
$(PKG)_IGNORE :=
2013-02-11 17:40:11 +00:00
$(PKG)_CHECKSUM := 1fb1c2019ff13440b3670dc83846c654b245c4c9
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://www.ffmpeg.org/releases/$($(PKG)_FILE)
$(PKG)_URL_2 := http://launchpad.net/ffmpeg/main/$($(PKG)_VERSION)/+download/$($(PKG)_FILE)
2011-04-23 18:47:36 +01:00
$(PKG)_DEPS := gcc bzip2 lame libvpx opencore-amr sdl speex theora vorbis x264 xvidcore zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.ffmpeg.org/download.html' | \
$(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
2012-05-25 22:45:04 +01:00
'$(SED)' -i "s^[-]lvpx^`'$(TARGET)'-pkg-config --libs-only-l vpx`^g;" $(1)/configure
cd '$(1)' && ./configure \
--cross-prefix='$(TARGET)'- \
--enable-cross-compile \
--arch=i686 \
--target-os=mingw32 \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--disable-debug \
--disable-doc \
--enable-memalign-hack \
--enable-gpl \
--enable-version3 \
--disable-nonfree \
--enable-postproc \
2011-04-23 18:47:36 +01:00
--disable-pthreads \
--enable-w32threads \
2012-01-31 08:06:46 +00:00
--enable-avisynth \
--enable-libspeex \
--enable-libtheora \
--enable-libvorbis \
--enable-libmp3lame \
--enable-libxvid \
2010-12-08 00:35:40 +00:00
--disable-libfaac \
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
--enable-libx264 \
--enable-libvpx
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef