Makefile revision 1405
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# CDDL HEADER START
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# The contents of this file are subject to the terms of the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Common Development and Distribution License (the "License").
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# You may not use this file except in compliance with the License.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# or http://www.opensolaris.org/os/licensing.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# See the License for the specific language governing permissions
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# and limitations under the License.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder# If applicable, add the following below this CDDL HEADER, with the
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
ebde431fb3ce536c8bc397fcfc610ac6f92e3be4Christian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
760ae19a92dde8249679a674f93f58d26a7c5f6bChristian Maeder# CDDL HEADER END
88c800932dd7053322501ea2039d9f234be6866cKlaus Luettich# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder# I want to override PERL_VERSION and PERL_ARCH because when building
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder# a new version of perl it probably isn't installed so shared-macros.mk
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder# can't call it.
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian MaederCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder sha256:c920fa01a34b7752e8cbbc99c6921b908df60611d84a29c4377e4a798604767e
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederCOMPONENT_ARCHIVE_URL= http://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE)
77a65251ee036c6aaf09c2775315a4ee24259fbdJorina Freya Gerken# Override these compiler settings because they are causing problems
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# in the ON build of the contrib components.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# ON doesn't use or need these settings or the compiler has some of them
ed9207cf24e96b0d6f59985822054ae28cb69b2eChristian Maeder# on by default.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# This also produces a perl more inline with past perl's. For better
4e7050bcbcf0f372a5bad32ecd0282bccabf0983Klaus Luettich# The extra Configure parameters (cf_email, cf_by, myhostname) and
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder# the gawk and sed that follow are attempting to sanatize the
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder# resulting config.sh of values from our build environment that
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder# are discoverable in perl's config via "perl -V".
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder# I'm assuming our compilers live on a path that contains "SUNWspro".
ce50fe187cdae64e75e510daafb78156280bdb91Christian Maeder# If that changes the sed filter needs to change.
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich# That last bit re-runs bison to regenerate perly.h.
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers -Dsitelib=/usr/perl5/site_perl/$(PERL_VERSION) \
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich -Dvendorlib=/usr/perl5/vendor_perl/$(PERL_VERSION) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -Dcf_email="userland-discuss@opensolaris.org" \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \
e8d782e6e650b71a2b0ee8461fd8d9fa31525591Christian Maeder sed -e 's/[^ ]*SUNWspro[^ ]*//g' > config.sh ) ; \
e6a8a380ddaac0396c5816163bdb8e8113a6c010Christian Maeder ( $(RM) $(@D)/perly.act $(@D)/perly.tab $(@D)/perly.h; \
8659594bb40eb5f3da5439692f0908300947191eSonja GröningCOMPONENT_INSTALL_ENV += DESTDIR="$(PROTO_DIR)"
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder# perl's install path for sparc is based off the value of the
96ef2e46d048c357927f2795a40e9e66f21b85fbSonja Gröning# "arch" command. So we must package that way also.
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers# Put studio compilers in PATH so we can tell Configure and gmake just
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder# use cc. Trying to avoid the full path so it doesn't end up in
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers# perl's config.
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian MaederCOMPONENT_BUILD_ENV += PATH=$(dir $(CC.studio.32)):$(PATH)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder # All tests should pass.