Mercurial > mxe-octave
annotate src/ffmpeg.mk @ 3634:3b4116a23496
of-netcdf: update to 1.0.5
* src/of-netcdf.mk: update version,checksum
* build_packages.m: update netcdf
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Mon, 30 Jun 2014 20:34:29 -0400 |
parents | 13be64f9f16d |
children | 8114d05101dc |
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 := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 1.0 |
2792 | 7 $(PKG)_CHECKSUM := bf1f917c4fa26cf225616f2063e60c33cac546be |
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 |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
14 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2507
diff
changeset
|
15 $(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
|
16 $(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
|
17 head -1 |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
18 endef |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
19 |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
21 '$(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
|
22 cd '$(1)' && ./configure \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
23 --cross-prefix='$(MXE_TOOL_PREFIX)' \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
24 --enable-cross-compile \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
25 --arch=i686 \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
26 --target-os=mingw32 \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
27 --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
|
28 $(ENABLE_SHARED_OR_STATIC) \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
29 --disable-debug \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
30 --disable-doc \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
31 --enable-memalign-hack \ |
1485
9265ba80f4cc
re-enable GPL and GPLv3 parts of package ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1484
diff
changeset
|
32 --enable-gpl \ |
9265ba80f4cc
re-enable GPL and GPLv3 parts of package ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1484
diff
changeset
|
33 --enable-version3 \ |
1478
0ae61f0eea8b
disable non-free and copylefted parts of package ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1333
diff
changeset
|
34 --disable-nonfree \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
35 --enable-postproc \ |
1781
cdcd17e66d70
upgrade package: ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1705
diff
changeset
|
36 --disable-pthreads \ |
cdcd17e66d70
upgrade package: ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
1705
diff
changeset
|
37 --enable-w32threads \ |
2228
bcdf8e03b838
package ffmpeg: enable avisynth
Martin Lambers <marlam@marlam.de>
parents:
2221
diff
changeset
|
38 --enable-avisynth \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
39 --enable-libspeex \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
40 --enable-libtheora \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
41 --enable-libvorbis \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
42 --enable-libmp3lame \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
43 --enable-libxvid \ |
1484
6bc462de5e7a
remove non-free package faac
Volker Grabsch <vog@notjusthosting.com>
parents:
1478
diff
changeset
|
44 --disable-libfaac \ |
1261
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
45 --enable-libopencore-amrnb \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
46 --enable-libopencore-amrwb \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
47 --enable-libx264 \ |
050f5ff03b26
improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents:
1259
diff
changeset
|
48 --enable-libvpx |
1257
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
49 $(MAKE) -C '$(1)' -j '$(JOBS)' |
afabf3a51818
new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff
changeset
|
50 $(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
|
51 endef |