Mercurial > mxe-octave
comparison src/ffmpeg.mk @ 4024:8114d05101dc
ffmpeg: update to v2.7.2
* src/ffmpeg.mk: update version, checksum, add native vs cross build rules
* src/xvidcore.mk: fix typo in install of .dll.a
* src/libvpx.mk: set target based on build options
author | John Donoghue |
---|---|
date | Fri, 11 Sep 2015 15:22:10 -0400 |
parents | 13be64f9f16d |
children | 28fa86d2cf21 |
comparison
equal
deleted
inserted
replaced
4023:e9bc89b98054 | 4024:8114d05101dc |
---|---|
1 # This file is part of MXE. | 1 # This file is part of MXE. |
2 # See index.html for further information. | 2 # See index.html for further information. |
3 | 3 |
4 PKG := ffmpeg | 4 PKG := ffmpeg |
5 $(PKG)_IGNORE := | 5 $(PKG)_IGNORE := |
6 $(PKG)_VERSION := 1.0 | 6 $(PKG)_VERSION := 2.7.2 |
7 $(PKG)_CHECKSUM := bf1f917c4fa26cf225616f2063e60c33cac546be | 7 $(PKG)_CHECKSUM := b8175a9a729fc4bdbb3c196ffe84a2fca7977ff8 |
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 | 9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 |
10 $(PKG)_URL := http://www.ffmpeg.org/releases/$($(PKG)_FILE) | 10 $(PKG)_URL := http://www.ffmpeg.org/releases/$($(PKG)_FILE) |
11 $(PKG)_URL_2 := http://launchpad.net/ffmpeg/main/$($(PKG)_VERSION)/+download/$($(PKG)_FILE) | 11 $(PKG)_URL_2 := http://launchpad.net/ffmpeg/main/$($(PKG)_VERSION)/+download/$($(PKG)_FILE) |
12 $(PKG)_DEPS := bzip2 lame libvpx opencore-amr sdl speex theora vorbis x264 xvidcore zlib | 12 $(PKG)_DEPS := bzip2 lame libvpx opencore-amr sdl speex theora vorbis x264 xvidcore zlib |
13 | |
14 $(PKG)_CONFIG_OPTS := | |
15 | |
16 ifeq ($(MXE_SYSTEM),mingw) | |
17 $(PKG)_CONFIG_OPTS += \ | |
18 --target-os=mingw32 | |
19 endif | |
20 | |
21 ifneq ($(MXE_NATIVE_BUILD),yes) | |
22 $(PKG)_CONFIG_OPTS += \ | |
23 --cross-prefix='$(MXE_TOOL_PREFIX)' \ | |
24 --enable-cross-compile | |
25 endif | |
26 | |
13 | 27 |
14 define $(PKG)_UPDATE | 28 define $(PKG)_UPDATE |
15 $(WGET) -q -O- 'http://www.ffmpeg.org/download.html' | \ | 29 $(WGET) -q -O- 'http://www.ffmpeg.org/download.html' | \ |
16 $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \ | 30 $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
17 head -1 | 31 head -1 |
18 endef | 32 endef |
19 | 33 |
20 define $(PKG)_BUILD | 34 define $(PKG)_BUILD |
21 '$(SED)' -i "s^[-]lvpx^`'$(MXE_PKG_CONFIG)' --libs-only-l vpx`^g;" $(1)/configure | 35 '$(SED)' -i "s^[-]lvpx^`'$(MXE_PKG_CONFIG)' --libs-only-l vpx`^g;" $(1)/configure |
22 cd '$(1)' && ./configure \ | 36 cd '$(1)' && ./configure \ |
23 --cross-prefix='$(MXE_TOOL_PREFIX)' \ | 37 $($(PKG)_CONFIG_OPTS) \ |
24 --enable-cross-compile \ | 38 --arch=$(firstword $(subst -, ,$(TARGET))) \ |
25 --arch=i686 \ | |
26 --target-os=mingw32 \ | |
27 --prefix='$(HOST_PREFIX)' \ | 39 --prefix='$(HOST_PREFIX)' \ |
28 $(ENABLE_SHARED_OR_STATIC) \ | 40 $(ENABLE_SHARED_OR_STATIC) \ |
29 --disable-debug \ | 41 --disable-debug \ |
30 --disable-doc \ | 42 --disable-doc \ |
31 --enable-memalign-hack \ | 43 --enable-memalign-hack \ |