components/r/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Mon, 09 Jan 2017 08:54:39 -0800
changeset 7546 93fdabfd72e4
parent 7252 5bca130fe419
child 7687 1093e2a9adbd
permissions -rw-r--r--
25164308 Update R to version 3.3.2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
7546
93fdabfd72e4 25164308 Update R to version 3.3.2
Rich Burridge <rich.burridge@oracle.com>
parents: 7252
diff changeset
    23
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
    25
BUILD_BITS= 64
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		R
7546
93fdabfd72e4 25164308 Update R to version 3.3.2
Rich Burridge <rich.burridge@oracle.com>
parents: 7252
diff changeset
    29
COMPONENT_VERSION=	3.3.2
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.r-project.org/
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
7546
93fdabfd72e4 25164308 Update R to version 3.3.2
Rich Burridge <rich.burridge@oracle.com>
parents: 7252
diff changeset
    32
    sha256:d294ad21e9f574fb4828ebb3a94b8cb34f4f304a41687a994be00dd41a4e514c
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL=	http://cran.mtu.edu/src/base/R-3/$(COMPONENT_ARCHIVE)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_BUGDB=	utility/r
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
7546
93fdabfd72e4 25164308 Update R to version 3.3.2
Rich Burridge <rich.burridge@oracle.com>
parents: 7252
diff changeset
    36
TPNO=			32832
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
6013
1458d0cd0532 23294075 do not publish r when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5853
diff changeset
    38
# Requires newer version of system/linker from ON, available in S12 but not
1458d0cd0532 23294075 do not publish r when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5853
diff changeset
    39
# 11.3, so do not publish.
1458d0cd0532 23294075 do not publish r when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5853
diff changeset
    40
ifeq ($(BUILD_TYPE), evaluation)
1458d0cd0532 23294075 do not publish r when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5853
diff changeset
    41
BUILD_64=
1458d0cd0532 23294075 do not publish r when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5853
diff changeset
    42
INSTALL_64=
1458d0cd0532 23294075 do not publish r when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5853
diff changeset
    43
PUBLISH_STAMP=
1458d0cd0532 23294075 do not publish r when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5853
diff changeset
    44
endif
1458d0cd0532 23294075 do not publish r when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5853
diff changeset
    45
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
    46
# Need to build the tests before using them.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
    47
SYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
    48
include $(WS_MAKE_RULES)/common.mk
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
COMPONENT_PRE_CONFIGURE_ACTION = \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
	($(CLONEY) $(SOURCE_DIR) $(@D))
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
    53
STUDIO_LIBS_PATH =	$(USRLIBDIR)/studio/64
5692
2191b44f19f4 22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages (fix SPARC)
Rich Burridge <rich.burridge@oracle.com>
parents: 5686
diff changeset
    54
# R_LIBS_PATH is used when creating /usr/lib/64/R/etc/Makeconf
2191b44f19f4 22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages (fix SPARC)
Rich Burridge <rich.burridge@oracle.com>
parents: 5686
diff changeset
    55
# Using a resolved pathname here (rather than say $(USRLIBDIR64)/R/lib) so
2191b44f19f4 22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages (fix SPARC)
Rich Burridge <rich.burridge@oracle.com>
parents: 5686
diff changeset
    56
# that the Makeconf-GNU.patch patch used by the COMPONENT_POST_INSTALL_ACTION
2191b44f19f4 22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages (fix SPARC)
Rich Burridge <rich.burridge@oracle.com>
parents: 5686
diff changeset
    57
# will just work on both platforms.
2191b44f19f4 22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages (fix SPARC)
Rich Burridge <rich.burridge@oracle.com>
parents: 5686
diff changeset
    58
R_LIBS_PATH =		/usr/lib/64/R/lib
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
JAVA_LIBS_PATH =	$(JAVA8_HOME)/jre/lib/$(MACH64)/server
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
5853
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    61
LDFLAGS += $(CC_BITS)
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
LDFLAGS += -L$(STUDIO_LIBS_PATH) -R$(STUDIO_LIBS_PATH) \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
		-lsunperf -lfsu -lmtsk -lpicl -lkstat
5853
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    64
LDFLAGS += -L$(R_LIBS_PATH) -R$(R_LIBS_PATH)
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
5853
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    66
# Augment the PATH and set CC/CXX/FC/F77 such that the build environment doesn't
5489
a5031bb8b66d 22807071 The fix for 22712891 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5452
diff changeset
    67
# leak into usr/lib/64/etc/Makeconf and force consumers to have a setup like
a5031bb8b66d 22807071 The fix for 22712891 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5452
diff changeset
    68
# our build environment to build R modules.
5853
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    69
export PATH=$(GCC_ROOT)/bin:$(USRBINDIR):$(GNUBIN)
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    70
CC =		gcc
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    71
CXX =		g++
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    72
FC =            gfortran
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    73
F77 =           gfortran
5674
a5c5f8ac5f4b 23018794 userland should move to parfait 1.8
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5596
diff changeset
    74
ifeq   ($(strip $(PARFAIT_BUILD)),yes)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
    75
export PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
5674
a5c5f8ac5f4b 23018794 userland should move to parfait 1.8
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5596
diff changeset
    76
endif
a5c5f8ac5f4b 23018794 userland should move to parfait 1.8
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5596
diff changeset
    77
5853
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    78
# We can't use $(CC_PIC) here (which provides "-fPIC -DPIC" for the GNU
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    79
# compilers), because we fail at configure time with:
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    80
# configure: error: Building R requires the 'va_copy' system call
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    81
# .../make-rules/configure.mk:170: recipe for target
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    82
# '.../components/r/build/amd64/.configured' failed
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    83
R_PIC =		-fPIC
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
5853
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    85
# These CONFIGURE_ENV lines are here so that /usr/lib/64/R/etc/Makeconf (the
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    86
# configuration file used when building/installing the R CRAN packages),
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    87
# is in exactly the correct format to work properly with the GNU compilers for
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    88
# all the R CRAN packages containing C, C++, Fortran or Java code.
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    89
CONFIGURE_ENV += CC="$(CC) -std=gnu99 $(CC_BITS)"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    90
CONFIGURE_ENV += CXX="$(CXX) $(CC_BITS)"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    91
CONFIGURE_ENV += FC="$(FC) $(CC_BITS)"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    92
CONFIGURE_ENV += F77="$(F77) $(CC_BITS)"
5596
c3e2f9778be5 22911313 R needs -D__MATHERR_RENAME_EXCEPTION for R packages written in C++
Rich Burridge <rich.burridge@oracle.com>
parents: 5489
diff changeset
    93
5853
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    94
CONFIGURE_ENV += C_VISIBILITY="-fvisibility=hidden"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    95
CONFIGURE_ENV += CFLAGS="-g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    96
CONFIGURE_ENV += CPICFLAGS="$(R_PIC)"
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
    97
5853
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    98
CONFIGURE_ENV += CXXFLAGS="$(CC_BITS) -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
    99
CONFIGURE_ENV += CXXPICFLAGS="$(R_PIC)"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
   100
CONFIGURE_ENV += CXX1X="g++"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
   101
CONFIGURE_ENV += CXX1XFLAGS="$(CC_BITS) -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
   102
CONFIGURE_ENV += CXX1XPICFLAGS="$(R_PIC)"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
   103
CONFIGURE_ENV += CXX1XSTD="-std=c++11"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
   104
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
   105
CONFIGURE_ENV += FCFLAGS="-g -O2 $(CC_BITS)"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
   106
CONFIGURE_ENV += F77_VISIBILITY="-fvisibility=hidden"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
   107
CONFIGURE_ENV += FFLAGS="-g -O2 $(CC_BITS)"
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   108
CONFIGURE_ENV += FCLIBS="-lsunperf -lfsu -lsunmath"
5853
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
   109
CONFIGURE_ENV += FLIBS="-lsunperf -lfsu -lsunmath -lgfortran -lm"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
   110
CONFIGURE_ENV += FCPICFLAGS="$(R_PIC)"
cf951496fb3a 23076632 The fix for 22976223 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5718
diff changeset
   111
CONFIGURE_ENV += FPICFLAGS="$(R_PIC)"
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   112
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   113
# Set the various Java variables otherwise it auto-detects the 32-bit ones.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   114
CONFIGURE_ENV += JAVA_CPPFLAGS="-I$(JAVA8_HOME)/jre/../include -I$(JAVA8_HOME)/jre/../include/solaris"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   115
CONFIGURE_ENV += JAVA_LIBS="-L$(JAVA_LIBS_PATH) -R$(JAVA_LIBS_PATH) -ljvm"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   116
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   117
# From Brian Whitney:
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   118
# You need to define this option on SPARC, otherwise you will get quad
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   119
# arithmetic on SPARC but not on x86.  Really makes some R functions run
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   120
# very slow on SPARC (COR path).
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
   121
CONFIGURE_OPTIONS.sparc +=	--disable-long-double
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   122
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   123
CONFIGURE_OPTIONS += --enable-R-shlib
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   124
CONFIGURE_OPTIONS += --with-blas='-lsunperf'
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   125
CONFIGURE_OPTIONS += --with-ICU
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   126
CONFIGURE_OPTIONS += --with-lapack
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   127
CONFIGURE_OPTIONS += --with-recommended-packages
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   128
CONFIGURE_OPTIONS += --with-tcltk
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   129
CONFIGURE_OPTIONS += --enable-prebuilt-html
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   130
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   131
COMPONENT_PRE_TEST_ACTION = \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   132
	$(RM) $(BUILD_DIR_64)/tests/Examples/*.prev
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   133
4899
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   134
COMPONENT_PRE_SYSTEM_TEST_ACTION = \
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   135
	$(RM) $(BUILD_DIR_64)/tests/Examples/*.prev
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   136
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   137
# Increase stack limit to allow the "infinite recursion" test to work.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   138
COMPONENT_TEST_ENV_CMD =	ulimit -Ss 32768 ; $(ENV)
4899
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   139
COMPONENT_SYSTEM_TEST_ENV_CMD =	ulimit -Ss 32768 ; $(ENV)
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   140
5338
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
   141
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   142
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   143
COMPONENT_TEST_TRANSFORMS += \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   144
	'-n ' \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   145
	'-e "/^Testing examples for package /p" ' \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   146
	'-e "/^running /p" ' \
5338
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
   147
	'-e "/^  expect some differences/p" ' \
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
   148
	'-e "/comparing.*datetime.Rout/d" ' \
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
   149
	'-e "/comparing.*reg-examples3.Rout/d" ' \
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
   150
	'-e "/^  comparing /p" '
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   151
4899
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   152
# Use the installed version of R, not the one in the build area.
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   153
# These definitions override those found in .../test/Makefile.
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
   154
COMPONENT_SYSTEM_TEST_ARGS += R="LANGUAGE=en LC_ALL=C SRCDIR=$(BUILD_DIR_64)/tests R_DEFAULT_PACKAGES= $(USRBINDIR)/R --vanilla"
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
   155
COMPONENT_SYSTEM_TEST_ARGS += R2="R_DEFAULT_PACKAGES= $(USRBINDIR)/R --vanilla"
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
   156
COMPONENT_SYSTEM_TEST_ARGS += R3="$(USRBINDIR)/R CMD check"
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
   157
COMPONENT_SYSTEM_TEST_ARGS += RDIFF="$(USRBINDIR)/R CMD Rdiff"
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5674
diff changeset
   158
COMPONENT_SYSTEM_TEST_ARGS += RDCONV="LC_CTYPE=C $(USRBINDIR)/R CMD Rdconv"
4899
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   159
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   160
COMPONENT_TEST_ARGS =		-k -i
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   161
COMPONENT_SYSTEM_TEST_ARGS +=	-k -i
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   162
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   163
REQUIRED_PACKAGES += image/library/libjpeg
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   164
REQUIRED_PACKAGES += image/library/libpng
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   165
REQUIRED_PACKAGES += image/library/libtiff
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   166
REQUIRED_PACKAGES += library/desktop/cairo
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   167
REQUIRED_PACKAGES += library/desktop/pango
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   168
REQUIRED_PACKAGES += library/glib2
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   169
REQUIRED_PACKAGES += library/zlib
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   170
REQUIRED_PACKAGES += shell/bash
7252
5bca130fe419 25048891 R package needs to fix dependencies
Rich Burridge <rich.burridge@oracle.com>
parents: 7149
diff changeset
   171
REQUIRED_PACKAGES += system/library/fortran-runtime
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   172
REQUIRED_PACKAGES += system/library/math
7252
5bca130fe419 25048891 R package needs to fix dependencies
Rich Burridge <rich.burridge@oracle.com>
parents: 7149
diff changeset
   173
REQUIRED_PACKAGES += system/library/openmp
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   174
REQUIRED_PACKAGES += system/library/sunperf
7252
5bca130fe419 25048891 R package needs to fix dependencies
Rich Burridge <rich.burridge@oracle.com>
parents: 7149
diff changeset
   175
REQUIRED_PACKAGES += system/picl
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   176
REQUIRED_PACKAGES += web/curl
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   177
REQUIRED_PACKAGES += x11/library/libx11
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   178
REQUIRED_PACKAGES += x11/library/libxmu
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   179
REQUIRED_PACKAGES += x11/library/toolkit/libxt