Makefile revision 618
e2acdb193a0eff6f6de2b5e365dc710c46f8ee08Automatic Updater#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# CDDL HEADER START
816e576f77e2c46df3e3d97d65822aa8aded7c4bDavid Lawrence#
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#
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#
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]
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson#
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson# CDDL HEADER END
aff4e48c82c1de198a627fe7a57fb6f400d6d3c1Andreas Gustafsson#
aff4e48c82c1de198a627fe7a57fb6f400d6d3c1Andreas Gustafsson# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafssoninclude ../../make-rules/shared-macros.mk
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas GustafssonPATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin
b3651a8e87c12ea0428eeb5cf4b304be5bcd9db0Brian Wellington
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 Gustafsson
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonCOMPONENT_NAME= perl
bfe7da9c6b20573c2da09ad2e7cac0a54c8cd47bMark AndrewsCOMPONENT_VERSION= 5.12.3
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonPERL_VERSION= 5.12
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)
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark Andrews
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark Andrewsinclude ../../make-rules/prep.mk
0e780f132d725c59bae021b6c0bcb34b800a9230Mark Andrewsinclude ../../make-rules/justmake.mk
0e780f132d725c59bae021b6c0bcb34b800a9230Mark Andrewsinclude ../../make-rules/ips.mk
0e780f132d725c59bae021b6c0bcb34b800a9230Mark Andrews
0e780f132d725c59bae021b6c0bcb34b800a9230Mark Andrews#
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
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson# or worse.
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson#
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafssonstudio_XBITS=
72e278abc7c73059de68017eceae7d5138ee98c1Andreas Gustafssonstudio_XREGS=
72e278abc7c73059de68017eceae7d5138ee98c1Andreas Gustafssonstudio_IROPTS=
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafssonstudio_C99MODE=
c5b14e2676e8832de77bf63b8f58890d13a6c1e2Andreas Gustafssonstudio_ALIGN=
d075bd326e34600c036c905eea6c80f565ea951fAndreas Gustafssonstudio_MT=
d075bd326e34600c036c905eea6c80f565ea951fAndreas Gustafsson
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson#
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#
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews
9be408c36882c768c1a3554803d8b4dbf44557e4Mark AndrewsCOMPONENT_PRE_BUILD_ACTION= \
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews (cd $(@D); $(ENV) -i \
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews MAKE=$(GMAKE) \
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews PATH=$(dir $(CC.studio.32)):$(PATH) \
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews $(CONFIG_SHELL) ./Configure \
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews -Dprefix=/usr/perl5/$(PERL_VERSION) \
9be408c36882c768c1a3554803d8b4dbf44557e4Mark Andrews -Dprivlib=/usr/perl5/$(PERL_VERSION)/lib \
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 -Dlibperl=libperl.so \
3f5510b6fd74d8458aa4c8ead297bbfdd70547f0Mark Andrews -Duseshrplib \
3f5510b6fd74d8458aa4c8ead297bbfdd70547f0Mark Andrews -Dusedtrace \
3f5510b6fd74d8458aa4c8ead297bbfdd70547f0Mark Andrews -Duse64bitint \
3f5510b6fd74d8458aa4c8ead297bbfdd70547f0Mark Andrews -Dcc="cc" \
3f5510b6fd74d8458aa4c8ead297bbfdd70547f0Mark Andrews -Doptimize="$(CFLAGS.studio)" \
3f5510b6fd74d8458aa4c8ead297bbfdd70547f0Mark Andrews -Dcf_email="userland-discuss@opensolaris.org" \
3f5510b6fd74d8458aa4c8ead297bbfdd70547f0Mark Andrews -Dcf_by="perl-bugs" \
3f5510b6fd74d8458aa4c8ead297bbfdd70547f0Mark Andrews -Dmyhostname="localhost" \
3f5510b6fd74d8458aa4c8ead297bbfdd70547f0Mark Andrews -O \
3f5510b6fd74d8458aa4c8ead297bbfdd70547f0Mark Andrews -de ) ; \
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson (cd $(@D); \
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson cp config.sh config.sh_orig ; \
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson gawk \
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson !/^myuname=/ {print}' config.sh_orig \
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson | \
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson sed -e 's/[^ ]*SUNWspro[^ ]*//g' > config.sh )
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonCOMPONENT_INSTALL_ENV += DESTDIR="$(PROTO_DIR)"
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson#
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.
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson#
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonPKG_MACROS += PERL_ARCH=$(shell arch)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas GustafssonPKG_MACROS += PERL_VERSION=$(PERL_VERSION)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson#
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.
6af37648dd5e0cb407cbef1fed5255dd874e61efAndreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas GustafssonCOMPONENT_BUILD_ENV += PATH=$(dir $(CC.studio.32)):$(PATH)
2357f291c53de433c39ce844d2f0abc0bccfa9fcAndreas Gustafsson
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafssonbuild: $(BUILD_32)
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafssoninstall: $(INSTALL_32)
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafsson
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafssontest: $(TEST_32)
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafsson #
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafsson # 2 expected failures because of the use of cloney in this build.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson # Without cloney all tests pass.
2357f291c53de433c39ce844d2f0abc0bccfa9fcAndreas Gustafsson #
2357f291c53de433c39ce844d2f0abc0bccfa9fcAndreas Gustafsson # Failed 2 tests out of 1697, 99.88% okay.
2357f291c53de433c39ce844d2f0abc0bccfa9fcAndreas Gustafsson # ../cpan/Archive-Tar/t/02_methods.t
6f6fbed6eb4d755198a452e557eead49f215d54bAndreas Gustafsson # ../lib/File/stat.t
2357f291c53de433c39ce844d2f0abc0bccfa9fcAndreas Gustafsson #
6af37648dd5e0cb407cbef1fed5255dd874e61efAndreas Gustafsson
6af37648dd5e0cb407cbef1fed5255dd874e61efAndreas GustafssonBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
6af37648dd5e0cb407cbef1fed5255dd874e61efAndreas Gustafsson
6af37648dd5e0cb407cbef1fed5255dd874e61efAndreas Gustafssoninclude ../../make-rules/depend.mk
04bdb234571448ed6194e1d4048e6512f2446f1cDavid Lawrence