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