annotate src/ffmpeg.mk @ 1261:050f5ff03b26

improve coding style of ffmpeg and dependencies
author Tony Theodore <tonyt@logyst.com>
date Mon, 20 Sep 2010 22:39:37 +1000
parents 8ab68c8615ca
children b1d5f4482b38
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 :=
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
7 $(PKG)_VERSION := 0.6
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 9e4bc2f1fdb4565bea54d7fb38e705b40620e208
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)
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
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)
1261
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
13 $(PKG)_DEPS := gcc bzip2 faad2 faac 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
14
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
16 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
17 $(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
18 head -1
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
19 endef
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
20
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
21 define $(PKG)_BUILD
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
22 cd '$(1)' && ./configure \
1261
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
23 --cross-prefix='$(TARGET)'- \
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 \
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
27 --prefix='$(PREFIX)/$(TARGET)' \
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
28 --disable-shared \
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 \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
32 --enable-gpl \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
33 --enable-version3 \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
34 --enable-nonfree \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
35 --enable-postproc \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
36 --enable-libspeex \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
37 --enable-libtheora \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
38 --enable-libvorbis \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
39 --enable-libmp3lame \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
40 --enable-libxvid \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
41 --enable-libfaad \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
42 --enable-libfaac \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
43 --enable-libopencore-amrnb \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
44 --enable-libopencore-amrwb \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
45 --enable-libx264 \
050f5ff03b26 improve coding style of ffmpeg and dependencies
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
46 --enable-libvpx
1257
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
47 $(MAKE) -C '$(1)' -j '$(JOBS)'
afabf3a51818 new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
Di Appoggio <diappoggio@gmail.com>
parents:
diff changeset
48 $(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
49 endef