Skip to content

Commit

Permalink
cleanup of ios-depends and osx-depends Makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
amet committed Mar 11, 2011
1 parent f6de3f9 commit c4db86d
Show file tree
Hide file tree
Showing 84 changed files with 508 additions and 600 deletions.
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/Backrow/Makefile
Expand Up @@ -10,23 +10,22 @@ SOURCE=Backrow
# download location and format
BASE_URL=http://xbmc-for-atv2.googlecode.com/svn/trunk/Backrow


TARBALLS_LOCATION=/Users/Shared/xbmc-depends/tarballs
RETRIEVE_TOOL=/usr/bin/curl
RETRIEVE_TOOL_FLAGS=-Ls --output $(ARCHIVE)
RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)

ARCHIVE=$(SOURCE).tar.gz
ARCHIVE_TOOL=tar
ARCHIVE_TOOL_FLAGS=xf

all: $(SOURCE) .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)

$(SOURCE): $(ARCHIVE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)
echo $(ARCHIVE) > .gitignore
echo $(SOURCE) >> .gitignore
$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore

.installed:
mkdir -p $(PREFIX)/include
Expand Down
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/afpfs-ng/Makefile
Expand Up @@ -13,9 +13,9 @@ SOURCE=$(LIBNAME)-$(VERSION)
# download location and format
BASE_URL=http://downloads.sourceforge.net/sourceforge/afpfs-ng/
ARCHIVE=$(SOURCE).tar.bz2

TARBALLS_LOCATION=/Users/Shared/xbmc-depends/tarballs
RETRIEVE_TOOL=/usr/bin/curl
RETRIEVE_TOOL_FLAGS=-Ls --output $(ARCHIVE)
RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)
ARCHIVE_TOOL=tar
ARCHIVE_TOOL_FLAGS=xf

Expand All @@ -32,14 +32,13 @@ CLEAN_FILES=$(ARCHIVE) $(SOURCE)

all: $(LIBDYLIB) .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
echo $(ARCHIVE) > .gitignore

$(SOURCE): $(ARCHIVE)
$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
-rm -rf $(SOURCE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)
echo $(SOURCE) >> .gitignore
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
cd $(SOURCE); patch -p1 <../01-gcrypt.patch
cd $(SOURCE); autoreconf -vif
cd $(SOURCE); $(CONFIGURE)
Expand Down
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/autoconf/Makefile
Expand Up @@ -11,9 +11,9 @@ SOURCE=$(LIBNAME)-$(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 --output $(ARCHIVE)
RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)
ARCHIVE_TOOL=tar
ARCHIVE_TOOL_FLAGS=xf

Expand All @@ -27,14 +27,13 @@ CLEAN_FILES=$(ARCHIVE) $(SOURCE)

all: $(LIBDYLIB) .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
echo $(ARCHIVE) > .gitignore

$(SOURCE): $(ARCHIVE)
$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
-rm -rf $(SOURCE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)
echo $(SOURCE) >> .gitignore
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
sed -i bak -e "s/'libtoolize'/'glibtoolize'/" $(SOURCE)/bin/autoreconf.in
cd $(SOURCE); $(CONFIGURE)

Expand Down
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/automake/Makefile
Expand Up @@ -12,9 +12,9 @@ SOURCE=$(LIBNAME)-$(VERSION)
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 --output $(ARCHIVE)
RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)
ARCHIVE_TOOL=tar
ARCHIVE_TOOL_FLAGS=xf

Expand All @@ -28,14 +28,13 @@ CLEAN_FILES=$(ARCHIVE) $(SOURCE)

all: $(LIBDYLIB) .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)

$(SOURCE): $(ARCHIVE)
$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
-rm -rf $(SOURCE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)
echo $(ARCHIVE) > .gitignore
echo $(SOURCE) >> .gitignore
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
cd $(SOURCE); $(CONFIGURE)

$(LIBDYLIB): $(SOURCE)
Expand Down
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/boost/Makefile
Expand Up @@ -12,26 +12,25 @@ SOURCE=$(LIBNAME)_$(VERSION)
# download location and format
# git clone git://gitorious.org/boostoniphone/boostoniphone.git
BASE_URL=http://mirrors.xbmc.org/build-deps/darwin-libs

RETRIEVE_TOOL=/usr/bin/curl
RETRIEVE_TOOL_FLAGS=-Ls --output $(ARCHIVE)
ARCHIVE=$(SOURCE).tar.bz2
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

LIBDYLIB=$(SOURCE)/prefix/lib/libboost_system.a

all: $(LIBDYLIB) .compiled .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
echo $(ARCHIVE) > .gitignore

$(LIBDYLIB): $(ARCHIVE)
$(LIBDYLIB): $(TARBALLS_LOCATION)/$(ARCHIVE)

.compiled:
rm -rf src build prefix framework
echo src >> .gitignore
echo src > .gitignore
echo build >> .gitignore
echo prefix >> .gitignore
echo framework >> .gitignore
Expand Down
2 changes: 1 addition & 1 deletion tools/osx/ios-depends/boost/boost.sh
Expand Up @@ -33,7 +33,7 @@
#
# Should perhaps also consider/use instead: -BOOST_SP_USE_PTHREADS

: ${TARBALLDIR:=`pwd`}
: ${TARBALLDIR:=/Users/Shared/xbmc-depends/tarballs}
: ${SRCDIR:=`pwd`/src}
: ${BUILDDIR:=`pwd`/build}
: ${PREFIXDIR:=`pwd`/prefix}
Expand Down
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/curl/Makefile
Expand Up @@ -13,9 +13,9 @@ SOURCE=$(LIBNAME)-$(VERSION)
# download location and format
BASE_URL=http://mirrors.xbmc.org/build-deps/darwin-libs
ARCHIVE=$(SOURCE).tar.bz2

TARBALLS_LOCATION=/Users/Shared/xbmc-depends/tarballs
RETRIEVE_TOOL=/usr/bin/curl
RETRIEVE_TOOL_FLAGS=-Ls --output $(ARCHIVE)
RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)
ARCHIVE_TOOL=tar
ARCHIVE_TOOL_FLAGS=xf

Expand All @@ -31,14 +31,13 @@ CLEAN_FILES=$(ARCHIVE) $(SOURCE)

all: $(LIBDYLIB) .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)

$(SOURCE): $(ARCHIVE)
$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
-rm -rf $(SOURCE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)
echo $(ARCHIVE) > .gitignore
echo $(SOURCE) >> .gitignore
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
cd $(SOURCE); $(CONFIGURE)

$(LIBDYLIB): $(SOURCE)
Expand Down
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/dpkg/Makefile
Expand Up @@ -12,9 +12,9 @@ SOURCE_DEBIAN=$(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 --output $(ARCHIVE)
RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)
ARCHIVE_TOOL=tar
ARCHIVE_TOOL_FLAGS=xf

Expand All @@ -26,14 +26,13 @@ CLEAN_FILES=$(ARCHIVE) $(SOURCE_DEBIAN)

all: $(APPNAME) .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
echo $(ARCHIVE) > .gitignore

$(SOURCE_DEBIAN): $(ARCHIVE)
$(SOURCE_DEBIAN): $(TARBALLS_LOCATION)/$(ARCHIVE)
-rm -rf $(SOURCE_DEBIAN)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)
echo $(SOURCE_DEBIAN) >> .gitignore
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE_DEBIAN) > .gitignore
cd $(SOURCE_DEBIAN); $(CONFIGURE)

$(APPNAME): $(SOURCE_DEBIAN)
Expand Down
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/expat/Makefile
Expand Up @@ -13,9 +13,9 @@ SOURCE=$(LIBNAME)-$(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 --output $(ARCHIVE)
RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)
ARCHIVE_TOOL=tar
ARCHIVE_TOOL_FLAGS=xf

Expand All @@ -31,14 +31,13 @@ CLEAN_FILES=$(ARCHIVE) $(SOURCE)

all: $(LIBDYLIB) .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)

$(SOURCE): $(ARCHIVE)
$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
-rm -rf $(SOURCE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)
echo $(ARCHIVE) > .gitignore
echo $(SOURCE) >> .gitignore
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
cd $(SOURCE); $(CONFIGURE)

$(LIBDYLIB): $(SOURCE)
Expand Down
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/faad2/Makefile
Expand Up @@ -13,9 +13,9 @@ SOURCE=$(LIBNAME)-$(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 --output $(ARCHIVE)
RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)
ARCHIVE_TOOL=tar
ARCHIVE_TOOL_FLAGS=xf

Expand All @@ -31,14 +31,13 @@ CLEAN_FILES=$(ARCHIVE) $(SOURCE)

all: $(LIBDYLIB) .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)

$(SOURCE): $(ARCHIVE)
$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
-rm -rf $(SOURCE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)
echo $(ARCHIVE) > .gitignore
echo $(SOURCE) >> .gitignore
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
cd $(SOURCE); $(CONFIGURE)

$(LIBDYLIB): $(SOURCE)
Expand Down
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/fontconfig/Makefile
Expand Up @@ -13,9 +13,9 @@ SOURCE=$(LIBNAME)-$(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 --output $(ARCHIVE)
RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)
ARCHIVE_TOOL=tar
ARCHIVE_TOOL_FLAGS=xf

Expand All @@ -31,14 +31,13 @@ CLEAN_FILES=$(ARCHIVE) $(SOURCE)

all: $(LIBDYLIB) .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)

$(SOURCE): $(ARCHIVE)
$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
-rm -rf $(SOURCE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)
echo $(ARCHIVE) > .gitignore
echo $(SOURCE) >> .gitignore
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
cd $(SOURCE); patch -p1 < ../01-fontconfig-cross-compile-fix.patch
cd $(SOURCE); autoreconf -vif; automake
cd $(SOURCE); $(CONFIGURE)
Expand Down
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/freetype2/Makefile
Expand Up @@ -13,9 +13,9 @@ SOURCE=$(LIBNAME)-$(VERSION)
# download location and format
BASE_URL=http://mirrors.xbmc.org/build-deps/darwin-libs
ARCHIVE=$(SOURCE).tar.bz2

TARBALLS_LOCATION=/Users/Shared/xbmc-depends/tarballs
RETRIEVE_TOOL=/usr/bin/curl
RETRIEVE_TOOL_FLAGS=-Ls --output $(ARCHIVE)
RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)
ARCHIVE_TOOL=tar
ARCHIVE_TOOL_FLAGS=xf

Expand All @@ -34,14 +34,13 @@ CLEAN_FILES=$(ARCHIVE) $(SOURCE)

all: $(LIBDYLIB) .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)

$(SOURCE): $(ARCHIVE)
$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
-rm -rf $(SOURCE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)
echo $(ARCHIVE) > .gitignore
echo $(SOURCE) >> .gitignore
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
cd $(SOURCE); $(CONFIGURE)

$(LIBDYLIB): $(SOURCE)
Expand Down
13 changes: 6 additions & 7 deletions tools/osx/ios-depends/fribidi/Makefile
Expand Up @@ -13,9 +13,9 @@ SOURCE=$(LIBNAME)-$(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 --output $(ARCHIVE)
RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)
ARCHIVE_TOOL=tar
ARCHIVE_TOOL_FLAGS=xf

Expand All @@ -31,14 +31,13 @@ CLEAN_FILES=$(ARCHIVE) $(SOURCE)

all: $(LIBDYLIB) .installed

$(ARCHIVE):
$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)

$(SOURCE): $(ARCHIVE)
$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
-rm -rf $(SOURCE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)
echo $(ARCHIVE) > .gitignore
echo $(SOURCE) >> .gitignore
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
cd $(SOURCE); $(CONFIGURE)

$(LIBDYLIB): $(SOURCE)
Expand Down

0 comments on commit c4db86d

Please sign in to comment.