Mercurial > mxe-octave
changeset 344:92708f27f90b
new package: libusb (by Mark Brand)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 21 May 2009 18:39:04 +0200 |
parents | 3cda8778b002 |
children | 24e795bab9dd |
files | doc/README.html src/libusb.mk |
diffstat | 2 files changed, 33 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/README.html Sun May 17 17:37:54 2009 +0200 +++ b/doc/README.html Thu May 21 18:39:04 2009 +0200 @@ -286,6 +286,7 @@ <li>Tony Theodore</li> <li>Giuseppe Scrivano</li> <li>Martin Gerhardy</li> + <li>Mark Brand</li> </ul> <p>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/libusb.mk Thu May 21 18:39:04 2009 +0200 @@ -0,0 +1,32 @@ +# LibUsb + +PKG := libusb +$(PKG)_VERSION := 0.1.12.1 +$(PKG)_CHECKSUM := b13fd5a0042152bc5d5e538533aa93754fa472a7 +$(PKG)_SUBDIR := $(PKG)-win32-src-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-win32-src-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://libusb-win32.sourceforge.net/ +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/libusb-win32/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=78138&package_id=79216' | \ + grep 'libusb-win32-src-' | \ + $(SED) -n 's,.*libusb-win32-src-\([0-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + # applications which use libusb need to be linked with + # -lusb -lusbd -lsetupapi -lntoskrnl + sed 's,\r$$,,' -i '$(1)/Makefile' + echo -e '$$(LIB_TARGET).a: $$(DLL_OBJECTS) $$(DRIVER_OBJECTS)' >> '$(1)/Makefile' + echo -e '\t$$(AR) rc $$@ $$^' >> '$(1)/Makefile' + echo -e '\t$$(host_prefix)ranlib $$@' >> '$(1)/Makefile' + $(MAKE) -C '$(1)' -j '$(JOBS)' host_prefix=$(TARGET) libusbd.a libusb.a + $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' + $(INSTALL) -m664 '$(1)/src/usb.h' '$(PREFIX)/$(TARGET)/include/' + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' + $(INSTALL) -m664 '$(1)/libusb.a' '$(PREFIX)/$(TARGET)/lib/' + $(INSTALL) -m664 '$(1)/libusbd.a' '$(PREFIX)/$(TARGET)/lib/' +endef