make-rules/install.rb.mk
author Shawn Walker-Salas <shawn.walker@oracle.com>
Wed, 30 Mar 2016 13:33:31 -0700
changeset 5682 94c0ca64c022
parent 5355 5ccf97c2878d
permissions -rw-r--r--
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh 22228656 remove redundant declarations and additions from makefiles 22252545 simplify build rules for components from common upstream 22378457 tclConfig.sh compiler settings are too specific 22727315 httping curses gui missing 22750630 procmail ignores userland cflags and may use private strstr function 22758725 wdiff uses diff from PATH instead of /usr/gnu/bin/diff 22926847 cloog Makefile typo when setting ASLR_MODE 22935090 tk config script has wrong linker flags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1198
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     1
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     3
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     7
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    12
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    18
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5355
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5355
diff changeset
    22
#
5350
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 4252
diff changeset
    23
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1198
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    24
#
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    25
2054
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents: 1482
diff changeset
    26
VENDOR_RUBY = /usr/ruby/$(RUBY_VERSION)/lib/ruby/vendor_ruby/$(RUBY_LIB_VERSION)
1198
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    27
5355
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    28
# install into proto area
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    29
INSTALL_RB_DESTDIR_OPTION = --destdir=$(PROTO_DIR)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    30
# use correct version of Ruby rather than the one calling install.rb
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    31
INSTALL_RB_RUBY_OPTION = --ruby=$(RUBY)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    32
# ensure the bin dir is not a
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    33
# Ruby-version-specific directory
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    34
INSTALL_RB_BINDIR_OPTION = --bindir=$(USRBINDIR)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    35
# install into vendor_ruby instead of site_ruby
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    36
INSTALL_RB_SITELIBDIR_OPTION = --sitelibdir=$(VENDOR_RUBY)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    37
# install into standard man directory
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    38
INSTALL_RB_MANDIR_OPTION = --mandir=$(USRSHAREMANDIR)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    39
# ensure the sbin dir is not a
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    40
# Ruby-version-specific directory
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    41
INSTALL_RB_SBINDIR_OPTION = --sbindir=$(USRSBINDIR)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    42
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    43
INSTALL_RB_OPTIONS += $(INSTALL_RB_DESTDIR_OPTION)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    44
INSTALL_RB_OPTIONS += $(INSTALL_RB_RUBY_OPTION)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    45
INSTALL_RB_OPTIONS += $(INSTALL_RB_BINDIR_OPTION)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    46
INSTALL_RB_OPTIONS += $(INSTALL_RB_SITELIBDIR_OPTION)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    47
INSTALL_RB_OPTIONS += $(INSTALL_RB_MANDIR_OPTION)
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    48
INSTALL_RB_OPTIONS += $(INSTALL_RB_SBINDIR_OPTION)
1198
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    49
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    50
# install.rb scripts do not have any concept of 'build' so make this a
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    51
# no-op
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    52
$(BUILD_DIR)/%/.built:  $(SOURCE_DIR)/.prep
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    53
	$(RM) -r $(@D) ; $(MKDIR) $(@D)
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    54
	$(COMPONENT_PRE_BUILD_ACTION)
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    55
	$(COMPONENT_POST_BUILD_ACTION)
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    56
	$(TOUCH) [email protected]
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    57
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    58
# install the source into the proto directory
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    59
$(BUILD_DIR)/%/.installed:      $(BUILD_DIR)/%/.built
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    60
	$(COMPONENT_PRE_INSTALL_ACTION)
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    61
	(cd $(SOURCE_DIR) ; $(ENV) $(COMPONENT_INSTALL_ENV) \
5355
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    62
                ./install.rb $(INSTALL_RB_OPTIONS) )
1198
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    63
	$(COMPONENT_POST_INSTALL_ACTION)
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    64
	$(TOUCH) [email protected]
f9a4100102d8 PSARC/2013/005 Puppet 3.0.1
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    65
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2054
diff changeset
    66
REQUIRED_PACKAGES += runtime/ruby