comparison 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
comparison
equal deleted inserted replaced
1260:f496cd5041bd 1261:050f5ff03b26
8 $(PKG)_CHECKSUM := 9e4bc2f1fdb4565bea54d7fb38e705b40620e208 8 $(PKG)_CHECKSUM := 9e4bc2f1fdb4565bea54d7fb38e705b40620e208
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) 9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz 10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
11 $(PKG)_WEBSITE := http://www.ffmpeg.org/ 11 $(PKG)_WEBSITE := http://www.ffmpeg.org/
12 $(PKG)_URL := http://www.ffmpeg.org/releases/$($(PKG)_FILE) 12 $(PKG)_URL := http://www.ffmpeg.org/releases/$($(PKG)_FILE)
13 $(PKG)_DEPS := gcc xvidcore speex theora vorbis lame faad2 faac opencore-amr x264 libvpx 13 $(PKG)_DEPS := gcc bzip2 faad2 faac lame libvpx opencore-amr sdl speex theora vorbis x264 xvidcore zlib
14 14
15 define $(PKG)_UPDATE 15 define $(PKG)_UPDATE
16 wget -q -O- 'http://www.ffmpeg.org/download.html' | \ 16 wget -q -O- 'http://www.ffmpeg.org/download.html' | \
17 $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \ 17 $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \
18 head -1 18 head -1
19 endef 19 endef
20 20
21 define $(PKG)_BUILD 21 define $(PKG)_BUILD
22 cd '$(1)' && ./configure \ 22 cd '$(1)' && ./configure \
23 --cross-prefix='$(TARGET)'- \ 23 --cross-prefix='$(TARGET)'- \
24 --enable-cross-compile \ 24 --enable-cross-compile \
25 --arch=i686 \ 25 --arch=i686 \
26 --target-os=mingw32 \ 26 --target-os=mingw32 \
27 --prefix='$(PREFIX)/$(TARGET)' \ 27 --prefix='$(PREFIX)/$(TARGET)' \
28 --disable-shared \ 28 --disable-shared \
29 --disable-debug \ 29 --disable-debug \
30 --disable-doc \ 30 --disable-doc \
31 --enable-memalign-hack \ 31 --enable-memalign-hack \
32 --enable-gpl \ 32 --enable-gpl \
33 --enable-version3 \ 33 --enable-version3 \
34 --enable-nonfree \ 34 --enable-nonfree \
35 --enable-postproc \ 35 --enable-postproc \
36 --enable-libspeex \ 36 --enable-libspeex \
37 --enable-libtheora \ 37 --enable-libtheora \
38 --enable-libvorbis \ 38 --enable-libvorbis \
39 --enable-libmp3lame \ 39 --enable-libmp3lame \
40 --enable-libxvid \ 40 --enable-libxvid \
41 --enable-libfaad \ 41 --enable-libfaad \
42 --enable-libfaac \ 42 --enable-libfaac \
43 --enable-libopencore-amrnb \ 43 --enable-libopencore-amrnb \
44 --enable-libopencore-amrwb \ 44 --enable-libopencore-amrwb \
45 --enable-libx264 \ 45 --enable-libx264 \
46 --enable-libvpx 46 --enable-libvpx
47 $(MAKE) -C '$(1)' -j '$(JOBS)' 47 $(MAKE) -C '$(1)' -j '$(JOBS)'
48 $(MAKE) -C '$(1)' -j 1 install 48 $(MAKE) -C '$(1)' -j 1 install
49 endef 49 endef