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