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