Mercurial > mxe-octave
comparison src/ffmpeg.mk @ 6228:f40df5c4d8c8
* src/ffmpeg.mk: update to v4.2.6, disable optimizations in x86 mode
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 18 May 2022 07:55:38 -0400 |
parents | 3aad637952e6 |
children | 91f70023a048 |
comparison
equal
deleted
inserted
replaced
6227:523c3ee21fa7 | 6228:f40df5c4d8c8 |
---|---|
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 := 4.2.3 | 6 $(PKG)_VERSION := 4.2.6 |
7 $(PKG)_CHECKSUM := 7be5114d169e5a1ba73ad1e844e7fb4d0fb93cc6 | 7 $(PKG)_CHECKSUM := 94fc4d979d7efd5fc85869300fe93fa7a275b365 |
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 gnutls lame libvpx opencore-amr sdl2 speex theora vorbis x264 xvidcore zlib | 12 $(PKG)_DEPS := bzip2 gnutls lame libvpx opencore-amr sdl2 speex theora vorbis x264 xvidcore zlib |
17 $(WGET) -q -O- 'http://www.ffmpeg.org/download.html' | \ | 17 $(WGET) -q -O- 'http://www.ffmpeg.org/download.html' | \ |
18 $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \ | 18 $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
19 head -1 | 19 head -1 |
20 endef | 20 endef |
21 | 21 |
22 ifeq ($(TARGET),i686-w64-mingw32) | |
23 $(PKG)_CONFIG_OPTS += --disable-optimizations | |
24 endif | |
25 | |
22 ifeq ($(MXE_NATIVE_BUILD),no) | 26 ifeq ($(MXE_NATIVE_BUILD),no) |
27 | |
23 define $(PKG)_BUILD | 28 define $(PKG)_BUILD |
24 '$(SED)' -i "s^[-]lvpx^`'$(MXE_PKG_CONFIG)' --libs-only-l vpx`^g;" $(1)/configure | 29 '$(SED)' -i "s^[-]lvpx^`'$(MXE_PKG_CONFIG)' --libs-only-l vpx`^g;" $(1)/configure |
25 cd '$(1)' && ./configure \ | 30 cd '$(1)' && ./configure \ |
26 --cross-prefix='$(MXE_TOOL_PREFIX)' \ | 31 --cross-prefix='$(MXE_TOOL_PREFIX)' \ |
27 --enable-cross-compile \ | 32 --enable-cross-compile \ |
46 --enable-libmp3lame \ | 51 --enable-libmp3lame \ |
47 --enable-libxvid \ | 52 --enable-libxvid \ |
48 --enable-libopencore-amrnb \ | 53 --enable-libopencore-amrnb \ |
49 --enable-libopencore-amrwb \ | 54 --enable-libopencore-amrwb \ |
50 --enable-libx264 \ | 55 --enable-libx264 \ |
51 --enable-libvpx | 56 --enable-libvpx \ |
52 $(MAKE) -C '$(1)' -j '$(JOBS)' | 57 $($(PKG)_CONFIG_OPTS) |
58 $(MAKE) -C '$(1)' -j '$(JOBS)' V=1 | |
53 $(MAKE) -C '$(1)' -j 1 install | 59 $(MAKE) -C '$(1)' -j 1 install |
54 endef | 60 endef |
55 else | 61 else |
56 define $(PKG)_BUILD | 62 define $(PKG)_BUILD |
57 '$(SED)' -i "s^[-]lvpx^`'$(MXE_PKG_CONFIG)' --libs-only-l vpx`^g;" $(1)/configure | 63 '$(SED)' -i "s^[-]lvpx^`'$(MXE_PKG_CONFIG)' --libs-only-l vpx`^g;" $(1)/configure |