annotate src/libusb.mk @ 6912:5ab34483a976

* src/libusb.mk: update to v1.2.7.3
author John Donoghue <john.donoghue@ieee.org>
date Thu, 05 Oct 2023 16:07:37 -0400
parents dc3eb553f5e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2213
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
3
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := libusb
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 422
diff changeset
5 $(PKG)_IGNORE :=
6912
5ab34483a976 * src/libusb.mk: update to v1.2.7.3
John Donoghue <john.donoghue@ieee.org>
parents: 4601
diff changeset
6 $(PKG)_VERSION := 1.2.7.3
5ab34483a976 * src/libusb.mk: update to v1.2.7.3
John Donoghue <john.donoghue@ieee.org>
parents: 4601
diff changeset
7 $(PKG)_CHECKSUM := 7e5327f8fbf872b8adf02f2ef42401c8fcfe32e3
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-win32-src-$($(PKG)_VERSION)
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1470
diff changeset
9 $(PKG)_FILE := $(PKG)-win32-src-$($(PKG)_VERSION).zip
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1390
diff changeset
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)-win32/$(PKG)-win32-releases/$($(PKG)_VERSION)/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_DEPS :=
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
14 $(WGET) -q -O- 'http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/' | \
4601
dc3eb553f5e9 update UPDATE rule for sourceforge projects with version directories
John D
parents: 3480
diff changeset
15 $(SED) -n 's,.*tr title="\([0-9][^"]*\)".*,\1,p' | \
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1390
diff changeset
16 head -1
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
363
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
20 # convert DOS line endings
759
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
21 $(SED) -i 's,\r$$,,' '$(1)/Makefile'
363
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
22
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
23 # don't actually build the library (DLL file),
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
24 # just create the DLL import stubs
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
25 $(MAKE) -C '$(1)' -j '$(JOBS)' host_prefix=$(TARGET) libusbd.a
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
26 cd '$(1)' && $(MXE_DLLTOOL) \
363
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
27 --dllname libusb0.dll \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
28 --kill-at \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
29 --add-stdcall-underscore \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
30 --def libusb0.def \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
31 --output-lib libusb.a
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
32
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
33 $(INSTALL) -d '$(HOST_INCDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
34 $(INSTALL) -m644 '$(1)/src/lusb0_usb.h' '$(HOST_INCDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
35 $(INSTALL) -d '$(HOST_LIBDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
36 $(INSTALL) -m644 '$(1)/libusb.a' '$(HOST_LIBDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
37 $(INSTALL) -m644 '$(1)/libusbd.a' '$(HOST_LIBDIR)'
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 endef