1063N/A#
1063N/A# CDDL HEADER START
1063N/A#
1063N/A# The contents of this file are subject to the terms of the
1063N/A# Common Development and Distribution License (the "License").
1063N/A# You may not use this file except in compliance with the License.
1063N/A#
1063N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1063N/A# or http://www.opensolaris.org/os/licensing.
1063N/A# See the License for the specific language governing permissions
1063N/A# and limitations under the License.
1063N/A#
1063N/A# When distributing Covered Code, include this CDDL HEADER in each
1063N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1063N/A# If applicable, add the following below this CDDL HEADER, with the
1063N/A# fields enclosed by brackets "[]" replaced with your own identifying
1063N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1063N/A#
1063N/A# CDDL HEADER END
1063N/A#
1063N/A
1063N/A#
5680N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
1063N/A#
5680N/ABUILD_BITS= 64_and_32
1063N/Ainclude ../../make-rules/shared-macros.mk
1063N/A
1063N/ACOMPONENT_NAME= sg3_utils
1079N/ACOMPONENT_VERSION= 1.33
1063N/ACOMPONENT_PROJECT_URL= http://sg.danny.cz/sg/sg3_utils.html
1063N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
1063N/ACOMPONENT_ARCHIVE_HASH= \
1079N/A sha256:3034a4e798404cc963fc46437b0ceeb0edc635e02471ab13aa18acd8b716a27b
1063N/ACOMPONENT_ARCHIVE_URL= http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/sg3utils
1063N/A
2899N/ATPNO= 17711
2899N/A
5680N/A# Even though "gmake check" goes to completion, it doesn't really do anything.
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
4372N/A
1063N/ACPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
1063N/A
1063N/ACONFIGURE_OPTIONS += --disable-static
1063N/A
4372N/ACOMPONENT_INSTALL_ARGS += bindir=$(USRBINDIR)
4372N/A
1063N/A# Don't use rpath!
1063N/ACOMPONENT_POST_CONFIGURE_ACTION = \
4372N/A (cd $(@D) ; \
1063N/A $(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \
1063N/A $(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool)