comparison src/ffmpeg.mk @ 1257:afabf3a51818

new packages: faac, faad2, ffmpeg, lame, libvpx, opencore-amr, x264
author Di Appoggio <diappoggio@gmail.com>
date Mon, 20 Sep 2010 22:04:43 +1000
parents
children 8ab68c8615ca
comparison
equal deleted inserted replaced
1256:b6d98b5e72f6 1257:afabf3a51818
1 # This file is part of mingw-cross-env.
2 # See doc/index.html for further information.
3
4 # ffmpeg
5 PKG := ffmpeg
6 $(PKG)_IGNORE :=
7 $(PKG)_VERSION := 0.6
8 $(PKG)_CHECKSUM := 9e4bc2f1fdb4565bea54d7fb38e705b40620e208
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
11 $(PKG)_WEBSITE := http://www.ffmpeg.org/
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
14
15 define $(PKG)_UPDATE
16 wget -q -O- 'http://www.ffmpeg.org/download.html' | \
17 $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \
18 head -1
19 endef
20
21 define $(PKG)_BUILD
22
23 ln -sf $(PREFIX)/$(TARGET)/lib/xvidcore.a $(PREFIX)/$(TARGET)/lib/libxvidcore.a
24 ln -sf $(PREFIX)/$(TARGET)/bin/sdl-config $(PREFIX)/bin/$(TARGET)-sdl-config
25
26 cd '$(1)' && ./configure \
27 --cross-prefix='$(TARGET)'- \
28 --enable-cross-compile \
29 --arch=i686 \
30 --target-os=mingw32 \
31 --prefix='$(PREFIX)/$(TARGET)' \
32 --disable-shared \
33 --disable-debug \
34 --disable-doc \
35 --enable-memalign-hack \
36 --enable-gpl \
37 --enable-version3 \
38 --enable-nonfree \
39 --enable-postproc \
40 --enable-libspeex \
41 --enable-libtheora \
42 --enable-libvorbis \
43 --enable-libmp3lame \
44 --enable-libxvid \
45 --enable-libfaad \
46 --enable-libfaac \
47 --enable-libopencore-amrnb \
48 --enable-libopencore-amrwb \
49 --enable-libx264 \
50 --enable-libvpx
51 $(MAKE) -C '$(1)' -j '$(JOBS)'
52 $(MAKE) -C '$(1)' -j 1 install
53 endef