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