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