Makefile revision 215
148N/A#
148N/A# CDDL HEADER START
148N/A#
148N/A# The contents of this file are subject to the terms of the
148N/A# Common Development and Distribution License (the "License").
148N/A# You may not use this file except in compliance with the License.
148N/A#
148N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
148N/A# or http://www.opensolaris.org/os/licensing.
148N/A# See the License for the specific language governing permissions
148N/A# and limitations under the License.
148N/A#
148N/A# When distributing Covered Code, include this CDDL HEADER in each
148N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
148N/A# If applicable, add the following below this CDDL HEADER, with the
148N/A# fields enclosed by brackets "[]" replaced with your own identifying
148N/A# information: Portions Copyright [yyyy] [name of copyright owner]
148N/A#
148N/A# CDDL HEADER END
148N/A#
148N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
148N/A#
690N/Ainclude ../../make-rules/shared-macros.mk
148N/A
148N/ACOMPONENT_NAME= perl
148N/ACOMPONENT_VERSION= 5.12.3
148N/APERL_VERSION= 5.12
148N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1239N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
618N/ACOMPONENT_ARCHIVE_HASH= sha1:86d77c6cbc7a60068dc14c88ffd0729324d1174f
148N/ACOMPONENT_ARCHIVE_URL= http://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE)
148N/A
844N/Ainclude ../../make-rules/prep.mk
1239N/Ainclude ../../make-rules/justmake.mk
148N/Ainclude ../../make-rules/ips.mk
1258N/A
148N/A#
1002N/A# Override these compiler settings because they are causing problems
1239N/A# in the ON build of the contrib components.
1002N/A# ON doesn't use or need these settings or the compiler has some of them
1239N/A# on by default.
1002N/A# This also produces a perl more inline with past perl's. For better
1002N/A# or worse.
148N/A#
148N/Astudio_XBITS=
148N/Astudio_XREGS=
181N/Astudio_IROPTS=
148N/Astudio_C99MODE=
148N/Astudio_ALIGN=
148N/Astudio_MT=
148N/A
148N/A#
148N/A# The extra Configure parameters (cf_email, cf_by, myhostname) and
148N/A# the gawk and sed that follow are attempting to sanatize the
148N/A# resulting config.sh of values from our build environment that
1239N/A# are discoverable in perl's config via "perl -V".
1239N/A# I'm assuming our compilers live on a path that contains "SUNWspro".
148N/A# If that changes the sed filter needs to change.
148N/A#
148N/A
148N/ACOMPONENT_PRE_BUILD_ACTION= \
690N/A (cd $(@D); $(ENV) -i \
148N/A MAKE=$(GMAKE) \
727N/A PATH=$(dir $(CC.studio.32)):$(PATH) \
727N/A $(CONFIG_SHELL) ./Configure \
822N/A -Dprefix=/usr/perl5/$(PERL_VERSION) \
822N/A -Dprivlib=/usr/perl5/$(PERL_VERSION)/lib \
727N/A -Dsitelib=/usr/perl5/site_perl/$(PERL_VERSION) \
727N/A -Dvendorprefix=/usr/perl5/$(PERL_VERSION) \
727N/A -Dvendorlib=/usr/perl5/vendor_perl/$(PERL_VERSION) \
727N/A -Dlibperl=libperl.so \
822N/A -Duseshrplib \
727N/A -Dusedtrace \
1239N/A -Duse64bitint \
727N/A -Dcc="cc" \
148N/A -Doptimize="$(CFLAGS.studio)" \
148N/A -Dcf_email="perl-bugs@sun.com" \
148N/A -Dcf_by="perl-bugs" \
148N/A -Dmyhostname="localhost" \
560N/A -O \
727N/A -de ) ; \
148N/A (cd $(@D); \
181N/A cp config.sh config.sh_orig ; \
148N/A gawk \
148N/A '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \
148N/A !/^myuname=/ {print}' config.sh_orig \
148N/A | \
sed -e 's/[^ ]*SUNWspro[^ ]*//g' > config.sh )
COMPONENT_INSTALL_ENV += DESTDIR="$(PROTO_DIR)"
#
# perl's install path for sparc is based off the value of the
# "arch" command. So we must package that way also.
#
PKG_MACROS += PERL_ARCH=$(shell arch)
PKG_MACROS += PERL_VERSION=$(PERL_VERSION)
#
# Put studio compilers in PATH so we can tell Configure and gmake just
# use cc. Trying to avoid the full path so it doesn't end up in
# perl's config.
#
COMPONENT_BUILD_ENV += PATH=$(dir $(CC.studio.32)):$(PATH)
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(TEST_32)
#
# 2 expected failures because of the use of cloney in this build.
# Without cloney all tests pass.
#
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk