mxe/src/ffmpeg.mk

60 lines
2.0 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
2014-01-31 04:20:13 +00:00
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.2.1
$(PKG)_CHECKSUM := c5f8d103b20cd73d329401d85ced4a014757f8b9
$(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)
$(PKG)_DEPS := gcc bzip2 gnutls lame libass libbluray libvpx opencore-amr opus sdl speex theora vo-aacenc vo-amrwbenc vorbis x264 xvidcore yasm zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://ffmpeg.org/releases/' | \
$(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \
grep -v 'alpha\|beta\|rc\|git' | \
2013-12-04 02:16:09 +00:00
$(SORT) -Vr | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--cross-prefix='$(TARGET)'- \
--enable-cross-compile \
--arch=$(firstword $(subst -, ,$(TARGET))) \
--target-os=mingw32 \
--prefix='$(PREFIX)/$(TARGET)' \
2014-02-10 05:33:26 +00:00
$(if $(BUILD_STATIC), \
--enable-static --disable-shared , \
--disable-static --enable-shared ) \
--yasmexe='$(TARGET)-yasm' \
--disable-debug \
--enable-memalign-hack \
--disable-pthreads \
--enable-w32threads \
--disable-doc \
--enable-avresample \
--enable-gpl \
--enable-version3 \
2012-01-31 08:06:46 +00:00
--enable-avisynth \
--enable-gnutls \
--enable-libass \
--enable-libbluray \
--enable-libmp3lame \
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
--enable-libopus \
--enable-libspeex \
--enable-libtheora \
--enable-libvo-aacenc \
--enable-libvo-amrwbenc \
--enable-libvorbis \
2013-02-11 18:01:46 +00:00
--enable-libvpx \
--enable-libx264 \
--enable-libxvid
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef