Makefile revision 1273
127N/A#
127N/A# CDDL HEADER START
127N/A#
127N/A# The contents of this file are subject to the terms of the
127N/A# Common Development and Distribution License (the "License").
127N/A# You may not use this file except in compliance with the License.
127N/A#
127N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
127N/A# or http://www.opensolaris.org/os/licensing.
127N/A# See the License for the specific language governing permissions
127N/A# and limitations under the License.
127N/A#
127N/A# When distributing Covered Code, include this CDDL HEADER in each
127N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
127N/A# If applicable, add the following below this CDDL HEADER, with the
127N/A# fields enclosed by brackets "[]" replaced with your own identifying
127N/A# information: Portions Copyright [yyyy] [name of copyright owner]
127N/A#
127N/A# CDDL HEADER END
127N/A#
3996N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
127N/A#
127N/Ainclude ../../make-rules/shared-macros.mk
127N/A
127N/ACOMPONENT_NAME= coreutils
127N/ACOMPONENT_VERSION= 8.16
618N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/coreutils/
127N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
127N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:2a458fead15d9336f46bb4304cc3eaa6ed9407b9130e7ee2ec533909881d2067
618N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/gnu-coreutils
127N/A
3661N/Ainclude ../../make-rules/prep.mk
3661N/Ainclude ../../make-rules/configure.mk
3996N/Ainclude ../../make-rules/ips.mk
3996N/A
3996N/ACONFIGURE_PREFIX = /usr/gnu
127N/ACONFIGURE_OPTIONS += --libdir=/usr/lib
127N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
127N/ACONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/gmp
127N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
127N/A
127N/A# common targets
127N/Abuild: $(BUILD_32)
127N/A
127N/Ainstall: $(INSTALL_32)
650N/A
127N/A# Needed for "gmake test" to work successfully.
650N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
127N/A# then all shell options get exported to child invocations of bash,
127N/A# which results in test failures due to nounset and xtrace being
373N/A# set unexpectedly, and errors such as "$1: unbound variable" and
127N/A# diffs failing due to script tracing in output files.
3996N/Aunexport SHELLOPTS
3996N/A
# Get the binaries to test from the component proto area.
COMPONENT_TEST_ENV += PATH=$(PROTOUSRSBINDIR):/usr/bin
test: install $(TEST_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk