Makefile revision 155
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#
155N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
155N/A#
155N/Ainclude ../../make-rules/shared-macros.mk
155N/A
155N/ACOMPONENT_NAME= perl
155N/ACOMPONENT_VERSION= 5.12.3
155N/APERL_VERSION= 5.12
155N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
155N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
155N/ACOMPONENT_ARCHIVE_HASH= sha1:86d77c6cbc7a60068dc14c88ffd0729324d1174f
155N/ACOMPONENT_ARCHIVE_URL= http://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE)
155N/A
155N/Ainclude ../../make-rules/prep.mk
155N/Ainclude ../../make-rules/justmake.mk
155N/Ainclude ../../make-rules/ips.mk
155N/A
155N/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
155N/ACOMPONENT_PRE_BUILD_ACTION= \
155N/A (cd $(@D); $(ENV) -i \
155N/A MAKE=$(GMAKE) \
155N/A PATH=$(dir $(CC.studio.32)):$(PATH) \
155N/A ./Configure -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)" \
155N/A -Dcf_email="perl-bugs@sun.com" \
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 | \
155N/A sed -e 's/[^ ]*SUNWspro[^ ]*//g' > config.sh )
155N/A
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
155N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
155N/A
155N/Atest: build
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 #
155N/A @cd $(BUILD_DIR_32); $(MAKE) check
155N/A
155N/Ainclude ../../make-rules/depend.mk