5644N/A#
5644N/A# CDDL HEADER START
5644N/A#
5644N/A# The contents of this file are subject to the terms of the
5644N/A# Common Development and Distribution License (the "License").
5644N/A# You may not use this file except in compliance with the License.
5644N/A#
5644N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5644N/A# or http://www.opensolaris.org/os/licensing.
5644N/A# See the License for the specific language governing permissions
5644N/A# and limitations under the License.
5644N/A#
5644N/A# When distributing Covered Code, include this CDDL HEADER in each
5644N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5644N/A# If applicable, add the following below this CDDL HEADER, with the
5644N/A# fields enclosed by brackets "[]" replaced with your own identifying
5644N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5644N/A#
5644N/A# CDDL HEADER END
5644N/A
5644N/A#
5644N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5644N/A#
5644N/A
5644N/Ainclude ../../make-rules/shared-macros.mk
5644N/A
5644N/ACOMPILER= gcc
5644N/ACOMPONENT_NAME= libusb
5644N/ACOMPONENT_VERSION= 1.0.20
5644N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5644N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
5644N/ACOMPONENT_ARCHIVE_HASH= sha256:cb057190ba0a961768224e4dc6883104c6f945b2bf2ef90d7da39e7c1834f7ff
5644N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/libusb/files/libusb-1.0/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE)
5644N/ACOMPONENT_PROJECT_URL= http://libusb.info/
5644N/ACOMPONENT_BUGDB= library/libusb
5644N/A
5644N/ATPNO= 26906
5644N/A
5644N/Ainclude $(WS_MAKE_RULES)/prep.mk
5644N/Ainclude $(WS_MAKE_RULES)/configure.mk
5644N/Ainclude $(WS_MAKE_RULES)/ips.mk
5644N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
5644N/A
5644N/ACONFIGURE_ENV += "CFLAGS=$(CFLAGS)"
5644N/A
5644N/ACONFIGURE_OPTIONS += --enable-static=no
5644N/ACONFIGURE_OPTIONS += --enable-log
5644N/A
5644N/ACOMPONENT_BUILD_ARGS+= "LDFLAGS=$(LDFLAGS)"
5644N/ACOMPONENT_BUILD_ARGS+= "INSTALL=$(INSTALL)"
5644N/ACOMPONENT_BUILD_ARGS+= "MAKE=$(GMAKE)"
5644N/A
5644N/ACOMPONENT_BUILD_ARGS+= -C doc docs
5644N/A
5644N/APROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc/libusb-1.0
5644N/A
5644N/ACOMPONENT_PREP_ACTION = (cd $(@D); $(AUTORECONF) -if)
5644N/A
5644N/A# common targets
5644N/Aconfigure: $(CONFIGURE_32_and_64)
5644N/A
5644N/Abuild: $(BUILD_32_and_64)
5644N/A
5644N/Ainstall: $(INSTALL_32_and_64)
5644N/A cd $(BUILD_DIR_64); \
5644N/A $(MKDIR) -p $(PROTOUSRSHAREDOCDIR); \
5644N/A $(CP) -r doc/html $(PROTOUSRSHAREDOCDIR)
5644N/A
5644N/Atest: $(TEST_32_and_64)
5644N/A
5644N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
5644N/A
5644N/AREQUIRED_PACKAGES += system/library