Makefile revision 107
6361N/A#
6361N/A# CDDL HEADER START
6361N/A#
6361N/A# The contents of this file are subject to the terms of the
6361N/A# Common Development and Distribution License (the "License").
6361N/A# You may not use this file except in compliance with the License.
6361N/A#
6361N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6361N/A# or http://www.opensolaris.org/os/licensing.
6361N/A# See the License for the specific language governing permissions
6361N/A# and limitations under the License.
6361N/A#
6361N/A# When distributing Covered Code, include this CDDL HEADER in each
6361N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6361N/A# If applicable, add the following below this CDDL HEADER, with the
6361N/A# fields enclosed by brackets "[]" replaced with your own identifying
6361N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6361N/A#
6361N/A# CDDL HEADER END
6361N/A#
6361N/A
6361N/A#
6361N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
6361N/A#
6361N/A
6361N/Ainclude ../../make-rules/shared-macros.mk
6361N/A
6361N/ACOMPONENT_NAME= pwgen
6361N/ACOMPONENT_VERSION= 2.06
6361N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6361N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6361N/ACOMPONENT_ARCHIVE_HASH= sha1:43dc4fbe6c3bdf96ae24b20d44c4a4584df93d8e
6361N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pwgen/files/pwgen/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
6361N/A
6361N/Ainclude ../../make-rules/prep.mk
6361N/Ainclude ../../make-rules/configure.mk
6361N/Ainclude ../../make-rules/ips.mk
6361N/A
6361N/A# IPS Package versions contain sequences of non-negative (for now) integers,
6361N/A# separated by dots. Leading zeroes are not allowed, due to ordering
6361N/A# ambiguity, so IPS team has to massage "06" into "6" and thus IPS version
6361N/A# of pwgen is actually 2.6 and not 2.06. IPS_COMPONENT_VERSION is by default
6361N/A# set to $(COMPONENT_VERSION) but in this case it has to be set specifically
6361N/A# to "2.6" to comply with the convention described above.
6361N/A#
6361N/AIPS_COMPONENT_VERSION= 2.6
6361N/A
6361N/A# configure in pwgen is generated by autoconf 2.13, which does not accept the
6361N/A# variables like CC, CXX, etc. The solution is to generate a new configure
6361N/A# using modern autoconf available on the build system (version 2.63 in the
6361N/A# time of creating this makefile).
6361N/A#
6361N/ACOMPONENT_PREP_ACTION= (cd $(@D) ; autoconf)
6361N/A
6361N/ACONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS)"
6361N/A
6361N/A# This is to get rid of gcc specific -Wxxx options in pwgen makefile
6361N/A#
6361N/ACOMPONENT_BUILD_TARGETS= WALL_OPTS=
6361N/A
6361N/A# common targets
6361N/Abuild: $(BUILD_32)
6361N/A
6361N/Ainstall: $(INSTALL_32)
6361N/A sed -f pwgen.1.oracleman-stability $(COMPONENT_SRC)/pwgen.1 > \
6361N/A $(PROTO_DIR)/$(USRSHAREMAN1DIR)/pwgen.1
6361N/Atest:
6361N/A @echo "no tests available"
6361N/A
6361N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
6361N/A
6361N/Ainclude ../../make-rules/depend.mk
6361N/A