jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / libusb-1 / Makefile
blob5f8a19c0b8b389681c96bf4f216383d23a652a8f
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
25 BUILD_BITS= 32_and_64
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME= libusb
29 COMPONENT_VERSION= 1.0.27
30 COMPONENT_SUMMARY= A cross-platform user library to access USB devices
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
33 COMPONENT_ARCHIVE_HASH= sha256:ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575
34 COMPONENT_ARCHIVE_URL= https://github.com/libusb/libusb/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
35 COMPONENT_PROJECT_URL= https://libusb.info/
36 COMPONENT_FMRI= library/libusb-1
37 COMPONENT_CLASSIFICATION= Development/C
38 COMPONENT_LICENSE= LGPL-2.1-only
39 COMPONENT_LICENSE_FILE= COPYING
41 include $(WS_MAKE_RULES)/common.mk
43 CFLAGS += $(XPG6MODE)
45 # Find issues with undefined symbols in build time
46 LD_OPTIONS += $(LD_Z_DEFS)
48 CONFIGURE_OPTIONS += --enable-static=no
49 CONFIGURE_OPTIONS += --enable-log
50 CONFIGURE_OPTIONS += --enable-tests-build
52 COMPONENT_BUILD_ARGS += "LDFLAGS=$(LDFLAGS) -lnvpair"
53 COMPONENT_BUILD_ARGS += "INSTALL=$(INSTALL)"
54 COMPONENT_BUILD_ARGS += "MAKE=$(GMAKE)"
56 # Test target just runs the 'stress' binary; requires Global Zone
57 COMPONENT_TEST_TARGETS=
58 COMPONENT_TEST_ENV_CMD=
59 COMPONENT_TEST_DIR = $(@D)/tests
60 COMPONENT_TEST_CMD= ./stress
62 # Build dependencies
63 REQUIRED_PACKAGES += system/header/header-usb
64 REQUIRED_PACKAGES += system/header/header-ugen
66 # Auto-generated dependencies
67 REQUIRED_PACKAGES += system/library