0N/A#
901N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
553N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
553N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
553N/A
553N/A#
553N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/ABUILD_BITS= 64
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= getopt
0N/ACOMPONENT_VERSION= 1.1.6
0N/ACOMPONENT_PROJECT_URL= http://frodo.looijaard.name/project/getopt/
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe
0N/ACOMPONENT_ARCHIVE_URL= http://frodo.looijaard.name/system/files/software/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_BUGDB= utility/gnu-getopt
0N/A
0N/ATPNO= 21550
0N/A
0N/ABUILD_STYLE= justmake
0N/ASYSTEM_TEST_TARGET= $(SYSTEM_TEST_64)
0N/Ainclude $(WS_MAKE_RULES)/common.mk
0N/A
0N/A# getopt doesn't use configure, override the hard-wired values in the Makefile.
0N/ALDFLAGS += $(CC_BITS)
0N/ACOMPONENT_BUILD_ARGS+= CC="$(CC)"
0N/ACOMPONENT_BUILD_ARGS+= CFLAGS="$(CFLAGS)"
0N/ACOMPONENT_BUILD_ARGS+= LDFLAGS="$(LDFLAGS)"
0N/ACOMPONENT_BUILD_ARGS+= LIBCGETOPT=0
0N/A
0N/ACOMPONENT_INSTALL_ARGS+= prefix="$(USRGNUDIR)"
0N/ACOMPONENT_INSTALL_ARGS+= mandir="$(GNUSHAREMAN)"
0N/ACOMPONENT_INSTALL_ARGS+= CC="$(CC)"
0N/ACOMPONENT_INSTALL_ARGS+= CFLAGS="$(CFLAGS)"
0N/ACOMPONENT_INSTALL_ARGS+= LDFLAGS="$(LDFLAGS)"
0N/A
0N/A# Stupid source tarball distribution contains two .o files.
0N/ACOMPONENT_POST_UNPACK_ACTION= \
0N/A $(RM) $(COMPONENT_SRC)/gnu/*.o
0N/A
0N/ACOMPONENT_TEST_TRANSFORMS += \
0N/A '-e "s|\./getopt|getopt|g" ' \
0N/A '-e "s|/usr/gnu/bin/getopt|getopt|g" ' \
0N/A '-e "s|\./run-tests.*$$|XXX_CC_XXX|g" ' \
0N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
0N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
0N/A '-e "s|^make\[1\].*$$|XXX_CC_XXX|g" ' \
0N/A '-e "/^XXX_CC_XXX$$/d" '
0N/A
0N/ACOMPONENT_TEST_ENV += PATH=$(BUILD_DIR_$(BITS)):$(GNUBIN):$(USRBINDIR)
0N/ACOMPONENT_TEST_TARGETS = test
0N/A
0N/ACOMPONENT_SYSTEM_TEST_ENV += PATH=$(GNUBIN):$(USRBINDIR)
214N/ACOMPONENT_SYSTEM_TEST_CMD = ./run-tests
214N/ACOMPONENT_SYSTEM_TEST_ARGS = $(GNUBIN)/getopt
0N/ACOMPONENT_SYSTEM_TEST_TARGETS =
0N/A