Mercurial > mxe-octave
annotate 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 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2299
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
3 |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
4 PKG := ffmpeg |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
4024 | 6 $(PKG)_VERSION := 2.7.2 |
7 $(PKG)_CHECKSUM := b8175a9a729fc4bdbb3c196ffe84a2fca7977ff8 | |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1485
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
10 $(PKG)_URL := http://www.ffmpeg.org/releases/$($(PKG)_FILE) |
1333
6d9671318bdd
add alternative download URL for package ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1332
diff
changeset
|
11 $(PKG)_URL_2 := http://launchpad.net/ffmpeg/main/$($(PKG)_VERSION)/+download/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
12 $(PKG)_DEPS := bzip2 lame libvpx opencore-amr sdl speex theora vorbis x264 xvidcore zlib |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
13 |
4024 | 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 | |
27 | |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
28 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2507
diff
changeset
|
29 $(WGET) -q -O- 'http://www.ffmpeg.org/download.html' | \ |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
30 $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
31 head -1 |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
32 endef |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
33 |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
34 define $(PKG)_BUILD |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
35 '$(SED)' -i "s^[-]lvpx^`'$(MXE_PKG_CONFIG)' --libs-only-l vpx`^g;" $(1)/configure |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
36 cd '$(1)' && ./configure \ |
4024 | 37 $($(PKG)_CONFIG_OPTS) \ |
38 --arch=$(firstword $(subst -, ,$(TARGET))) \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
39 --prefix='$(HOST_PREFIX)' \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2792
diff
changeset
|
40 $(ENABLE_SHARED_OR_STATIC) \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
41 --disable-debug \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
42 --disable-doc \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
43 --enable-memalign-hack \ |
1485
9265ba80f4cc
re-enable GPL and GPLv3 parts of package ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1484
diff
changeset
|
44 --enable-gpl \ |
9265ba80f4cc
re-enable GPL and GPLv3 parts of package ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1484
diff
changeset
|
45 --enable-version3 \ |
1478
0ae61f0eea8b
disable non-free and copylefted parts of package ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1333
diff
changeset
|
46 --disable-nonfree \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
47 --enable-postproc \ |
1781
cdcd17e66d70
upgrade package: ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1705
diff
changeset
|
48 --disable-pthreads \ |
cdcd17e66d70
upgrade package: ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1705
diff
changeset
|
49 --enable-w32threads \ |
2228
bcdf8e03b838
package ffmpeg: enable avisynth
Martin Lambers <marlam@marlam.de>
parents:
2221
diff
changeset
|
50 --enable-avisynth \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
51 --enable-libspeex \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
52 --enable-libtheora \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
53 --enable-libvorbis \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
54 --enable-libmp3lame \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
55 --enable-libxvid \ |
1484
6bc462de5e7a
remove non-free package faac
Volker Grabsch <vog@notjusthosting.com>
parents:
1478
diff
changeset
|
56 --disable-libfaac \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
57 --enable-libopencore-amrnb \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
58 --enable-libopencore-amrwb \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
59 --enable-libx264 \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
60 --enable-libvpx |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
61 $(MAKE) -C '$(1)' -j '$(JOBS)' |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
62 $(MAKE) -C '$(1)' -j 1 install |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
63 endef |