Makefile revision 3477
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or http://www.opensolaris.org/os/licensing.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
506aa7c68b127eefb0197e329af7e9abcc3ebc98Garrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovinclude ../../make-rules/shared-macros.mk
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCOMPONENT_NAME= tar
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCOMPONENT_VERSION= 1.27.1
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCOMPONENT_PROJECT_URL= http://www.gnu.org/software/tar/
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCOMPONENT_ARCHIVE_HASH= \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov sha256:9b0fb3ce8512059337add0da5f8f0f7d7647f2201f5ece24581d620ea60337c6
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/tar/$(COMPONENT_ARCHIVE)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCOMPONENT_BUGDB= utility/gtar
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovTPNO= 16886
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovinclude ../../make-rules/prep.mk
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovinclude ../../make-rules/configure.mk
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovinclude ../../make-rules/ips.mk
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# workaround for CR 6998994
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovsparc_COPTFLAG = -xO2
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Enforce tar binary to standard path
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Use ssh (rather than rsh) for remote commands.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCONFIGURE_ENV += "RSH=/usr/bin/ssh"
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCONFIGURE_OPTIONS += --with-rmt=/usr/sbin/rmt
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCONFIGURE_OPTIONS += --libexecdir=/usr/sbin
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCOMPONENT_BUILD_TARGETS = all
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovASLR_MODE = $(ASLR_ENABLE)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovconfigure: $(CONFIGURE_64)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovbuild: $(BUILD_64)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovinstall: $(INSTALL_64)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovtest: $(TEST_64)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovinclude ../../make-rules/depend.mk
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov