Makefile revision 919
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# The contents of this file are subject to the terms of the
1124950b35ae05a12e804e670607fe5ba775cb4aTinderbox User# Common Development and Distribution License (the "License").
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# You may not use this file except in compliance with the License.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# or http://www.opensolaris.org/os/licensing.
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# See the License for the specific language governing permissions
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# CDDL HEADER END
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# I want to override PERL_VERSION and PERL_ARCH because when building
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# a new version of perl it probably isn't installed so shared-macros.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# can't call it.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein sha256:c920fa01a34b7752e8cbbc99c6921b908df60611d84a29c4377e4a798604767e
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE_URL= http://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE)
4d42b714be10e6f163d23507e4e3a396a8ac0364Automatic Updater# Override these compiler settings because they are causing problems
0e27506ce3135f9bd49e12564ad0e15256135118Automatic Updater# in the ON build of the contrib components.
5c6b95ba1b2e35f8dd6b0a7f25aacba91fff3aa2Tinderbox User# ON doesn't use or need these settings or the compiler has some of them
1124950b35ae05a12e804e670607fe5ba775cb4aTinderbox User# on by default.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This also produces a perl more inline with past perl's. For better
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# The extra Configure parameters (cf_email, cf_by, myhostname) and
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# the gawk and sed that follow are attempting to sanatize the
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# resulting config.sh of values from our build environment that
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# are discoverable in perl's config via "perl -V".
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# I'm assuming our compilers live on a path that contains "SUNWspro".
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If that changes the sed filter needs to change.
0db6bf459f7afa1f9dc0690a521df19955c89dbfJeremy Reed# That last bit re-runs bison to regenerate perly.h.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein -Dsitelib=/usr/perl5/site_perl/$(PERL_VERSION) \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein -Dvendorlib=/usr/perl5/vendor_perl/$(PERL_VERSION) \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein sed -e 's/[^ ]*SUNWspro[^ ]*//g' > config.sh ) ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ( $(RM) $(@D)/perly.act $(@D)/perly.tab $(@D)/perly.h; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# perl's install path for sparc is based off the value of the
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# "arch" command. So we must package that way also.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Put studio compilers in PATH so we can tell Configure and gmake just
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# use cc. Trying to avoid the full path so it doesn't end up in
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# perl's config.
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark AndrewsCOMPONENT_BUILD_ENV += PATH=$(dir $(CC.studio.32)):$(PATH)
3b9d9ad58b2d85a10960819f5c7a4606b33e9ab2Evan Hunt # 2 expected failures because of the use of cloney in this build.
8012d70ea4906ba739036cc9903cb0ac0fc72e9fJeremy C. Reed # Without cloney all tests pass.
3b9d9ad58b2d85a10960819f5c7a4606b33e9ab2Evan Hunt # Failed 2 tests out of 1697, 99.88% okay.