Makefile revision 618
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# CDDL HEADER START
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# The contents of this file are subject to the terms of the
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews# Common Development and Distribution License (the "License").
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# You may not use this file except in compliance with the License.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# See the License for the specific language governing permissions
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# and limitations under the License.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson# CDDL HEADER END
aff4e48c82c1de198a627fe7a57fb6f400d6d3c1Andreas Gustafsson# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson# I want to override PERL_VERSION and PERL_ARCH because when building
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson# a new version of perl it probably isn't installed so shared-macros.mk
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson# can't call it.
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonCOMPONENT_PROJECT_URL= http://www.perl.org/
c5b14e2676e8832de77bf63b8f58890d13a6c1e2Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:86d77c6cbc7a60068dc14c88ffd0729324d1174f
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark AndrewsCOMPONENT_ARCHIVE_URL= http://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE)
0e780f132d725c59bae021b6c0bcb34b800a9230Mark Andrews# Override these compiler settings because they are causing problems
0e780f132d725c59bae021b6c0bcb34b800a9230Mark Andrews# in the ON build of the contrib components.
0e780f132d725c59bae021b6c0bcb34b800a9230Mark Andrews# ON doesn't use or need these settings or the compiler has some of them
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson# on by default.
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson# This also produces a perl more inline with past perl's. For better
7f800a6b10b0172e36e6fef855f48109717b6a2cAndreas Gustafsson# The extra Configure parameters (cf_email, cf_by, myhostname) and
7f800a6b10b0172e36e6fef855f48109717b6a2cAndreas Gustafsson# the gawk and sed that follow are attempting to sanatize the
b976f9c60a09f4a098852d0653ad5df6842557a7Andreas Gustafsson# resulting config.sh of values from our build environment that
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews# are discoverable in perl's config via "perl -V".
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews# I'm assuming our compilers live on a path that contains "SUNWspro".
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews# If that changes the sed filter needs to change.
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews -Dsitelib=/usr/perl5/site_perl/$(PERL_VERSION) \
a1bb4b0e4f71fb2878050905087d279cfa87b786Andreas Gustafsson -Dvendorprefix=/usr/perl5/$(PERL_VERSION) \
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson -Dvendorlib=/usr/perl5/vendor_perl/$(PERL_VERSION) \
3f5510b6fd74d8458aa4c8ead297bbfdd70547f0Mark Andrews -Dcf_email="userland-discuss@opensolaris.org" \
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson sed -e 's/[^ ]*SUNWspro[^ ]*//g' > config.sh )
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonCOMPONENT_INSTALL_ENV += DESTDIR="$(PROTO_DIR)"
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson# perl's install path for sparc is based off the value of the
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson# "arch" command. So we must package that way also.
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonPKG_MACROS += PERL_VERSION=$(PERL_VERSION)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson# Put studio compilers in PATH so we can tell Configure and gmake just
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson# use cc. Trying to avoid the full path so it doesn't end up in
6af37648dd5e0cb407cbef1fed5255dd874e61efAndreas Gustafsson# perl's config.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas GustafssonCOMPONENT_BUILD_ENV += PATH=$(dir $(CC.studio.32)):$(PATH)
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafsson # 2 expected failures because of the use of cloney in this build.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson # Without cloney all tests pass.
2357f291c53de433c39ce844d2f0abc0bccfa9fcAndreas Gustafsson # Failed 2 tests out of 1697, 99.88% okay.