mxe/src/ffmpeg.mk

59 lines
1.9 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
2013-09-07 15:56:08 +01:00
$(PKG)_IGNORE := 2%
2013-12-31 10:35:36 +00:00
$(PKG)_VERSION := 2.1.1
$(PKG)_CHECKSUM := e7a5b2d7f702c4e9ca69e23c6d3527f93de0d1bd
$(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 lame libass libvpx opencore-amr opus sdl speex theora vo-aacenc vo-amrwbenc 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' | \
grep 2.* | \
2013-12-04 02:16:09 +00:00
$(SORT) -Vr | \
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=$(patsubst -%,,$(TARGET)) \
--target-os=mingw32 \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--disable-debug \
--enable-memalign-hack \
--disable-pthreads \
--enable-w32threads \
--disable-doc \
--enable-gpl \
--enable-version3 \
--disable-nonfree \
2012-01-31 08:06:46 +00:00
--enable-avisynth \
--enable-libass \
2010-12-08 00:35:40 +00:00
--disable-libfaac \
--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 \
--enable-postproc \
--enable-avresample
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef