Makefile revision 5680
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews# CDDL HEADER START
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews#
eae67738cba5ca069e9d1d4e7b836a2f7b00a374Mark Andrews# The contents of this file are subject to the terms of the
eae67738cba5ca069e9d1d4e7b836a2f7b00a374Mark Andrews# Common Development and Distribution License (the "License").
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews# You may not use this file except in compliance with the License.
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews#
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# If applicable, add the following below this CDDL HEADER, with the
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
b6617c5adad7f12e5fcde1e873f7b982d247fe05Mark AndrewsBUILD_BITS= 64
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninclude ../../make-rules/shared-macros.mk
b6617c5adad7f12e5fcde1e873f7b982d247fe05Mark Andrews
b6617c5adad7f12e5fcde1e873f7b982d247fe05Mark AndrewsCOMPONENT_NAME= pwgen
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_VERSION= 2.06
b6617c5adad7f12e5fcde1e873f7b982d247fe05Mark AndrewsCOMPONENT_PROJECT_URL= http://sourceforge.net/projects/pwgen/
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE_HASH= \
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews sha256:61598c9e3a0f7eb2e7367d4ecc71522c4f16a7d41ed31db29e3afee8d9843454
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/pwgen/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews
c6d4f781529d2f28693546b25b2967d44ec89e60Mark AndrewsTPNO= 9020
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c718d15a9a95054ee3c71540c02335426071fc6dMark AndrewsTEST_TARGET= $(NO_TESTS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude $(WS_MAKE_RULES)/common.mk
c069a20053d41ae299eb9457e50ea44ae9f73ed2Mark Andrews
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews# Fix 64-bit linking via compiler.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLDFLAGS += $(CC_BITS)
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# IPS Package versions contain sequences of non-negative (for now) integers,
3f6174bffe227be44e241a29d186add00c032ff6Mark Andrews# separated by dots. Leading zeroes are not allowed, due to ordering
1eb1e1e838d2ea00b166c918bf50764a95826be8Mark Andrews# ambiguity, so IPS team has to massage "06" into "6" and thus IPS version
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# of pwgen is actually 2.6 and not 2.06. IPS_COMPONENT_VERSION is by default
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews# set to $(COMPONENT_VERSION) but in this case it has to be set specifically
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# to "2.6" to comply with the convention described above.
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews#
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark AndrewsIPS_COMPONENT_VERSION= 2.6
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonHUMAN_VERSION= $(COMPONENT_VERSION)
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews# configure in pwgen is generated by autoconf 2.13, which does not accept the
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# variables like CC, CXX, etc. The solution is to generate a new configure
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews# using modern autoconf available on the build system (version 2.63 in the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# time of creating this makefile).
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_PREP_ACTION= (cd $(@D) ; autoconf)
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# This is to get rid of gcc specific -Wxxx options in pwgen makefile
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_BUILD_ARGS = WALL_OPTS=
62ee2c9f460d2e2e45dcf1abc8b4b4a4a43f5618Mark Andrews
e086341ea57e618a60c9f166b95daee1fab71b3bMark AndrewsREQUIRED_PACKAGES += system/library/security/crypto
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews