Makefile revision 1773
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# CDDL HEADER START
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Common Development and Distribution License (the "License").
f808c858fa61e7769218966759510a8b1190dfcfraf# You may not use this file except in compliance with the License.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70025d765b044c6d8594bb965a2247a61e991a99johnny# or http://www.opensolaris.org/os/licensing.
70025d765b044c6d8594bb965a2247a61e991a99johnny# See the License for the specific language governing permissions
70025d765b044c6d8594bb965a2247a61e991a99johnny# and limitations under the License.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# When distributing Covered Code, include this CDDL HEADER in each
70025d765b044c6d8594bb965a2247a61e991a99johnny# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
70025d765b044c6d8594bb965a2247a61e991a99johnny# If applicable, add the following below this CDDL HEADER, with the
70025d765b044c6d8594bb965a2247a61e991a99johnny# fields enclosed by brackets "[]" replaced with your own identifying
70025d765b044c6d8594bb965a2247a61e991a99johnny# information: Portions Copyright [yyyy] [name of copyright owner]
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# CDDL HEADER END
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
4466400188e2b3a0fa0e310d049f282862508982Zach Kissel#
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude ../../make-rules/shared-macros.mk
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_NAME= libarchive
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_VERSION= 3.0.4
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_PROJECT_URL= http://github.com/
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_ARCHIVE_HASH= \
70025d765b044c6d8594bb965a2247a61e991a99johnny sha256:76e8d7c7b100ec4071e48c1b7d3f3ea1d22b39db3e45b7189f75b5ff4df90fac
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_ARCHIVE_URL= \
70025d765b044c6d8594bb965a2247a61e991a99johnny $(COMPONENT_PROJECT_URL)downloads/libarchive/libarchive/$(COMPONENT_ARCHIVE)
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_BUGDB= library/libarchive
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude ../../make-rules/prep.mk
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude ../../make-rules/configure.mk
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude ../../make-rules/ips.mk
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny# Userland default includes -mt which links with libthread which we don't need.
70025d765b044c6d8594bb965a2247a61e991a99johnnystudio_MT =
70025d765b044c6d8594bb965a2247a61e991a99johnny
4466400188e2b3a0fa0e310d049f282862508982Zach Kissel# libarchive's Makefile hard-codes some gcc-only flags in COMMON_CFLAGS, then
4466400188e2b3a0fa0e310d049f282862508982Zach Kissel# appends CFLAGS to that. Reset the former here so we can build with Studio.
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_BUILD_ARGS += COMMON_CFLAGS=''
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_TEST_ARGS += COMMON_CFLAGS=''
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_TEST_ARGS += CFLAGS="$(CFLAGS)"
70025d765b044c6d8594bb965a2247a61e991a99johnny
f808c858fa61e7769218966759510a8b1190dfcfraf# We need GNU awk for the following to work; hence the PATH tweak.
f808c858fa61e7769218966759510a8b1190dfcfrafCOMPONENT_PREP_ACTION = \
4466400188e2b3a0fa0e310d049f282862508982Zach Kissel (cd $(@D)/doc/man ; rm *.[135] ; env PATH=/usr/gnu/bin:$$PATH gmake all)
70025d765b044c6d8594bb965a2247a61e991a99johnnyPKG_PROTO_DIRS += $(COMPONENT_SRC)/doc/man
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny# common targets
70025d765b044c6d8594bb965a2247a61e991a99johnnybuild: $(BUILD_32_and_64)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyinstall: $(INSTALL_32_and_64)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnytest: $(TEST_32_and_64)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude ../../make-rules/depend.mk
70025d765b044c6d8594bb965a2247a61e991a99johnny