diff options
author | davilla <davilla@svn> | 2010-08-07 06:24:55 +0000 |
---|---|---|
committer | davilla <davilla@svn> | 2010-08-07 06:24:55 +0000 |
commit | 1dbdb471cfb4e7f8894c6379f78fd96b089a1bea (patch) | |
tree | 15874b39e3358035acf8b99b5ccc2355ae382d2d /lib/libbluray/Makefile | |
parent | 8c7aee74871ce0964213521a03bca7d190873cf8 (diff) |
add libbluray download/makefile
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@32564 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'lib/libbluray/Makefile')
-rw-r--r-- | lib/libbluray/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/lib/libbluray/Makefile b/lib/libbluray/Makefile new file mode 100644 index 0000000000..e149d50b9d --- /dev/null +++ b/lib/libbluray/Makefile @@ -0,0 +1,55 @@ +# +# libbluray build script for OSX darwin. +# +# A quick and dirty Makefile to download/build and install libbluray +# +# Darwin: +# 10.4u.sdk is targeted so we can run on the AppleTV. Macports is assumed to +# be used and the required lib depends installed. +# +# Linux: builds using the existing libbluray make system +# +# Usage: +# make +# sudo make install +# make install_xbmc + +# get OS type from shell +OSTYPE = $(shell uname) + +ifeq ($(OSTYPE),Darwin) + prefix=/opt/local + CFLAGS=-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I /opt/local/include + LDFLAGS=-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/opt/local/lib + CPPFLAGS=-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I /opt/local/include +endif + +LIBBLURAY = libbluray/src/.libs/libbluray.dylib + +all:: $(LIBBLURAY) + +$(LIBBLURAY): libbluray/configure + make -C libbluray + +libbluray/configure: + if [ ! -d libbluray ]; then git clone git://git.videolan.org/libbluray.git; fi + cd libbluray; ./bootstrap +ifeq ($(OSTYPE),Darwin) + cd libbluray; ./configure --prefix=$(prefix) --exec-prefix=$(prefix) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" +else + cd libbluray; ./configure +endif + +ifeq ($(OSTYPE),Darwin) +install_xbmc: $(LIBBLURAY) + cp $(LIBBLURAY) ../../system/ +endif + +install: + make -C libbluray install + +clean: + make -C libbluray clean + +distclean:: + rm -rf libbluray |