aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Roberts <croberts@bongle.co.uk>2012-07-04 00:32:20 +0800
committerChris Roberts <croberts@bongle.co.uk>2012-09-10 19:23:38 +0800
commit381b16455997c1f2224dcd0cc20453ad2510f975 (patch)
tree4f314aced8fba4f608798b3c704e3ac111605ead /lib
parentd748cb5bdd9df1a401d32599464c47c3480f7073 (diff)
[tags] Add Makefile and taglib dependency, add taglib to xcode, android, linux and win32 depends
Diffstat (limited to 'lib')
-rw-r--r--lib/taglib/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/taglib/Makefile b/lib/taglib/Makefile
new file mode 100644
index 0000000000..6b524c4a6f
--- /dev/null
+++ b/lib/taglib/Makefile
@@ -0,0 +1,37 @@
+# lib name, version
+LIBNAME=taglib
+VERSION=1.8
+SOURCE=$(LIBNAME)-$(VERSION)
+ARCHIVE=$(LIBNAME)-$(VERSION).tar.gz
+TARBALLS_LOCATION=.
+BASE_URL=http://mirrors.xbmc.org/build-deps/darwin-libs
+RETRIEVE_TOOL=/usr/bin/curl
+RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE)
+ARCHIVE_TOOL=tar
+ARCHIVE_TOOL_FLAGS=zxf
+
+SO_NAME=libtaglib.so
+
+all: $(SO_NAME)
+
+$(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); rm -rf build; mkdir -p build
+ cd $(SOURCE)/build; cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_STATIC=1
+$(SO_NAME): $(SOURCE)
+ make -C $(SOURCE)/build
+
+install:
+ make -C $(SOURCE)/build install
+
+clean:
+ make -C $(SOURCE)/build clean
+ rm -f .installed
+
+distclean::
+ rm -rf $(SOURCE) .installed