Makefile revision 618
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# CDDL HEADER START
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater#
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# The contents of this file are subject to the terms of the
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Common Development and Distribution License (the "License").
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# You may not use this file except in compliance with the License.
75b70a68aefaa17ac4e768d5ed85d2f50d471490Automatic Updater#
2ec4ab21838e218863d052ebfa3e106e04f50820Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrews# or http://www.opensolaris.org/os/licensing.
78cb74fab4665da2e2641ba909c6f59f74cc4193Automatic Updater# See the License for the specific language governing permissions
c89d02f2fb4c06168236d600e86831cff324f763Mark Andrews# and limitations under the License.
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# If applicable, add the following below this CDDL HEADER, with the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater#
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updaterinclude ../../make-rules/shared-macros.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_NAME= pwgen
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_VERSION= 2.06
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_PROJECT_URL= http://sourceforge.net/projects/pwgen/
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE_HASH= sha1:43dc4fbe6c3bdf96ae24b20d44c4a4584df93d8e
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/pwgen/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude ../../make-rules/prep.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude ../../make-rules/configure.mk
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Huntinclude ../../make-rules/ips.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# IPS Package versions contain sequences of non-negative (for now) integers,
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# separated by dots. Leading zeroes are not allowed, due to ordering
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# ambiguity, so IPS team has to massage "06" into "6" and thus IPS version
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# of pwgen is actually 2.6 and not 2.06. IPS_COMPONENT_VERSION is by default
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# set to $(COMPONENT_VERSION) but in this case it has to be set specifically
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# to "2.6" to comply with the convention described above.
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater#
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterIPS_COMPONENT_VERSION= 2.6
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# configure in pwgen is generated by autoconf 2.13, which does not accept the
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# variables like CC, CXX, etc. The solution is to generate a new configure
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# using modern autoconf available on the build system (version 2.63 in the
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# time of creating this makefile).
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCOMPONENT_PREP_ACTION= (cd $(@D) ; autoconf)
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS)"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# This is to get rid of gcc specific -Wxxx options in pwgen makefile
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCOMPONENT_BUILD_ARGS = WALL_OPTS=
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# common targets
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonbuild: $(BUILD_32)
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinstall: $(INSTALL_32)
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updatertest: $(NO_TESTS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updaterinclude ../../make-rules/depend.mk
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater