Makefile revision 2369
142N/A#
142N/A# CDDL HEADER START
142N/A#
142N/A# The contents of this file are subject to the terms of the
142N/A# Common Development and Distribution License (the "License").
142N/A# You may not use this file except in compliance with the License.
142N/A#
142N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
142N/A# or http://www.opensolaris.org/os/licensing.
142N/A# See the License for the specific language governing permissions
142N/A# and limitations under the License.
142N/A#
142N/A# When distributing Covered Code, include this CDDL HEADER in each
142N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
142N/A# If applicable, add the following below this CDDL HEADER, with the
142N/A# fields enclosed by brackets "[]" replaced with your own identifying
142N/A# information: Portions Copyright [yyyy] [name of copyright owner]
142N/A#
142N/A# CDDL HEADER END
142N/A#
142N/A# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
142N/A#
142N/Ainclude ../../make-rules/shared-macros.mk
142N/A
142N/ACOMPONENT_NAME= libarchive
142N/ACOMPONENT_VERSION= 3.0.4
142N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
142N/ACOMPONENT_PROJECT_URL= http://github.com/
142N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
142N/ACOMPONENT_ARCHIVE_HASH= \
142N/A sha256:76e8d7c7b100ec4071e48c1b7d3f3ea1d22b39db3e45b7189f75b5ff4df90fac
142N/ACOMPONENT_ARCHIVE_URL= \
142N/A $(COMPONENT_PROJECT_URL)downloads/libarchive/libarchive/$(COMPONENT_ARCHIVE)
142N/ACOMPONENT_BUGDB= library/libarchive
142N/A
142N/Ainclude ../../make-rules/prep.mk
142N/Ainclude ../../make-rules/configure.mk
142N/Ainclude ../../make-rules/ips.mk
142N/A
142N/A# Userland default includes -mt which links with libthread which we don't need.
142N/Astudio_MT =
142N/A
142N/A# libarchive's Makefile hard-codes some gcc-only flags in COMMON_CFLAGS, then
142N/A# appends CFLAGS to that. Reset the former here so we can build with Studio.
142N/ACOMPONENT_BUILD_ARGS += COMMON_CFLAGS=''
142N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
142N/ACOMPONENT_TEST_ARGS += COMMON_CFLAGS=''
142N/ACOMPONENT_TEST_ARGS += CFLAGS="$(CFLAGS)"
142N/A
142N/A# We need GNU awk for the following to work; hence the PATH tweak.
142N/ACOMPONENT_PREP_ACTION = \
142N/A (cd $(@D)/doc/man ; rm *.[135] ; env PATH=/usr/gnu/bin:$$PATH gmake all)
142N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/doc/man
142N/A
142N/A# common targets
142N/Abuild: $(BUILD_32_and_64)
142N/A
142N/Ainstall: $(INSTALL_32_and_64)
142N/A
142N/Atest: $(TEST_32_and_64)
142N/A
142N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
142N/A
142N/Ainclude ../../make-rules/depend.mk
142N/A