components/dwarf/Makefile
changeset 7822 7d852afd19da
equal deleted inserted replaced
7821:314e0c8ed692 7822:7d852afd19da
       
     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) 2017, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 COMPILER=gcc
       
    26 BUILD_BITS= 64_and_32
       
    27 include ../../make-rules/shared-macros.mk
       
    28 
       
    29 COMPONENT_NAME=		dwarf
       
    30 COMPONENT_VERSION=	20161124
       
    31 # Convert YYYYMMDD -> YYYY.MM.DD
       
    32 IPS_COMPONENT_VERSION=	$(shell echo $(COMPONENT_VERSION) | \
       
    33 				$(GSED) -e 's/\(.\{4\}\)\(.\{2\}\)/0.\1.\2./')
       
    34 COMPONENT_PROJECT_URL=	https://www.prevanders.net/dwarf.html
       
    35 COMPONENT_ARCHIVE=	lib$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
       
    36 COMPONENT_ARCHIVE_URL=	https://www.prevanders.net/$(COMPONENT_ARCHIVE)
       
    37 COMPONENT_ARCHIVE_HASH=	\
       
    38     sha256:bd3d6dc7da0509876fb95b8681f165febd898845dc66714aa58e69b8feca988f
       
    39 COMPONENT_BUGDB=	library/libdwarf
       
    40 COMPONENT_ANITYA_ID=	1587
       
    41 
       
    42 TPNO=			33513
       
    43 
       
    44 COMPONENT_PREP_ACTION = (cd $(@D); $(AUTORECONF) -if)
       
    45 
       
    46 # the community doesn't have an install target yet
       
    47 INSTALL_TARGET=	build
       
    48 
       
    49 TEST_TARGET= $(NO_TESTS)
       
    50 
       
    51 include $(WS_MAKE_RULES)/common.mk
       
    52 
       
    53 COMPONENT_INSTALL_ENV += PATH="$(GNUBIN):$(USRBIN):$(GCC_ROOT)/bin"
       
    54 
       
    55 CONFIGURE_OPTIONS +=	--enable-shared
       
    56 CONFIGURE_OPTIONS +=	--disable-nonshared
       
    57 
       
    58 REQUIRED_PACKAGES += library/zlib
       
    59 REQUIRED_PACKAGES += system/library
       
    60 REQUIRED_PACKAGES += system/linker