components/sg3_utils/Makefile
branchs11-update
changeset 2723 138732f62341
child 3661 47545fb8aed4
equal deleted inserted replaced
2722:dc566ca73390 2723:138732f62341
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../make-rules/shared-macros.mk
       
    27 
       
    28 COMPONENT_NAME=		sg3_utils
       
    29 COMPONENT_VERSION=	1.33
       
    30 COMPONENT_PROJECT_URL=	http://sg.danny.cz/sg/sg3_utils.html
       
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tgz
       
    33 COMPONENT_ARCHIVE_HASH= \
       
    34     sha256:3034a4e798404cc963fc46437b0ceeb0edc635e02471ab13aa18acd8b716a27b
       
    35 COMPONENT_ARCHIVE_URL=	http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE)
       
    36 COMPONENT_BUGDB=	utility/sg3utils
       
    37 
       
    38 include ../../make-rules/prep.mk
       
    39 include ../../make-rules/configure.mk
       
    40 include ../../make-rules/ips.mk
       
    41 
       
    42 CPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
       
    43 
       
    44 CONFIGURE_OPTIONS +=	--disable-static
       
    45 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
       
    46 
       
    47 # Don't use rpath!
       
    48 COMPONENT_POST_CONFIGURE_ACTION = \
       
    49 	(cd $(BUILD_DIR_32) ; \
       
    50 	$(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \
       
    51 	$(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool)
       
    52 
       
    53 # Move the section 8 man pages into section 1m.
       
    54 COMPONENT_POST_INSTALL_ACTION = \
       
    55 	for f in $(PROTOUSRSHAREMANDIR)/man8/*; do \
       
    56 		mv $$f $${f%.8}.1m; \
       
    57 	done ; \
       
    58 	$(MV) $(PROTOUSRSHAREMANDIR)/man8 $(PROTOUSRSHAREMANDIR)/man1m
       
    59 
       
    60 PKG_PROTO_DIRS +=	$(COMPONENT_DIR)/files
       
    61 
       
    62 # common targets
       
    63 build:          $(BUILD_32)
       
    64 
       
    65 install:        $(INSTALL_32)
       
    66 
       
    67 test:           $(TEST_32)
       
    68 
       
    69 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
       
    70 
       
    71 include ../../make-rules/depend.mk