annotate src/libusb.mk @ 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
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 16:59:24 -0400
parents 100e618349f7
children 951da75fd09c
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 :=
2213
8d20e5db2cae update package libusb
Mark Brand <mabrand@mabrand.nl>
parents: 1938
diff changeset
6 $(PKG)_CHECKSUM := 6b90d083e4aee2fa0edbf18dec79d40afe9ded7d
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(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
8 $(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
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)-win32/$(PKG)-win32-releases/$($(PKG)_VERSION)/$($(PKG)_FILE)
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/' | \
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1390
diff changeset
14 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1390
diff changeset
15 head -1
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
363
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
19 # 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
20 $(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
21
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
22 # 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
23 # just create the DLL import stubs
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
24 $(MAKE) -C '$(1)' -j '$(JOBS)' host_prefix=$(TARGET) libusbd.a
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
25 cd '$(1)' && $(TARGET)-dlltool \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
26 --dllname libusb0.dll \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
27 --kill-at \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
28 --add-stdcall-underscore \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
29 --def libusb0.def \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
30 --output-lib libusb.a
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
31
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
32 $(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
33 $(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
34 $(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
35 $(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
36 $(INSTALL) -m644 '$(1)/libusbd.a' '$(HOST_LIBDIR)'
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 endef