annotate src/ffmpeg.mk @ 2221:f4f2f11b6eb0

update package ffmpeg
author Mark Brand <mabrand@mabrand.nl>
date Fri, 27 Jan 2012 09:46:25 +0100
parents 579a86151bbc
children bcdf8e03b838
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
2 # See doc/index.html for further information.
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 # ffmpeg
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
5 PKG := ffmpeg
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
2221
f4f2f11b6eb0 update package ffmpeg
Mark Brand <mabrand@mabrand.nl>
parents: 2202
diff changeset
7 $(PKG)_VERSION := 0.10
f4f2f11b6eb0 update package ffmpeg
Mark Brand <mabrand@mabrand.nl>
parents: 2202
diff changeset
8 $(PKG)_CHECKSUM := a3a7fe25db760a99d51266b33386da9c8552feef
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1485
diff changeset
10 $(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
11 $(PKG)_WEBSITE := http://www.ffmpeg.org/
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
12 $(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
13 $(PKG)_URL_2 := http://launchpad.net/ffmpeg/main/$($(PKG)_VERSION)/+download/$($(PKG)_FILE)
1781
cdcd17e66d70 upgrade package: ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents: 1705
diff changeset
14 $(PKG)_DEPS := gcc 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
15
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
16 define $(PKG)_UPDATE
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
17 wget -q -O- 'http://www.ffmpeg.org/download.html' | \
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' | \
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
19 head -1
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
20 endef
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
21
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
22 define $(PKG)_BUILD
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
23 cd '$(1)' && ./configure \
1261
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
24 --cross-prefix='$(TARGET)'- \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
25 --enable-cross-compile \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
26 --arch=i686 \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
27 --target-os=mingw32 \
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
28 --prefix='$(PREFIX)/$(TARGET)' \
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
29 --disable-shared \
1261
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
30 --disable-debug \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
31 --disable-doc \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
32 --enable-memalign-hack \
1485
9265ba80f4cc re-enable GPL and GPLv3 parts of package ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents: 1484
diff changeset
33 --enable-gpl \
9265ba80f4cc re-enable GPL and GPLv3 parts of package ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents: 1484
diff changeset
34 --enable-version3 \
1478
0ae61f0eea8b disable non-free and copylefted parts of package ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents: 1333
diff changeset
35 --disable-nonfree \
1261
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
36 --enable-postproc \
1781
cdcd17e66d70 upgrade package: ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents: 1705
diff changeset
37 --disable-pthreads \
cdcd17e66d70 upgrade package: ffmpeg
Volker Grabsch <vog@notjusthosting.com>
parents: 1705
diff changeset
38 --enable-w32threads \
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