Makefile revision 5680
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews# CDDL HEADER START
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.
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
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]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
b6617c5adad7f12e5fcde1e873f7b982d247fe05Mark AndrewsCOMPONENT_PROJECT_URL= http://sourceforge.net/projects/pwgen/
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews sha256:61598c9e3a0f7eb2e7367d4ecc71522c4f16a7d41ed31db29e3afee8d9843454
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/pwgen/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews# Fix 64-bit linking via compiler.
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# 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).
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# This is to get rid of gcc specific -Wxxx options in pwgen makefile