Makefile revision 970
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# CDDL HEADER START
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# The contents of this file are subject to the terms of the
8495845a800cf09321436aed996188c9a92cd647bnicholes# Common Development and Distribution License (the "License").
8495845a800cf09321436aed996188c9a92cd647bnicholes# You may not use this file except in compliance with the License.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8495845a800cf09321436aed996188c9a92cd647bnicholes# or http://www.opensolaris.org/os/licensing.
8495845a800cf09321436aed996188c9a92cd647bnicholes# See the License for the specific language governing permissions
8495845a800cf09321436aed996188c9a92cd647bnicholes# and limitations under the License.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# When distributing Covered Code, include this CDDL HEADER in each
8495845a800cf09321436aed996188c9a92cd647bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8495845a800cf09321436aed996188c9a92cd647bnicholes# If applicable, add the following below this CDDL HEADER, with the
8495845a800cf09321436aed996188c9a92cd647bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
8495845a800cf09321436aed996188c9a92cd647bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# CDDL HEADER END
8495845a800cf09321436aed996188c9a92cd647bnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
c5ef27ed1cf15c6b6345335c51416d2ea36198bfbnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
c5ef27ed1cf15c6b6345335c51416d2ea36198bfbnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude ../../make-rules/shared-macros.mk
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesCOMPONENT_NAME= pwgen
8495845a800cf09321436aed996188c9a92cd647bnicholesCOMPONENT_VERSION= 2.06
8495845a800cf09321436aed996188c9a92cd647bnicholesCOMPONENT_PROJECT_URL= http://sourceforge.net/projects/pwgen/
8495845a800cf09321436aed996188c9a92cd647bnicholesCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
8495845a800cf09321436aed996188c9a92cd647bnicholesCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
8495845a800cf09321436aed996188c9a92cd647bnicholesCOMPONENT_ARCHIVE_HASH= \
8495845a800cf09321436aed996188c9a92cd647bnicholes sha256:61598c9e3a0f7eb2e7367d4ecc71522c4f16a7d41ed31db29e3afee8d9843454
8495845a800cf09321436aed996188c9a92cd647bnicholesCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/pwgen/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude ../../make-rules/prep.mk
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude ../../make-rules/configure.mk
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude ../../make-rules/ips.mk
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes# IPS Package versions contain sequences of non-negative (for now) integers,
8495845a800cf09321436aed996188c9a92cd647bnicholes# separated by dots. Leading zeroes are not allowed, due to ordering
8495845a800cf09321436aed996188c9a92cd647bnicholes# ambiguity, so IPS team has to massage "06" into "6" and thus IPS version
8495845a800cf09321436aed996188c9a92cd647bnicholes# of pwgen is actually 2.6 and not 2.06. IPS_COMPONENT_VERSION is by default
8495845a800cf09321436aed996188c9a92cd647bnicholes# set to $(COMPONENT_VERSION) but in this case it has to be set specifically
8495845a800cf09321436aed996188c9a92cd647bnicholes# to "2.6" to comply with the convention described above.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesIPS_COMPONENT_VERSION= 2.6
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes# configure in pwgen is generated by autoconf 2.13, which does not accept the
8495845a800cf09321436aed996188c9a92cd647bnicholes# variables like CC, CXX, etc. The solution is to generate a new configure
8495845a800cf09321436aed996188c9a92cd647bnicholes# using modern autoconf available on the build system (version 2.63 in the
8495845a800cf09321436aed996188c9a92cd647bnicholes# time of creating this makefile).
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesCOMPONENT_PREP_ACTION= (cd $(@D) ; autoconf)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesCONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS)"
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes# This is to get rid of gcc specific -Wxxx options in pwgen makefile
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesCOMPONENT_BUILD_ARGS = WALL_OPTS=
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes# common targets
8495845a800cf09321436aed996188c9a92cd647bnicholesbuild: $(BUILD_32)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesinstall: $(INSTALL_32)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholestest: $(NO_TESTS)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude ../../make-rules/depend.mk
8495845a800cf09321436aed996188c9a92cd647bnicholes