1923N/A#
1923N/A# CDDL HEADER START
1923N/A#
1923N/A# The contents of this file are subject to the terms of the
1923N/A# Common Development and Distribution License (the "License").
1923N/A# You may not use this file except in compliance with the License.
1923N/A#
1923N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1923N/A# or http://www.opensolaris.org/os/licensing.
1923N/A# See the License for the specific language governing permissions
1923N/A# and limitations under the License.
1923N/A#
1923N/A# When distributing Covered Code, include this CDDL HEADER in each
1923N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1923N/A# If applicable, add the following below this CDDL HEADER, with the
1923N/A# fields enclosed by brackets "[]" replaced with your own identifying
1923N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1923N/A#
1923N/A# CDDL HEADER END
1923N/A#
1923N/A
1923N/A#
3996N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
1923N/A#
1923N/A
1923N/Ainclude ../../make-rules/shared-macros.mk
1923N/A
1923N/ACOMPONENT_NAME= sg3_utils
1923N/ACOMPONENT_VERSION= 1.33
1923N/ACOMPONENT_PROJECT_URL= http://sg.danny.cz/sg/sg3_utils.html
1923N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1923N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
1923N/ACOMPONENT_ARCHIVE_HASH= \
1923N/A sha256:3034a4e798404cc963fc46437b0ceeb0edc635e02471ab13aa18acd8b716a27b
1923N/ACOMPONENT_ARCHIVE_URL= http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE)
1923N/ACOMPONENT_BUGDB= utility/sg3utils
1923N/A
3661N/ATPNO= 17711
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
1923N/A
1923N/ACPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
1923N/A
1923N/ACONFIGURE_OPTIONS += --disable-static
1923N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
1923N/A
1923N/A# Don't use rpath!
1923N/ACOMPONENT_POST_CONFIGURE_ACTION = \
1923N/A (cd $(BUILD_DIR_32) ; \
1923N/A $(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \
1923N/A $(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool)
1923N/A
1923N/A# Move the section 8 man pages into section 1m.
1923N/ACOMPONENT_POST_INSTALL_ACTION = \
1923N/A for f in $(PROTOUSRSHAREMANDIR)/man8/*; do \
1923N/A mv $$f $${f%.8}.1m; \
1923N/A done ; \
1923N/A $(MV) $(PROTOUSRSHAREMANDIR)/man8 $(PROTOUSRSHAREMANDIR)/man1m
1923N/A
1923N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
1923N/A
1923N/A# common targets
1923N/Abuild: $(BUILD_32)
1923N/A
1923N/Ainstall: $(INSTALL_32)
1923N/A
1923N/Atest: $(TEST_32)
1923N/A
1923N/A
3996N/AREQUIRED_PACKAGES += system/library