diff options
author | davilla <davilla@4pi.com> | 2011-10-08 08:23:20 -0400 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2011-10-08 09:22:45 -0400 |
commit | 084768a9e285f9feb0d4d9247bad54c782b2b9e4 (patch) | |
tree | e1b90b3e33d8fe737912467a1f9cb9939a6cfb25 /tools/darwin | |
parent | 0cfb064653834768756f953e3ce2f702d45fd55a (diff) |
[osx] fixed, enable libusb support
Diffstat (limited to 'tools/darwin')
-rw-r--r-- | tools/darwin/depends/Makefile.in | 4 | ||||
-rw-r--r-- | tools/darwin/depends/libusb/Makefile | 36 |
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 |