Mercurial > mxe-octave
annotate src/libusb.mk @ 6234:97c5f8da5036 release
* src/librsb.mk: update to 1.2.0.11
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 27 May 2022 12:24:32 +0200 |
parents | dc3eb553f5e9 |
children | 5ab34483a976 |
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 := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 1.2.6.0 |
2213 | 7 $(PKG)_CHECKSUM := 6b90d083e4aee2fa0edbf18dec79d40afe9ded7d |
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 |