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