diff options
author | davilla <davilla@svn> | 2010-06-18 16:02:12 +0000 |
---|---|---|
committer | davilla <davilla@svn> | 2010-06-18 16:02:12 +0000 |
commit | 64bc746c8133adc476b43687285465f2126312da (patch) | |
tree | 3ac32819f02422bfd4d972596a8767e4bdd1f65d /lib | |
parent | 47b0a4ffd74f22708c3212388b9a69b76150730f (diff) |
add self-contained Makefile to download and build libvpa as a static lib for ffmpeg
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31179 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libvpx/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/libvpx/Makefile b/lib/libvpx/Makefile new file mode 100644 index 0000000000..f391bafaed --- /dev/null +++ b/lib/libvpx/Makefile @@ -0,0 +1,37 @@ +# +# libvpx build script. +# +# A quick and dirty Makefile to download and build libvpx +# +# Darwin: libvpx is built as an static lib for linkage with FFmpeg. +# x86-darwin8-gcc is targeted so we can run on the AppleTV. +# +# Usage: +# make + +LIBVPX_VERS="0.9.1" +LIBVPX_SRC = libvpx-$(LIBVPX_VERS) +LIBVPX_LIB = $(LIBVPX_SRC)/libvpx.a + +# get OS type from shell +OSTYPE = $(shell uname) +ifeq ($(OSTYPE),Darwin) +TARGET = --target=x86-darwin8-gcc +endif + +all:: $(LIBVPX_LIB) + +$(LIBVPX_LIB): $(LIBVPX_SRC)/Makefile + make -C $(LIBVPX_SRC) + +$(LIBVPX_SRC)/Makefile: + wget http://webm.googlecode.com/files/$(LIBVPX_SRC).tar.bz2 + tar -xjf $(LIBVPX_SRC).tar.bz2 + cd $(LIBVPX_SRC); ./configure --enable-vp8 --disable-examples $(TARGET) + +clean: + make -C $(LIBVPX_SRC) clean + +distclean:: + rm $(LIBVPX_SRC).tar.bz2 + rm -rf $(LIBVPX_SRC) |