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