components/dwarf/Makefile
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Fri, 31 Mar 2017 10:33:39 -0700
changeset 7822 7d852afd19da
permissions -rw-r--r--
25430897 Solaris needs a newer DWARF

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
#
COMPILER=gcc
BUILD_BITS= 64_and_32
include ../../make-rules/shared-macros.mk

COMPONENT_NAME=		dwarf
COMPONENT_VERSION=	20161124
# Convert YYYYMMDD -> YYYY.MM.DD
IPS_COMPONENT_VERSION=	$(shell echo $(COMPONENT_VERSION) | \
				$(GSED) -e 's/\(.\{4\}\)\(.\{2\}\)/0.\1.\2./')
COMPONENT_PROJECT_URL=	https://www.prevanders.net/dwarf.html
COMPONENT_ARCHIVE=	lib$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
COMPONENT_ARCHIVE_URL=	https://www.prevanders.net/$(COMPONENT_ARCHIVE)
COMPONENT_ARCHIVE_HASH=	\
    sha256:bd3d6dc7da0509876fb95b8681f165febd898845dc66714aa58e69b8feca988f
COMPONENT_BUGDB=	library/libdwarf
COMPONENT_ANITYA_ID=	1587

TPNO=			33513

COMPONENT_PREP_ACTION = (cd $(@D); $(AUTORECONF) -if)

# the community doesn't have an install target yet
INSTALL_TARGET=	build

TEST_TARGET= $(NO_TESTS)

include $(WS_MAKE_RULES)/common.mk

COMPONENT_INSTALL_ENV += PATH="$(GNUBIN):$(USRBIN):$(GCC_ROOT)/bin"

CONFIGURE_OPTIONS +=	--enable-shared
CONFIGURE_OPTIONS +=	--disable-nonshared

REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/linker