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