components/sg3_utils/Makefile
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Wed, 19 Oct 2016 09:53:08 -0500
changeset 7133 cabdc0719c92
parent 5682 94c0ca64c022
child 7687 1093e2a9adbd
permissions -rw-r--r--
24920023 llvm/clang packages need dependency changes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
956
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4950
diff changeset
    23
# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
956
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4950
diff changeset
    25
BUILD_BITS= 64_and_32
956
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		sg3_utils
967
92027d7f7d91 PSARC 2012/277 sg3 utilities 1.33
Wenbo Li<Wenbo.Li@Oracle.COM>
parents: 956
diff changeset
    29
COMPONENT_VERSION=	1.33
956
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://sg.danny.cz/sg/sg3_utils.html
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tgz
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH= \
967
92027d7f7d91 PSARC 2012/277 sg3 utilities 1.33
Wenbo Li<Wenbo.Li@Oracle.COM>
parents: 956
diff changeset
    33
    sha256:3034a4e798404cc963fc46437b0ceeb0edc635e02471ab13aa18acd8b716a27b
956
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 967
diff changeset
    35
COMPONENT_BUGDB=	utility/sg3utils
956
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    37
TPNO=			17711
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    38
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4950
diff changeset
    39
# Even though "gmake check" goes to completion, it doesn't really do anything.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4950
diff changeset
    40
TEST_TARGET= $(NO_TESTS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4950
diff changeset
    41
include $(WS_MAKE_RULES)/common.mk
4374
38b0b3ef9b2c 20699298 make sg3_utils 64-bit ready
chunshuang.tian@oracle.com <chunshuang.tian@oracle.com>
parents: 4339
diff changeset
    42
956
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
CPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS +=	--disable-static
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
4374
38b0b3ef9b2c 20699298 make sg3_utils 64-bit ready
chunshuang.tian@oracle.com <chunshuang.tian@oracle.com>
parents: 4339
diff changeset
    47
COMPONENT_INSTALL_ARGS += bindir=$(USRBINDIR)
38b0b3ef9b2c 20699298 make sg3_utils 64-bit ready
chunshuang.tian@oracle.com <chunshuang.tian@oracle.com>
parents: 4339
diff changeset
    48
956
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
# Don't use rpath!
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
COMPONENT_POST_CONFIGURE_ACTION = \
4374
38b0b3ef9b2c 20699298 make sg3_utils 64-bit ready
chunshuang.tian@oracle.com <chunshuang.tian@oracle.com>
parents: 4339
diff changeset
    51
	(cd $(@D) ; \
956
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
	$(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \
8dfd8bd38819 7193528 Move sg3_utils to the Userland consolidation
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
	$(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool)