Makefile revision 1273
155N/A#
155N/A# CDDL HEADER START
155N/A#
155N/A# The contents of this file are subject to the terms of the
155N/A# Common Development and Distribution License (the "License").
155N/A# You may not use this file except in compliance with the License.
155N/A#
155N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
155N/A# or http://www.opensolaris.org/os/licensing.
155N/A# See the License for the specific language governing permissions
155N/A# and limitations under the License.
155N/A#
155N/A# When distributing Covered Code, include this CDDL HEADER in each
155N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155N/A# If applicable, add the following below this CDDL HEADER, with the
155N/A# fields enclosed by brackets "[]" replaced with your own identifying
155N/A# information: Portions Copyright [yyyy] [name of copyright owner]
155N/A#
155N/A# CDDL HEADER END
155N/A#
741N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
155N/A#
155N/Ainclude ../../make-rules/shared-macros.mk
155N/A
485N/APATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin
485N/A
277N/A# I want to override PERL_VERSION and PERL_ARCH because when building
277N/A# a new version of perl it probably isn't installed so shared-macros.mk
277N/A# can't call it.
277N/A
155N/ACOMPONENT_NAME= perl
741N/ACOMPONENT_VERSION= 5.12.4
155N/APERL_VERSION= 5.12
618N/ACOMPONENT_PROJECT_URL= http://www.perl.org/
155N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
155N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:c920fa01a34b7752e8cbbc99c6921b908df60611d84a29c4377e4a798604767e
155N/ACOMPONENT_ARCHIVE_URL= http://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/perl
155N/A
155N/Ainclude ../../make-rules/prep.mk
155N/Ainclude ../../make-rules/justmake.mk
155N/Ainclude ../../make-rules/ips.mk
155N/A
155N/A#
215N/A# Override these compiler settings because they are causing problems
215N/A# in the ON build of the contrib components.
215N/A# ON doesn't use or need these settings or the compiler has some of them
215N/A# on by default.
215N/A# This also produces a perl more inline with past perl's. For better
215N/A# or worse.
215N/A#
215N/Astudio_XBITS=
215N/Astudio_XREGS=
215N/Astudio_IROPTS=
215N/Astudio_C99MODE=
215N/Astudio_ALIGN=
215N/Astudio_MT=
215N/A
215N/A#
155N/A# The extra Configure parameters (cf_email, cf_by, myhostname) and
155N/A# the gawk and sed that follow are attempting to sanatize the
155N/A# resulting config.sh of values from our build environment that
155N/A# are discoverable in perl's config via "perl -V".
155N/A# I'm assuming our compilers live on a path that contains "SUNWspro".
155N/A# If that changes the sed filter needs to change.
155N/A#
155N/A
741N/A# That last bit re-runs bison to regenerate perly.h.
741N/A
155N/ACOMPONENT_PRE_BUILD_ACTION= \
155N/A (cd $(@D); $(ENV) -i \
155N/A MAKE=$(GMAKE) \
155N/A PATH=$(dir $(CC.studio.32)):$(PATH) \
156N/A $(CONFIG_SHELL) ./Configure \
156N/A -Dprefix=/usr/perl5/$(PERL_VERSION) \
155N/A -Dprivlib=/usr/perl5/$(PERL_VERSION)/lib \
155N/A -Dsitelib=/usr/perl5/site_perl/$(PERL_VERSION) \
155N/A -Dvendorprefix=/usr/perl5/$(PERL_VERSION) \
155N/A -Dvendorlib=/usr/perl5/vendor_perl/$(PERL_VERSION) \
155N/A -Dlibperl=libperl.so \
155N/A -Duseshrplib \
155N/A -Dusedtrace \
155N/A -Duse64bitint \
155N/A -Dcc="cc" \
155N/A -Doptimize="$(CFLAGS.studio)" \
566N/A -Dcf_email="userland-discuss@opensolaris.org" \
155N/A -Dcf_by="perl-bugs" \
155N/A -Dmyhostname="localhost" \
155N/A -O \
155N/A -de ) ; \
155N/A (cd $(@D); \
155N/A cp config.sh config.sh_orig ; \
155N/A gawk \
155N/A '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \
155N/A !/^myuname=/ {print}' config.sh_orig \
155N/A | \
741N/A sed -e 's/[^ ]*SUNWspro[^ ]*//g' > config.sh ) ; \
741N/A ( $(RM) $(@D)/perly.act $(@D)/perly.tab $(@D)/perly.h; \
741N/A cd $(@D) ; $(GMAKE) regen_perly )
155N/A
155N/ACOMPONENT_INSTALL_ENV += DESTDIR="$(PROTO_DIR)"
155N/A#
155N/A# perl's install path for sparc is based off the value of the
155N/A# "arch" command. So we must package that way also.
155N/A#
155N/APKG_MACROS += PERL_ARCH=$(shell arch)
155N/APKG_MACROS += PERL_VERSION=$(PERL_VERSION)
155N/A#
155N/A# Put studio compilers in PATH so we can tell Configure and gmake just
155N/A# use cc. Trying to avoid the full path so it doesn't end up in
155N/A# perl's config.
155N/A#
155N/ACOMPONENT_BUILD_ENV += PATH=$(dir $(CC.studio.32)):$(PATH)
155N/A
155N/Abuild: $(BUILD_32)
155N/A
155N/Ainstall: $(INSTALL_32)
155N/A
181N/Atest: $(TEST_32)
155N/A #
155N/A # 2 expected failures because of the use of cloney in this build.
155N/A # Without cloney all tests pass.
155N/A #
607N/A # Failed 2 tests out of 1697, 99.88% okay.
607N/A # ../cpan/Archive-Tar/t/02_methods.t
607N/A # ../lib/File/stat.t
607N/A #
181N/A
181N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
155N/A
155N/Ainclude ../../make-rules/depend.mk