Mercurial > mxe-octave
annotate src/ffmpeg.mk @ 6522:a2d0ea5e6b2b
* src/ffmpeg.mk: disable ffmpeg programs, remove example sources
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 16 Nov 2022 08:43:43 -0500 |
parents | 9bffb72bb95b |
children | 25b6833fabcc f2bcc92273b6 |
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 := |
6450
9bffb72bb95b
* src/ffmpeg.mk: update to v4.2.8
John Donoghue <john.donoghue@ieee.org>
parents:
6293
diff
changeset
|
6 $(PKG)_VERSION := 4.2.8 |
9bffb72bb95b
* src/ffmpeg.mk: update to v4.2.8
John Donoghue <john.donoghue@ieee.org>
parents:
6293
diff
changeset
|
7 $(PKG)_CHECKSUM := 9ce0fd730c0c05ae636033828303e2b2eca99171 |
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) |
6010
3aad637952e6
* src/ffmpeg.mk, src/wxwidgets.mk: set dependancy in sdl2
John Donoghue <john.donoghue@ieee.org>
parents:
5424
diff
changeset
|
12 $(PKG)_DEPS := bzip2 gnutls lame libvpx opencore-amr sdl2 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 | |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
16 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2507
diff
changeset
|
17 $(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
|
18 $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
6293
ce6bf1e55f17
* src/ffmpeg.mk: only update using 4.2.X versions
John Donoghue <john.donoghue@ieee.org>
parents:
6267
diff
changeset
|
19 $(GREP) "^4.2" | \ |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
20 head -1 |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
21 endef |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
22 |
6228
f40df5c4d8c8
* src/ffmpeg.mk: update to v4.2.6, disable optimizations in x86 mode
John Donoghue <john.donoghue@ieee.org>
parents:
6010
diff
changeset
|
23 ifeq ($(TARGET),i686-w64-mingw32) |
f40df5c4d8c8
* src/ffmpeg.mk: update to v4.2.6, disable optimizations in x86 mode
John Donoghue <john.donoghue@ieee.org>
parents:
6010
diff
changeset
|
24 $(PKG)_CONFIG_OPTS += --disable-optimizations |
f40df5c4d8c8
* src/ffmpeg.mk: update to v4.2.6, disable optimizations in x86 mode
John Donoghue <john.donoghue@ieee.org>
parents:
6010
diff
changeset
|
25 endif |
f40df5c4d8c8
* src/ffmpeg.mk: update to v4.2.6, disable optimizations in x86 mode
John Donoghue <john.donoghue@ieee.org>
parents:
6010
diff
changeset
|
26 |
4026 | 27 ifeq ($(MXE_NATIVE_BUILD),no) |
6228
f40df5c4d8c8
* src/ffmpeg.mk: update to v4.2.6, disable optimizations in x86 mode
John Donoghue <john.donoghue@ieee.org>
parents:
6010
diff
changeset
|
28 |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
29 define $(PKG)_BUILD |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
30 '$(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
|
31 cd '$(1)' && ./configure \ |
4026 | 32 --cross-prefix='$(MXE_TOOL_PREFIX)' \ |
33 --enable-cross-compile \ | |
34 --target-os=mingw32 \ | |
4024 | 35 --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
|
36 --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
|
37 $(ENABLE_SHARED_OR_STATIC) \ |
4063 | 38 --yasmexe='$(BUILD_TOOLS_PREFIX)/bin/yasm' \ |
4029 | 39 --extra-libs='-mconsole' \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
40 --disable-debug \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
41 --disable-doc \ |
6522
a2d0ea5e6b2b
* src/ffmpeg.mk: disable ffmpeg programs, remove example sources
John Donoghue <john.donoghue@ieee.org>
parents:
6450
diff
changeset
|
42 --disable-programs \ |
4063 | 43 --enable-avresample \ |
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 \ |
1781
cdcd17e66d70
upgrade package: ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1705
diff
changeset
|
46 --disable-pthreads \ |
cdcd17e66d70
upgrade package: ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1705
diff
changeset
|
47 --enable-w32threads \ |
2228
bcdf8e03b838
package ffmpeg: enable avisynth
Martin Lambers <marlam@marlam.de>
parents:
2221
diff
changeset
|
48 --enable-avisynth \ |
4063 | 49 --enable-gnutls \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
50 --enable-libspeex \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
51 --enable-libtheora \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
52 --enable-libvorbis \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
53 --enable-libmp3lame \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
54 --enable-libxvid \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
55 --enable-libopencore-amrnb \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
56 --enable-libopencore-amrwb \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
57 --enable-libx264 \ |
6228
f40df5c4d8c8
* src/ffmpeg.mk: update to v4.2.6, disable optimizations in x86 mode
John Donoghue <john.donoghue@ieee.org>
parents:
6010
diff
changeset
|
58 --enable-libvpx \ |
f40df5c4d8c8
* src/ffmpeg.mk: update to v4.2.6, disable optimizations in x86 mode
John Donoghue <john.donoghue@ieee.org>
parents:
6010
diff
changeset
|
59 $($(PKG)_CONFIG_OPTS) |
f40df5c4d8c8
* src/ffmpeg.mk: update to v4.2.6, disable optimizations in x86 mode
John Donoghue <john.donoghue@ieee.org>
parents:
6010
diff
changeset
|
60 $(MAKE) -C '$(1)' -j '$(JOBS)' V=1 |
6522
a2d0ea5e6b2b
* src/ffmpeg.mk: disable ffmpeg programs, remove example sources
John Donoghue <john.donoghue@ieee.org>
parents:
6450
diff
changeset
|
61 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' |
a2d0ea5e6b2b
* src/ffmpeg.mk: disable ffmpeg programs, remove example sources
John Donoghue <john.donoghue@ieee.org>
parents:
6450
diff
changeset
|
62 rm -rf "$(3)$(HOST_PREFIX)/share/ffmpeg" |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
63 endef |
4026 | 64 else |
65 define $(PKG)_BUILD | |
66 '$(SED)' -i "s^[-]lvpx^`'$(MXE_PKG_CONFIG)' --libs-only-l vpx`^g;" $(1)/configure | |
67 cd '$(1)' && CPPFLAGS=-I$(HOST_INCDIR) LDFLAGS=-L$(HOST_LIBDIR) ./configure \ | |
68 --prefix='$(HOST_PREFIX)' \ | |
69 $(ENABLE_SHARED_OR_STATIC) \ | |
70 --disable-debug \ | |
71 --disable-doc \ | |
6522
a2d0ea5e6b2b
* src/ffmpeg.mk: disable ffmpeg programs, remove example sources
John Donoghue <john.donoghue@ieee.org>
parents:
6450
diff
changeset
|
72 --disable-programs \ |
4026 | 73 --enable-gpl \ |
74 --enable-version3 \ | |
75 --disable-nonfree \ | |
76 --enable-postproc \ | |
77 --enable-avisynth \ | |
78 --enable-libspeex \ | |
79 --enable-libtheora \ | |
80 --enable-libvorbis \ | |
81 --enable-libmp3lame \ | |
82 --enable-libxvid \ | |
83 --enable-libopencore-amrnb \ | |
84 --enable-libopencore-amrwb \ | |
85 --enable-libx264 \ | |
86 --enable-libvpx | |
87 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
6522
a2d0ea5e6b2b
* src/ffmpeg.mk: disable ffmpeg programs, remove example sources
John Donoghue <john.donoghue@ieee.org>
parents:
6450
diff
changeset
|
88 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' |
a2d0ea5e6b2b
* src/ffmpeg.mk: disable ffmpeg programs, remove example sources
John Donoghue <john.donoghue@ieee.org>
parents:
6450
diff
changeset
|
89 rm -rf "$(3)$(HOST_PREFIX)/share/ffmpeg" |
4026 | 90 endef |
91 | |
92 endif |