diff options
author | gimli <gimli@gimlis-MacBook-Pro.local> | 2011-05-24 16:40:05 +0200 |
---|---|---|
committer | gimli <gimli@gimlis-MacBook-Pro.local> | 2011-05-24 16:40:05 +0200 |
commit | f631d88ada8983b289a7257f5bd81b4a6ea44e76 (patch) | |
tree | af8685434cc7088e2141ec514439c83d87f26bf2 /tools | |
parent | dff8a705de7d9c2af24a3ada6ef0d1aa7b8cbecc (diff) |
[ios/atv2] Needs also cmake. ( libyajl ).
Diffstat (limited to 'tools')
-rw-r--r-- | tools/osx/ios-depends/Makefile | 2 | ||||
-rw-r--r-- | tools/osx/ios-depends/cmake/Makefile | 52 |
2 files changed, 53 insertions, 1 deletions
diff --git a/tools/osx/ios-depends/Makefile b/tools/osx/ios-depends/Makefile index 4fe33dbd2c..a384f29012 100644 --- a/tools/osx/ios-depends/Makefile +++ b/tools/osx/ios-depends/Makefile @@ -2,7 +2,7 @@ BUILDDIR=/Users/Shared/xbmc-depends/ios-4.2_arm7 SUBDIRS = \ Backrow \ - gas-preprocessor help2man autoconf automake pkg-config tar dpkg \ + gas-preprocessor help2man autoconf automake pkg-config tar dpkg cmake \ pcre expat gettext readline sqlite3 \ liblzo2 freetype2 fontconfig \ openssl libssh2 curl \ diff --git a/tools/osx/ios-depends/cmake/Makefile b/tools/osx/ios-depends/cmake/Makefile new file mode 100644 index 0000000000..18a6be85b0 --- /dev/null +++ b/tools/osx/ios-depends/cmake/Makefile @@ -0,0 +1,52 @@ +# A quick and dirty Makefile to download/build and install +# +# Usage: +# make +# sudo make install + +# lib name, version +APPNAME=cmake +VERSION=2.8.4 +SOURCE=$(APPNAME)-$(VERSION) +# download location and format +BASE_URL=http://mirrors.xbmc.org/build-deps/darwin-libs +ARCHIVE=$(SOURCE).tar.gz +TARBALLS_LOCATION=/Users/Shared/xbmc-depends/tarballs +RETRIEVE_TOOL=/usr/bin/curl +RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE) +ARCHIVE_TOOL=tar +ARCHIVE_TOOL_FLAGS=xf + +# configuration settings +PREFIX:=/Users/Shared/xbmc-depends/ios-4.2_arm7 +export PATH:=$(PREFIX)/bin:$(PATH) +CONFIGURE=./bootstrap --prefix=$(PREFIX) --host=$(HOST) + +APP=$(SOURCE)/$(APPNAME) + +CLEAN_FILES=$(ARCHIVE) $(SOURCE) + +all: $(APP) .installed + +$(TARBALLS_LOCATION)/$(ARCHIVE): + $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE) + +$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE) + -rm -rf $(SOURCE) + $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) + echo $(SOURCE) > .gitignore + cd $(SOURCE); $(CONFIGURE) + +$(APP): $(SOURCE) + make -C $(SOURCE) + +.installed: + make -C $(SOURCE) install + touch $@ + +clean: + make -C $(SOURCE) clean + rm .installed + +distclean:: + rm -rf $(SOURCE) .installed |