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