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