annotate src/libusb.mk @ 414:d2a6561bcb6d

add a copyright notice and license to each source file
author Volker Grabsch <vog@notjusthosting.com>
date Fri, 21 Aug 2009 06:58:11 +0200
parents 35d26f6b0855
children c82e9294b774
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
1 # Copyright (C) 2009 Volker Grabsch <vog@notjusthosting.com>
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
2 # Mark Brand
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
3 #
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
4 # Permission is hereby granted, free of charge, to any person obtaining
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
5 # a copy of this software and associated documentation files (the
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
6 # "Software"), to deal in the Software without restriction, including
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
7 # without limitation the rights to use, copy, modify, merge, publish,
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
8 # distribute, sublicense, and/or sell copies of the Software, and to
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
9 # permit persons to whom the Software is furnished to do so, subject
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
10 # to the following conditions:
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
11 #
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
12 # The above copyright notice and this permission notice shall be
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
13 # included in all copies or substantial portions of the Software.
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
14 #
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
18 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
22
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 # LibUsb
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 PKG := libusb
409
35d26f6b0855 update version of packages fontconfig, glib, gtk, libevent, libiconv, libpng, libusb, ogg, pixman, sqlite and vorbis
Volker Grabsch <vog@notjusthosting.com>
parents: 408
diff changeset
25 $(PKG)_VERSION := 0.1.12.2
35d26f6b0855 update version of packages fontconfig, glib, gtk, libevent, libiconv, libpng, libusb, ogg, pixman, sqlite and vorbis
Volker Grabsch <vog@notjusthosting.com>
parents: 408
diff changeset
26 $(PKG)_CHECKSUM := a433ff5cf8dd24f5308491c8500a2143497b4b8f
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(PKG)_SUBDIR := $(PKG)-win32-src-$($(PKG)_VERSION)
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(PKG)_FILE := $(PKG)-win32-src-$($(PKG)_VERSION).tar.gz
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(PKG)_WEBSITE := http://libusb-win32.sourceforge.net/
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/libusb-win32/$($(PKG)_FILE)
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(PKG)_DEPS := gcc
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 define $(PKG)_UPDATE
408
413750a629be improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 368
diff changeset
34 $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/) | \
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 $(SED) -n 's,.*libusb-win32-src-\([0-9][^>]*\)\.tar.*,\1,p' | \
408
413750a629be improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 368
diff changeset
36 tail -1
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 endef
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 define $(PKG)_BUILD
363
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
40 # convert DOS line endings
368
4f0d403054b0 bugfix: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents: 363
diff changeset
41 $(SED) 's,\r$$,,' -i '$(1)/Makefile'
363
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
42
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
43 # 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
44 # just create the DLL import stubs
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
45 $(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
46 cd '$(1)' && $(TARGET)-dlltool \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
47 --dllname libusb0.dll \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
48 --kill-at \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
49 --add-stdcall-underscore \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
50 --def libusb0.def \
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
51 --output-lib libusb.a
630c4769a90d don't use static linking for package libusb
Volker Grabsch <vog@notjusthosting.com>
parents: 344
diff changeset
52
344
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 $(INSTALL) -m664 '$(1)/src/usb.h' '$(PREFIX)/$(TARGET)/include/'
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
55 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
56 $(INSTALL) -m664 '$(1)/libusb.a' '$(PREFIX)/$(TARGET)/lib/'
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
57 $(INSTALL) -m664 '$(1)/libusbd.a' '$(PREFIX)/$(TARGET)/lib/'
92708f27f90b new package: libusb (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
58 endef