aboutsummaryrefslogtreecommitdiff
path: root/tools/osx
diff options
context:
space:
mode:
authorS. Davilla <davilla@4pi.com>2011-05-17 23:34:58 -0400
committerS. Davilla <davilla@4pi.com>2011-05-17 23:35:30 -0400
commit56ac2a40cc3d721d428f026bfe11173b27596fe3 (patch)
treed0966c575ffbb8029b7e2c8cc4646bb50228e9b6 /tools/osx
parentece940ca1c2fa3617949dd50a6133b4db368da5f (diff)
[osx/ios] add libyajl in prep for remove_jsoncpp
Diffstat (limited to 'tools/osx')
-rw-r--r--tools/osx/ios-depends/Makefile2
-rw-r--r--tools/osx/ios-depends/libyajl/Makefile53
-rw-r--r--tools/osx/osx-depends/Makefile2
-rw-r--r--tools/osx/osx-depends/libyajl/Makefile53
4 files changed, 108 insertions, 2 deletions
diff --git a/tools/osx/ios-depends/Makefile b/tools/osx/ios-depends/Makefile
index f981a52a69..4fe33dbd2c 100644
--- a/tools/osx/ios-depends/Makefile
+++ b/tools/osx/ios-depends/Makefile
@@ -9,7 +9,7 @@ SUBDIRS = \
jpeg tiff libpng libogg \
libvorbis libflac libmad fribidi libwavpack libmpeg2 \
libass libcdio libsamplerate librtmp \
- libmicrohttpd libmodplug libbluray \
+ libmicrohttpd libmodplug libbluray libyajl \
samba python26 mysqlclient boost
.PHONY: setup $(SUBDIRS)
diff --git a/tools/osx/ios-depends/libyajl/Makefile b/tools/osx/ios-depends/libyajl/Makefile
new file mode 100644
index 0000000000..6928f460d5
--- /dev/null
+++ b/tools/osx/ios-depends/libyajl/Makefile
@@ -0,0 +1,53 @@
+# A quick and dirty Makefile to download/build and install
+#
+# Usage:
+# make
+# sudo make install
+
+include ../config.mk
+
+# lib name, version
+LIBNAME=lloyd-yajl
+VERSION=1.0.12
+SOURCE=lloyd-yajl-17b1790
+ARCHIVE=lloyd-yajl-1.0.12-0-g17b1790.tar.gz
+# download location and format
+BASE_URL=http://mirrors.xbmc.org/build-deps/darwin-libs
+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
+CONFIGURE=./configure --prefix=$(PREFIX)
+
+LIBDYLIB=$(SOURCE)/build/yajl-1.0.12/lib/libyajl.dylib
+
+all: $(LIBDYLIB) .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
+ sed -ie "s|ADD_CUSTOM_TARGET|#ADD_CUSTOM_TARGET|g" "$(SOURCE)/CMakeLists.txt"
+ sed -ie "s|./run_tests.sh|#./run_tests.sh|g" "$(SOURCE)/CMakeLists.txt"
+ sed -ie "s|WORKING_DIRECTORY|#WORKING_DIRECTORY|g" "$(SOURCE)/CMakeLists.txt"
+ cd $(SOURCE); $(CONFIGURE)
+
+$(LIBDYLIB): $(SOURCE)
+ make -C $(SOURCE)
+
+.installed:
+ make -C $(SOURCE) install
+ touch $@
+
+clean:
+ make -C $(SOURCE) clean
+ rm -f .installed
+
+distclean::
+ rm -rf $(SOURCE) .installed
diff --git a/tools/osx/osx-depends/Makefile b/tools/osx/osx-depends/Makefile
index c441640dbf..e9c2517be5 100644
--- a/tools/osx/osx-depends/Makefile
+++ b/tools/osx/osx-depends/Makefile
@@ -9,7 +9,7 @@ SUBDIRS = \
libvorbis libflac libmad fribidi libwavpack libmpeg2 \
faad2 libass libcdio libsamplerate librtmp libcrystalhd \
libGLEW libsdl libsdl_mixer libsdl_image \
- libmicrohttpd libmodplug libbluray \
+ libmicrohttpd libmodplug libbluray libyajl \
samba python26 mysqlclient boost \
.PHONY: setup $(SUBDIRS)
diff --git a/tools/osx/osx-depends/libyajl/Makefile b/tools/osx/osx-depends/libyajl/Makefile
new file mode 100644
index 0000000000..6928f460d5
--- /dev/null
+++ b/tools/osx/osx-depends/libyajl/Makefile
@@ -0,0 +1,53 @@
+# A quick and dirty Makefile to download/build and install
+#
+# Usage:
+# make
+# sudo make install
+
+include ../config.mk
+
+# lib name, version
+LIBNAME=lloyd-yajl
+VERSION=1.0.12
+SOURCE=lloyd-yajl-17b1790
+ARCHIVE=lloyd-yajl-1.0.12-0-g17b1790.tar.gz
+# download location and format
+BASE_URL=http://mirrors.xbmc.org/build-deps/darwin-libs
+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
+CONFIGURE=./configure --prefix=$(PREFIX)
+
+LIBDYLIB=$(SOURCE)/build/yajl-1.0.12/lib/libyajl.dylib
+
+all: $(LIBDYLIB) .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
+ sed -ie "s|ADD_CUSTOM_TARGET|#ADD_CUSTOM_TARGET|g" "$(SOURCE)/CMakeLists.txt"
+ sed -ie "s|./run_tests.sh|#./run_tests.sh|g" "$(SOURCE)/CMakeLists.txt"
+ sed -ie "s|WORKING_DIRECTORY|#WORKING_DIRECTORY|g" "$(SOURCE)/CMakeLists.txt"
+ cd $(SOURCE); $(CONFIGURE)
+
+$(LIBDYLIB): $(SOURCE)
+ make -C $(SOURCE)
+
+.installed:
+ make -C $(SOURCE) install
+ touch $@
+
+clean:
+ make -C $(SOURCE) clean
+ rm -f .installed
+
+distclean::
+ rm -rf $(SOURCE) .installed