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