aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authordavilla <davilla@4pi.com>2011-09-23 21:11:09 -0400
committerdavilla <davilla@4pi.com>2011-09-23 21:12:01 -0400
commit7ebde3d315c6b35d710f056ff96fd0fe99e84af1 (patch)
tree5bfbc1418be9ad433f3506f2114c8f8097db5b5f /tools
parentcbdb5c3fae1d3742faa6fad6676a8f1dc6fdd43c (diff)
[osx/ios] add libshairport, disabled for now
Diffstat (limited to 'tools')
-rw-r--r--tools/darwin/depends/libshairport/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/tools/darwin/depends/libshairport/Makefile b/tools/darwin/depends/libshairport/Makefile
new file mode 100644
index 0000000000..bcbd2052df
--- /dev/null
+++ b/tools/darwin/depends/libshairport/Makefile
@@ -0,0 +1,40 @@
+include ../Makefile.include
+#include ../config.site.mk
+
+# lib name, version
+LIBNAME=libshairport
+VERSION=1.2.0.20310_lib
+SOURCE=$(LIBNAME)-$(VERSION)
+ARCHIVE=$(SOURCE).tar.gz
+
+# configuration settings
+CONFIGURE=./configure --prefix=$(PREFIX)
+
+
+LIBDYLIB=$(SOURCE)/.libs/$(LIBNAME).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
+ cd $(SOURCE); autoreconf -vif
+ cd $(SOURCE); $(CONFIGURE)
+
+$(LIBDYLIB): $(SOURCE)
+ make -j 1 -C $(SOURCE)
+
+.installed:
+ make -C $(SOURCE) install
+ touch $@
+
+clean:
+ rm -rf $(SOURCE) .installed
+
+distclean::
+ rm -rf $(SOURCE) .installed
+