Makefile revision 3996
2058N/A#
2058N/A# CDDL HEADER START
2058N/A#
2058N/A# The contents of this file are subject to the terms of the
2058N/A# Common Development and Distribution License (the "License").
2058N/A# You may not use this file except in compliance with the License.
2058N/A#
2058N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2058N/A# or http://www.opensolaris.org/os/licensing.
2058N/A# See the License for the specific language governing permissions
2058N/A# and limitations under the License.
2058N/A#
2058N/A# When distributing Covered Code, include this CDDL HEADER in each
2058N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2058N/A# If applicable, add the following below this CDDL HEADER, with the
2058N/A# fields enclosed by brackets "[]" replaced with your own identifying
2058N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2058N/A#
2058N/A# CDDL HEADER END
2058N/A#
3996N/A
2058N/A#
2058N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
2058N/A#
2058N/A
2058N/Ainclude ../../make-rules/shared-macros.mk
2058N/A
2058N/ACOMPONENT_NAME= getopt
2058N/ACOMPONENT_VERSION= 1.1.5
2058N/ACOMPONENT_PROJECT_URL= http://software.frodo.looijaard.name/getopt/
2058N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2058N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2058N/ACOMPONENT_ARCHIVE_HASH= \
2058N/A sha256:11893276b94b1629606ab75772143918a5713259950fbf4216288e246f19fbb6
3661N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/$(COMPONENT_ARCHIVE)
3661N/ACOMPONENT_BUGDB= utility/gnu-getopt
3778N/A
3778N/ATPNO= 11356
3778N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/justmake.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
2058N/A
2058N/A# getopt doesn't use configure, override the hard-wired values in the Makefile.
2058N/ACOMPONENT_BUILD_ARGS+= CC="$(SPRO_VROOT)/bin/cc $(CC_BITS)"
2058N/ACOMPONENT_BUILD_ARGS+= CFLAGS="$(CFLAGS)"
2058N/ACOMPONENT_BUILD_ARGS+= LIBCGETOPT=0
2058N/A
2058N/ACOMPONENT_INSTALL_ARGS+= prefix=/usr/gnu
2058N/ACOMPONENT_INSTALL_ARGS+= mandir=/usr/gnu/share/man
2058N/ACOMPONENT_INSTALL_ARGS+= CC="$(SPRO_VROOT)/bin/cc $(CC_BITS)"
2058N/ACOMPONENT_INSTALL_ARGS+= CFLAGS="$(CFLAGS)"
2058N/A
2058N/A# Stupid source tarball distribution contains two .o files.
2058N/ACOMPONENT_POST_UNPACK_ACTION= \
2058N/A $(RM) $(COMPONENT_SRC)/gnu/*.o
3996N/A
3996N/A# common targets
3996N/Abuild: $(BUILD_64)
3996N/A
install: $(INSTALL_64)
test: $(NO_TESTS)
REQUIRED_PACKAGES += system/library