Makefile revision 4037
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson#
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# CDDL HEADER START
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson#
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# The contents of this file are subject to the terms of the
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# Common Development and Distribution License (the "License").
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# You may not use this file except in compliance with the License.
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson#
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# or http://www.opensolaris.org/os/licensing.
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# See the License for the specific language governing permissions
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# and limitations under the License.
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson#
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# When distributing Covered Code, include this CDDL HEADER in each
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# If applicable, add the following below this CDDL HEADER, with the
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# fields enclosed by brackets "[]" replaced with your own identifying
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# information: Portions Copyright [yyyy] [name of copyright owner]
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson#
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# CDDL HEADER END
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson#
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson#
c3a558e7c77127215b010652905be7916ec5a080Sue Gleesoninclude ../../make-rules/shared-macros.mk
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCOMPONENT_NAME= tar
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCOMPONENT_VERSION= 1.27.1
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCOMPONENT_PROJECT_URL= http://www.gnu.org/software/tar/
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCOMPONENT_ARCHIVE_HASH= \
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson sha256:9b0fb3ce8512059337add0da5f8f0f7d7647f2201f5ece24581d620ea60337c6
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/tar/$(COMPONENT_ARCHIVE)
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCOMPONENT_BUGDB= utility/gtar
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonTPNO= 16886
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson
c3a558e7c77127215b010652905be7916ec5a080Sue Gleesoninclude $(WS_MAKE_RULES)/prep.mk
c3a558e7c77127215b010652905be7916ec5a080Sue Gleesoninclude $(WS_MAKE_RULES)/configure.mk
c3a558e7c77127215b010652905be7916ec5a080Sue Gleesoninclude $(WS_MAKE_RULES)/ips.mk
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# workaround for CR 6998994
c3a558e7c77127215b010652905be7916ec5a080Sue Gleesonsparc_COPTFLAG = -xO2
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# Enforce tar binary to standard path
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson# Use ssh (rather than rsh) for remote commands.
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCONFIGURE_ENV += "RSH=/usr/bin/ssh"
c3a558e7c77127215b010652905be7916ec5a080Sue Gleeson
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCONFIGURE_OPTIONS += --with-rmt=/usr/sbin/rmt
c3a558e7c77127215b010652905be7916ec5a080Sue GleesonCONFIGURE_OPTIONS += --libexecdir=/usr/sbin
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
COMPONENT_BUILD_TARGETS = all
ASLR_MODE = $(ASLR_ENABLE)
configure: $(CONFIGURE_64)
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(TEST_64)
REQUIRED_PACKAGES += compress/bzip2
REQUIRED_PACKAGES += compress/gzip
REQUIRED_PACKAGES += network/ssh
REQUIRED_PACKAGES += network/openssh
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library