6359
|
1 |
#
|
|
2 |
# CDDL HEADER START
|
|
3 |
#
|
|
4 |
# The contents of this file are subject to the terms of the
|
|
5 |
# Common Development and Distribution License (the "License").
|
|
6 |
# You may not use this file except in compliance with the License.
|
|
7 |
#
|
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
9 |
# or http://www.opensolaris.org/os/licensing.
|
|
10 |
# See the License for the specific language governing permissions
|
|
11 |
# and limitations under the License.
|
|
12 |
#
|
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
15 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
18 |
#
|
|
19 |
# CDDL HEADER END
|
|
20 |
#
|
|
21 |
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
|
22 |
#
|
|
23 |
include ../../make-rules/shared-macros.mk
|
|
24 |
|
|
25 |
COMPILER= gcc
|
|
26 |
COMPONENT_NAME= libusb
|
|
27 |
COMPONENT_VERSION= 1.0.20
|
|
28 |
COMPONENT_PROJECT_URL= http://libusb.info/
|
|
29 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
|
|
30 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
|
|
31 |
COMPONENT_ARCHIVE_HASH= \
|
|
32 |
sha256:cb057190ba0a961768224e4dc6883104c6f945b2bf2ef90d7da39e7c1834f7ff
|
|
33 |
COMPONENT_ARCHIVE_URL= \
|
|
34 |
http://sourceforge.net/projects/libusb/files/libusb-1.0/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE)
|
|
35 |
COMPONENT_BUGDB= library/libusb
|
|
36 |
|
|
37 |
TPNO= 26906
|
|
38 |
|
|
39 |
include $(WS_MAKE_RULES)/prep.mk
|
|
40 |
include $(WS_MAKE_RULES)/configure.mk
|
|
41 |
include $(WS_MAKE_RULES)/ips.mk
|
|
42 |
include $(WS_MAKE_RULES)/lint-libraries.mk
|
|
43 |
|
|
44 |
CONFIGURE_ENV += "CFLAGS=$(CFLAGS)"
|
|
45 |
|
|
46 |
CONFIGURE_OPTIONS += --enable-static=no
|
|
47 |
CONFIGURE_OPTIONS += --enable-log
|
|
48 |
|
|
49 |
COMPONENT_BUILD_ARGS += "LDFLAGS=$(LDFLAGS)"
|
|
50 |
COMPONENT_BUILD_ARGS += "INSTALL=$(INSTALL)"
|
|
51 |
COMPONENT_BUILD_ARGS += "MAKE=$(GMAKE)"
|
|
52 |
COMPONENT_BUILD_ARGS += -C doc docs
|
|
53 |
|
|
54 |
ASLR_MODE = $(ASLR_ENABLE)
|
|
55 |
|
|
56 |
PROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc/libusb-1.0
|
|
57 |
|
|
58 |
COMPONENT_PREP_ACTION = (cd $(@D); $(AUTORECONF) -if)
|
|
59 |
|
|
60 |
configure: $(CONFIGURE_32_and_64)
|
|
61 |
|
|
62 |
build: $(BUILD_32_and_64)
|
|
63 |
|
|
64 |
install: $(INSTALL_32_and_64)
|
|
65 |
cd $(BUILD_DIR_64); \
|
|
66 |
$(MKDIR) -p $(PROTOUSRSHAREDOCDIR); \
|
|
67 |
$(CP) -r doc/html $(PROTOUSRSHAREDOCDIR)
|
|
68 |
|
|
69 |
test: $(TEST_32_and_64)
|
|
70 |
|
|
71 |
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
|
|
72 |
|
|
73 |
REQUIRED_PACKAGES += system/library
|