aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin
diff options
context:
space:
mode:
Diffstat (limited to 'tools/darwin')
-rw-r--r--tools/darwin/depends/Makefile.in4
-rw-r--r--tools/darwin/depends/libusb/Makefile36
2 files changed, 38 insertions, 2 deletions
diff --git a/tools/darwin/depends/Makefile.in b/tools/darwin/depends/Makefile.in
index 9109db72c0..7eb630e1f9 100644
--- a/tools/darwin/depends/Makefile.in
+++ b/tools/darwin/depends/Makefile.in
@@ -12,12 +12,12 @@ SUBDIRS := \
libGLEW libsdl libsdl_mixer libsdl_image \
libmicrohttpd libmodplug libbluray libyajl \
libgpg-error libgcrypt afpfs-ng \
- libplist libshairport \
+ libplist libshairport libusb \
samba python26 distribute distutilscross \
mysqlclient boost \
ifeq ($(DARWIN), ios)
- EXCLUDED = libcrystalhd libGLEW libsdl libsdl_mixer libsdl_image
+ EXCLUDED = libusb libcrystalhd libGLEW libsdl libsdl_mixer libsdl_image
else
EXCLUDED = Backrow
endif
diff --git a/tools/darwin/depends/libusb/Makefile b/tools/darwin/depends/libusb/Makefile
new file mode 100644
index 0000000000..294a7aafe4
--- /dev/null
+++ b/tools/darwin/depends/libusb/Makefile
@@ -0,0 +1,36 @@
+include ../Makefile.include
+
+# lib name, version
+LIBNAME=libusb
+VERSION=0.1.12
+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); $(CONFIGURE)
+
+$(LIBDYLIB): $(SOURCE)
+ make -j 1 -C $(SOURCE)
+
+.installed:
+ make -C $(SOURCE) install
+ touch $@
+
+clean:
+ rm -rf $(SOURCE) .installed
+
+distclean::
+ rm -rf $(SOURCE) .installed