add ffmpeg compilation

This commit is contained in:
Jehan Monnier 2011-03-28 09:27:33 +02:00
parent 3095187794
commit 97084dfa71
6 changed files with 51 additions and 0 deletions

9
.gitmodules vendored
View file

@ -25,3 +25,12 @@
[submodule "submodules/msamr"]
path = submodules/msamr
url = git://git.linphone.org/msamr.git
[submodule "submodules/externals/ffmpeg"]
path = submodules/externals/ffmpeg
url = git://git.videolan.org/ffmpeg
[submodule "submodules/externals/x264"]
path = submodules/externals/x264
url = git://git.videolan.org/x264.git
[submodule "submodules/msx264"]
path = submodules/msx264
url = git://git.linphone.org/msx264.git

1
README
View file

@ -8,6 +8,7 @@ Linphone for iPhone depends on liblinphone sdk. To build this sdk, you must inst
-intltool
-wget
-pkgconfig
-gas-preposessor.pl (http://github.com/yuvi/gas-preprocessor/ )
Link macport libtoolize to glibtoolize (sudo ln -s /opt/local/bin/glibtoolize /opt/local/bin/libtoolize)

View file

@ -0,0 +1,38 @@
ffmpeg_configure_options=\
--disable-mmx \
--enable-cross-compile \
--disable-ffprobe --disable-ffserver --disable-avdevice \
--disable-avfilter --disable-network \
--disable-everything --enable-decoder=mpeg4 --enable-encoder=mpeg4 \
--enable-decoder=h264 --disable-avformat --enable-armv6 --enable-armv6t2 \
--enable-armvfp --enable-neon \
--source-path=$(BUILDER_SRC_DIR)/$(ffmpeg_dir) \
--cross-prefix=$$SDK_BIN_PATH/ \
--sysroot=$$SYSROOT_PATH --arch=$$ARCH \
--enable-static --disable-shared --target-os=darwin \
--cpu=cortex-a8 --extra-cflags="-arch $$ARCH " --extra-ldflags="-arch $$ARCH -Wl,-syslibroot,$$SYSROOT_PATH " \
# --as=$(BUILDER_SRC_DIR)/externals/x264/extras/gas-preprocessor.pl
#--sysinclude=PATH location of cross-build system headers
ffmpeg_dir?=externals/ffmpeg
$(BUILDER_BUILD_DIR)/$(ffmpeg_dir)/Makefile: $(BUILDER_SRC_DIR)/$(ffmpeg_dir)/configure
mkdir -p $(BUILDER_BUILD_DIR)/$(ffmpeg_dir)
cd $(BUILDER_BUILD_DIR)/$(ffmpeg_dir)/ \
&& host_alias=${host} . $(BUILDER_SRC_DIR)/build/$(config_site) \
&& $(BUILDER_SRC_DIR)/$(ffmpeg_dir)/configure --prefix=$(prefix) $(ffmpeg_configure_options)
build-ffmpeg: $(BUILDER_BUILD_DIR)/$(ffmpeg_dir)/Makefile
cd $(BUILDER_BUILD_DIR)/$(ffmpeg_dir) && PKG_CONFIG_PATH=$(prefix)/lib/pkgconfig CONFIG_SITE=$(BUILDER_SRC_DIR)/build/$(config_site) make && make install
clean-ffmpeg:
cd $(BUILDER_BUILD_DIR)/$(ffmpeg_dir) && make clean
veryclean-ffmpeg:
cd $(BUILDER_BUILD_DIR)/$(ffmpeg_dir) && make distclean
cd $(BUILDER_SRC_DIR)/$(ffmpeg_dir) && rm -f configure
clean-makefile-ffmpeg:
cd $(BUILDER_BUILD_DIR)/$(ffmpeg_dir) && rm -f Makefile

1
submodules/externals/ffmpeg vendored Submodule

@ -0,0 +1 @@
Subproject commit 907783f221ad9594a528681e30777705f11bf0b5

1
submodules/externals/x264 vendored Submodule

@ -0,0 +1 @@
Subproject commit 08d04a4d30b452faed3b763528611737d994b30b

1
submodules/msx264 Submodule

@ -0,0 +1 @@
Subproject commit 2e10820e9c32fe75f049308d69e4164b46bc0d1a