Makefile revision 75
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# CDDL HEADER START
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# The contents of this file are subject to the terms of the
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Common Development and Distribution License (the "License").
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# You may not use this file except in compliance with the License.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# or http://www.opensolaris.org/os/licensing.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# See the License for the specific language governing permissions
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# and limitations under the License.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# If applicable, add the following below this CDDL HEADER, with the
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# CDDL HEADER END
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox Userinclude ../../make-rules/shared-macros.mk
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCOMPONENT_NAME= tar
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCOMPONENT_VERSION= 1.25
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCOMPONENT_ARCHIVE_HASH= sha1:0f0c090e51d127cbeffbb9aeeb90db1181d82aed
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/tar/$(COMPONENT_ARCHIVE)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox Userinclude ../../make-rules/prep.mk
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox Userinclude ../../make-rules/configure.mk
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox Userinclude ../../make-rules/ips.mk
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# workaround for CR 6998994
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox Usersparc_COPTFLAG = -xO2
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCONFIGURE_OPTIONS += --with-rmt=/usr/sbin/rmt
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCONFIGURE_OPTIONS += --libexecdir=/usr/sbin
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCONFIGURE_OPTIONS += --program-prefix=g
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserGNUPROGS = tar
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserGNUMAN1 = tar.1
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserSFWPROGS = gtar
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserPROTOGNULINKS = $(GNUPROGS:%=$(PROTOGNUBIN)/%)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User$(PROTOGNULINKS): $(PROTOGNUBIN)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User $(RM) $@ ; $(SYMLINK) ../../bin/g$(@F) $@
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserPROTOGNUMAN1LINKS = $(GNUMAN1:%=$(PROTOGNUSHAREMAN1)/%)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User$(PROTOGNUMAN1LINKS): $(PROTOGNUSHAREMAN1)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User $(RM) $@ ; $(SYMLINK) ../../../../share/man/man1/g$(@F) $@
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox Userinclude ../../make-rules/shared-targets.mk
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCOMPONENT_BUILD_TARGETS = all
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox Userbuild: $(BUILD_32)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox Userinstall: $(PROTOUSRSHAREMAN1DIR) $(INSTALL_32) \
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User $(PROTOGNULINKS) $(PROTOGNUMAN1LINKS) $(PROTOSFWLINKS)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User $(CP) -f $(COMPONENT_DIR)/gtar.1.sunman $(PROTOUSRSHAREMAN1DIR)/gtar.1
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox Userinclude ../../make-rules/depend.mk
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User