make-rules/makemaker.mk
author saurabh.vyas@oracle.com
Tue, 21 Mar 2017 20:35:40 -0700
branchs11u3-sru
changeset 7789 d23f3837744d
parent 7711 48f87ff8204e
permissions -rw-r--r--
25657521 OpenStack Cinder NFS driver can not detect capacity info
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     1
#
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     3
#
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     7
#
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    12
#
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    18
#
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    20
#
7711
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    21
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    22
#
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    24
#
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    25
7711
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    26
# makemaker.mk is used to build, install, test perl modules for
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    27
# each version of perl.
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    28
# Packaging these multiple versions is still handled by ips.mk.
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    29
# Look under perl_modules for examples of usage.
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    30
7711
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    31
# Multiple versions of perl processing is achieved by listing targets
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    32
# for each version and adding BUILD_64/INSTALL_64 targets below.
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    33
# Example:
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    34
# $(BUILD_DIR)/$(MACH64)-5.24/.configured: PERL_VERSION=5.24
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    35
# $(BUILD_DIR)/$(MACH64)-5.24/.configured: BITS=64
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    36
# BUILD_64 +=     $(BUILD_DIR)/$(MACH64)-5.24/.built
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    37
# INSTALL_64 +=   $(BUILD_DIR)/$(MACH64)-5.24/.installed
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    38
# TEST_64 +=      $(BUILD_DIR)/$(MACH64)-5.24/.tested
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    39
# TEST_64 +=      $(BUILD_DIR)/$(MACH64)-5.24/.tested-and-compared
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    40
# and so on.
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    41
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    42
COMMON_PERL_ENV += MAKE=$(GMAKE)
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    43
COMMON_PERL_ENV += PATH=$(dir $(CC)):$(SPRO_VROOT)/bin:$(PATH)
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    44
COMMON_PERL_ENV += LANG=""
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    45
COMMON_PERL_ENV += CC="$(CC)"
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    46
COMMON_PERL_ENV += CFLAGS="$(PERL_OPTIMIZE)"
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    47
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    48
# Yes.  Perl is just scripts, for now, but we need architecture
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    49
# directories so that it populates all architecture prototype
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    50
# directories.
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    51
7711
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    52
$(BUILD_DIR)/$(MACH32)-5.8.4/.configured:	PERL_VERSION=5.8.4
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    53
$(BUILD_DIR)/$(MACH32)-5.8.4/.configured:	BITS=32
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    54
$(BUILD_DIR)/$(MACH32)-5.12/.configured:	PERL_VERSION=5.12
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    55
$(BUILD_DIR)/$(MACH32)-5.12/.configured:	BITS=32
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    56
$(BUILD_DIR)/$(MACH32)-5.12-mt/.configured:	PERL_VERSION=5.12-mt
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    57
$(BUILD_DIR)/$(MACH32)-5.12-mt/.configured:	BITS=32
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    58
$(BUILD_DIR)/$(MACH64)-5.22/.configured:	PERL_VERSION=5.22
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    59
$(BUILD_DIR)/$(MACH64)-5.22/.configured:	BITS=64
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    60
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    61
$(BUILD_DIR)/$(MACH32)-5.8.4/.tested:		PERL_VERSION=5.8.4
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    62
$(BUILD_DIR)/$(MACH32)-5.8.4/.tested:		BITS=32
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    63
$(BUILD_DIR)/$(MACH32)-5.12/.tested:		PERL_VERSION=5.12
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    64
$(BUILD_DIR)/$(MACH32)-5.12/.tested:		BITS=32
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    65
$(BUILD_DIR)/$(MACH32)-5.12-mt/.tested:		PERL_VERSION=5.12-mt
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    66
$(BUILD_DIR)/$(MACH32)-5.12-mt/.tested:		BITS=32
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    67
$(BUILD_DIR)/$(MACH64)-5.22/.tested:		PERL_VERSION=5.22
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    68
$(BUILD_DIR)/$(MACH64)-5.22/.tested:		BITS=64
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    69
7711
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    70
# This macro is building this:
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    71
# BUILD_64 = $(BUILD_DIR)/$(MACH64)-5.22/.built
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    72
PERL_BUILD = $(BUILD_DIR)/MACHX-PERLVER/.built
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    73
BUILD_32_and_64_PERL = $(foreach v,$(PERL_VERSIONS),$(shell echo $(PERL_BUILD) | sed -e 's/MACHX/$(PERL.$(v).BITS)/g' -e 's/-PERLVER/-$(v)/g'))
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    74
7711
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    75
# This macro is building this:
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    76
# INSTALL_64 =$(BUILD_DIR)/$(MACH64)-5.22/.installed
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    77
PERL_INSTALL = $(BUILD_DIR)/MACHX-PERLVER/.installed
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    78
INSTALL_32_and_64_PERL = $(foreach v,$(PERL_VERSIONS),$(shell echo $(PERL_INSTALL) | sed -e 's/MACHX/$(PERL.$(v).BITS)/g' -e 's/-PERLVER/-$(v)/g'))
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    79
7711
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    80
# This macro is building this:
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    81
# TEST_64 = $(BUILD_DIR)/$(MACH64)-5.22/.tested
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    82
PERL_TEST = $(BUILD_DIR)/MACHX-PERLVER/.tested
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    83
TEST_32_and_64_PERL = $(foreach v,$(PERL_VERSIONS),$(shell echo $(PERL_TEST) | sed -e 's/MACHX/$(PERL.$(v).BITS)/g' -e 's/-PERLVER/-$(v)/g'))
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    84
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    85
COMPONENT_CONFIGURE_ENV += $(COMMON_PERL_ENV)
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    86
COMPONENT_CONFIGURE_ENV += PERL="$(PERL)"
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    87
$(BUILD_DIR)/%/.configured:	$(SOURCE_DIR)/.prep
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    88
	($(RM) -r $(@D) ; $(MKDIR) $(@D))
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    89
	$(CLONEY) $(SOURCE_DIR) $(@D)
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    90
	$(COMPONENT_PRE_CONFIGURE_ACTION)
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    91
	(cd $(@D) ; $(COMPONENT_CONFIGURE_ENV) $(PERL) $(PERL_FLAGS) \
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    92
				Makefile.PL $(CONFIGURE_OPTIONS))
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    93
	$(COMPONENT_POST_CONFIGURE_ACTION)
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    94
	$(TOUCH) [email protected]
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    95
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    96
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    97
COMPONENT_BUILD_ENV +=	$(COMMON_PERL_ENV)
7711
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
    98
$(BUILD_DIR)/%/.built:	$(BUILD_DIR)/%/.configured
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    99
	$(COMPONENT_PRE_BUILD_ACTION)
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   100
	(cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   101
		$(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS))
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   102
	$(COMPONENT_POST_BUILD_ACTION)
2855
576d5a7857b7 16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 2649
diff changeset
   103
ifeq   ($(strip $(PARFAIT_BUILD)),yes)
576d5a7857b7 16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 2649
diff changeset
   104
	-$(PARFAIT) $(@D)
576d5a7857b7 16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 2649
diff changeset
   105
endif
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   106
	$(TOUCH) [email protected]
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   107
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   108
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   109
COMPONENT_INSTALL_ARGS +=	DESTDIR="$(PROTO_DIR)"
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   110
COMPONENT_INSTALL_TARGETS =	install_vendor
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   111
COMPONENT_INSTALL_ENV +=	$(COMMON_PERL_ENV)
7711
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
   112
$(BUILD_DIR)/%/.installed:	$(BUILD_DIR)/%/.built
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   113
	$(COMPONENT_PRE_INSTALL_ACTION)
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   114
	(cd $(@D) ; $(ENV) $(COMPONENT_INSTALL_ENV) $(GMAKE) \
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   115
			$(COMPONENT_INSTALL_ARGS) $(COMPONENT_INSTALL_TARGETS))
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   116
	$(COMPONENT_POST_INSTALL_ACTION)
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   117
	$(TOUCH) [email protected]
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   118
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   119
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   120
COMPONENT_TEST_TARGETS =	check
7711
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
   121
COMPONENT_TEST_ENV +=		$(COMMON_PERL_ENV)
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
   122
$(BUILD_DIR)/%/.tested:	$(BUILD_DIR)/%/.built
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   123
	$(COMPONENT_PRE_TEST_ACTION)
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   124
	(cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   125
			$(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS))
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   126
	$(COMPONENT_POST_TEST_ACTION)
2855
576d5a7857b7 16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 2649
diff changeset
   127
	$(TOUCH) [email protected]
576d5a7857b7 16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 2649
diff changeset
   128
774
d0cbca26a17c 7035978 parfait support for userland bits
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 260
diff changeset
   129
ifeq   ($(strip $(PARFAIT_BUILD)),yes)
2855
576d5a7857b7 16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 2649
diff changeset
   130
parfait: build
576d5a7857b7 16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 2649
diff changeset
   131
else
576d5a7857b7 16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 2649
diff changeset
   132
parfait:
576d5a7857b7 16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 2649
diff changeset
   133
	$(MAKE) PARFAIT_BUILD=yes parfait
774
d0cbca26a17c 7035978 parfait support for userland bits
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 260
diff changeset
   134
endif
260
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   135
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   136
clean:: 
cc1837bbe69e 7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   137
	$(RM) -r $(BUILD_DIR) $(PROTO_DIR)
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2855
diff changeset
   138
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2855
diff changeset
   139
ifneq ($(findstring 5.12, $(PERL_VERSIONS)),)
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2855
diff changeset
   140
REQUIRED_PACKAGES += runtime/perl-512
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2855
diff changeset
   141
endif
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2855
diff changeset
   142
ifneq ($(findstring 5.12-mt, $(PERL_VERSIONS)),)
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2855
diff changeset
   143
REQUIRED_PACKAGES += runtime/perl-threaded-512
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2855
diff changeset
   144
endif
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2855
diff changeset
   145
ifneq ($(findstring 5.8.4, $(PERL_VERSIONS)),)
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2855
diff changeset
   146
REQUIRED_PACKAGES += runtime/perl-584
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2855
diff changeset
   147
endif
7711
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
   148
ifneq ($(findstring 5.22, $(PERL_VERSIONS)),)
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
   149
REQUIRED_PACKAGES += runtime/perl-522
48f87ff8204e PSARC 2016/024 Add Perl 5.22, Remove Perl 5.20
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3996
diff changeset
   150
endif