Makefile revision 1119
94N/A#
94N/A# CDDL HEADER START
94N/A#
94N/A# The contents of this file are subject to the terms of the
94N/A# Common Development and Distribution License (the "License").
94N/A# You may not use this file except in compliance with the License.
94N/A#
94N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94N/A# or http://www.opensolaris.org/os/licensing.
94N/A# See the License for the specific language governing permissions
94N/A# and limitations under the License.
94N/A#
94N/A# When distributing Covered Code, include this CDDL HEADER in each
94N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
94N/A# If applicable, add the following below this CDDL HEADER, with the
94N/A# fields enclosed by brackets "[]" replaced with your own identifying
94N/A# information: Portions Copyright [yyyy] [name of copyright owner]
94N/A#
94N/A# CDDL HEADER END
94N/A#
94N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
94N/A#
3817N/Ainclude ../../make-rules/shared-macros.mk
94N/A
94N/ACOMPONENT_NAME= grep
94N/ACOMPONENT_VERSION= 2.10
94N/ACOMPONENT_PROJECT_URL= http://gnu.org/software/grep/
94N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1291N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
1291N/A
618N/A# Note that the 2.10 version of the compressed GNU grep tarball on
94N/A# ftp.gnu.org is only available in .xz format. We cannot use this
94N/A# as xz is not currently part of the Solaris 11 Update CBE. We
844N/A# have recompressed that tarball as a .bz2 file and placed it in the
1291N/A# special Userland cache. The sha256 hash is for the payload .tar file.
94N/ACOMPONENT_ARCHIVE_HASH= \
1258N/A sha256:299d0ccb0238894cc674da3c5a6a6fb82c3d63286f7f127e448e2ff97d21e2fb
94N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/grep/$(COMPONENT_ARCHIVE)
2899N/A
2899N/Ainclude ../../make-rules/prep.mk
3817N/Ainclude ../../make-rules/configure.mk
3817N/Ainclude ../../make-rules/ips.mk
3817N/A
94N/A# We need to be able to return from void functions
94N/ACFLAGS += $(studio_FEATURES_EXTENSIONS)
94N/A
94N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
3993N/ACONFIGURE_OPTIONS += --prefix=/usr
3993N/A
3993N/A# common targets
3993N/Abuild: $(BUILD_32)
4339N/A
94N/Ainstall: $(INSTALL_32)
94N/A
94N/Atest: $(TEST_32)
94N/A
94N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1591N/A
1591N/Ainclude ../../make-rules/depend.mk
2939N/A